/* Novara — "Amanecer" design system (see
   docs/superpowers/specs/2026-07-31-ux-redesign-amanecer-design.md). */

.nv-shell, :root {
  /* Día — Amanecer (spec §2.1) */
  --bg: #F3F6FA; --card: #FFFFFF; --card2: #FDFEFF; --ink: #17263B; --soft: #5B6B80;
  /* PR #68 round-4 (Codex P2): --acc-ink was #B26F06 — 4.06:1 against --card/white and 3.69:1
     against --acc-tint, both below the 4.5:1 AA threshold this token is claimed to meet for the
     ordinary-sized links/nav labels/debit text that consume it (spec §2.1). #8F5A06 (same value
     already used for --ag4, staying in the marigold family) measures 5.78:1 on white and 5.25:1 on
     --acc-tint — both comfortably ≥4.5:1. Computed via the standard WCAG relative-luminance
     formula; see the PR round-4 report for the script and full candidate table. */
  --acc: #E8940F; --acc-ink: #8F5A06; --acc-contrast: #FFFFFF; --acc-tint: #FDF3E0;
  /* PR #68 round-7 (Codex P2): .nv-btn painted --acc-contrast (white) text directly on --acc
     (#E8940F) — 2.42:1, badly below the 4.5:1 AA floor every other filled-text pairing in this
     file already meets. --acc itself is approved brand identity and stays in place for tints/
     borders/glows/large surfaces that carry no small text (chips, bands, the meter fill, the Nova
     dot) — those aren't in scope here. --acc-strong is a new token dedicated to solid fills that
     DO carry --acc-contrast text (button backgrounds): #8F5A06 is the same deep marigold already
     in use as --acc-ink/--ag4, so no new hue enters the palette. See tools/contrast-audit.js for
     the measured ratio. */
  --acc-strong: #8F5A06;
  /* PR #68 round-5 (Codex P2 + class-level audit): a full WCAG contrast sweep of every Día ink-role
     token against every background it's used on (card/bg/own-tint) turned up two failures. --good
     was #2F8A62 — 4.26:1 on white, 3.93:1 on --bg, 3.69:1 on --good-tint, all below the 4.5:1 AA
     threshold the small success chips/credit amounts/.nv-ok text need. --bad was #C4402F — fine on
     white (5.10:1) and --bg (4.70:1) but only 4.27:1 on --bad-tint, also below 4.5:1. Both were
     darkened in place (same hue/saturation, lower lightness — agave stays agave, chile stays
     chile): #2F8A62 → #227952 (5.35:1 / 4.94:1 / 4.64:1), #C4402F → #B63929 (5.82:1 / 5.37:1 /
     4.87:1). Full before/after table + script in the round-5 report. */
  --tint: #EAF1F9; --good: #227952; --good-tint: #E4F2EB;
  --warn-ink: #8A5A0B; --warn-tint: #FBEED3; --bad: #B63929; --bad-tint: #F9E7E4;
  /* Avisos + Eventos (B1 T12): --info is a new token — the Junta category's calendar bar/chip
     needed an "info blue" and no existing token carried one. Picked to clear the same ≥4.5:1 AA
     bar the round-5 sweep held --good/--bad to (against card/bg/own-tint); see
     tools/contrast-audit.js, which now checks it too. The other four avisos categories reuse
     already-audited tokens (general -> --soft/--tint, social -> --acc-ink/--acc-tint, bienestar ->
     --good/--good-tint, mantenimiento -> --bad/--bad-tint) — no new tokens needed for those. */
  --info: #1D5DB5; --info-tint: #E3ECFB;
  --line: #E2E9F1; --hair: #EDF2F8; --hov: #F8FAFD;
  --ag1: #F6CE8A; --ag2: #EFAC45; --ag3: #D3820D; --ag4: #8F5A06;
  --lav-tint: #EFEAF9; --lav-ink: #5B4A9E;
  --shadow: 0 6px 14px -6px rgba(232, 148, 15, 0.5);
  --sans: "Public Sans", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --disp: "Bricolage Grotesque", "Candara", "Segoe UI Variable Display", "Trebuchet MS", sans-serif;
  --mono: "Cascadia Code", ui-monospace, Consolas, monospace;
  /* Tobala.Blazor kit bridge.
     PR #68 round-8 (Codex P2): --tb-primary bridged straight to raw --acc, so every kit rule
     that pairs it with --tb-primary-contrast (tobala-blazor.css: .tb-stepper__step--current
     .tb-stepper__pill, .tb-stepper__step--done .tb-stepper__marker, .tb-langtoggle__option--active)
     painted --acc-contrast (white) text/fill on #E8940F — 2.42:1, the same failure round-7 fixed
     for .nv-btn. --tb-primary now bridges to --acc-strong instead, the token round-7 introduced
     for exactly this (contrast-text-bearing fills): #8F5A06 on white measures 5.78:1 (see
     tools/contrast-audit.js). Noche is unaffected either way — its --acc-strong already equals
     --acc (#FFA45C), which already passed AA against --acc-contrast. --tb-accent is untouched:
     the kit only ever uses it for a border/box-shadow glow, never paired with contrast text. */
  --tb-primary: var(--acc-strong); --tb-primary-contrast: var(--acc-contrast);
  --tb-accent: var(--acc); --tb-surface: var(--card); --tb-surface-tint: var(--tint);
  --tb-ink: var(--ink); --tb-ink-soft: var(--soft);
  --tb-warn-bg: var(--warn-tint); --tb-warn-ink: var(--warn-ink); --tb-line: var(--line);
  /* B.4a (j-g3-residents-comite-009): native form controls, their pickers and calendar icons follow color-scheme.
     Declared on both theme scopes — Día light here, Noche dark below — so the explicit Noche choice and "auto" under
     a dark OS preference (both resolve to .nv-shell.noche, ThemeService.IsNoche) turn every field dark together. */
  color-scheme: light;
}
.nv-shell.noche {
  --bg: #0D1322; --card: #151D31; --card2: #1B2540; --ink: #E8EDF6; --soft: #8D9BB5;
  --acc: #FFA45C; --acc-ink: #FFA45C; --acc-contrast: #221305;
  /* PR #68 round-7: Noche's --acc/--acc-contrast pairing already passes AA (dark text on the
     lighter apricot fill) — --acc-strong here is the same value as --acc so button fills render
     identically to before; the token exists only so .nv-btn can reference one name across both
     themes. */
  --acc-strong: #FFA45C;
  --acc-tint: rgba(255,164,92,.13); --tint: #1B2540;
  --good: #57C99B; --good-tint: rgba(87,201,155,.15);
  --warn-ink: #FFC894; --warn-tint: rgba(255,164,92,.13);
  /* U5a (B2): --bad was #F26D5F — 4.44:1 as a chip on a hovered row (--hov) and 4.21:1 on the selected row (--tint);
     #F5806F keeps the chip ≥4.5:1 over card, hovered and selected rows (ContrastTokenPairTests). The tint keeps its hue. */
  --bad: #F5806F; --bad-tint: rgba(242,109,95,.15);
  /* Avisos + Eventos (B1 T12): Noche side of the new --info token (Día note above has the full
     rationale) — same brighter-on-dark idiom as --good/--bad here, ≥4.5:1 against card/bg/own-tint
     (tools/contrast-audit.js). */
  --info: #6FA8FF; --info-tint: rgba(111,168,255,.15);
  --line: #263252; --hair: #1D2740; --hov: #17203A;
  --ag1: #59433A; --ag2: #8C5A38; --ag3: #C97F35; --ag4: #FFA45C;
  --lav-tint: rgba(139, 118, 219, 0.16); --lav-ink: #B9A7EE;
  --shadow: 0 8px 22px -8px rgba(255, 164, 92, 0.35);
  color: var(--ink); background: var(--bg);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
h1, h2 { font-family: var(--disp); line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
.nv-num, .nv-meter__row b { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.nv-boot { display: grid; place-items: center; min-height: 60vh; color: var(--soft); }

/* ---- Shell + top bar ---- */
.nv-shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
/* Admin shell (Amanecer redesign, Task 4): sidebar column + a content column carrying the
   topbar/main stack unchanged. Owners/anonymous never get .nv-shell--admin, so they keep the
   plain flex shell above untouched. */
/* Fix-wave item 5: align-items was "start", which sizes the sidebar grid item to its own
   content height (.nv-side's min-height: 100vh) instead of the row's actual height — on a page
   taller than one viewport (e.g. /mi-perfil) the sidebar's background stopped at ~100vh while the
   content column kept going, leaving a seam down the left column. "stretch" (the grid default)
   makes .nv-side-shell match the tallest column so its full-height background (below) always
   covers the page; .nv-side itself keeps its own sticky + min-height:100vh untouched, so the nav
   rail's scroll behavior is unaffected. */
.nv-shell--admin { display: grid; grid-template-columns: 232px 1fr; align-items: stretch; }
.nv-shell--admin-collapsed { grid-template-columns: 76px 1fr; }
.nv-shell__content { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
/* B.4a (f-076): "Saltar al contenido" — visually hidden until it takes keyboard focus, then shown above the topbar and
   the phone sheet with the Amanecer focus ring. The audited filled-button pair (--acc-strong / --acc-contrast). */
.nv-skip-link {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: 8px; background: var(--acc-strong); color: var(--acc-contrast);
  font-weight: 700; text-decoration: none;
}
.nv-skip-link:not(:focus) {
  width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.nv-skip-link:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
/* main takes programmatic focus from the skip link (tabindex=-1); the container itself needs no ring. */
.nv-main:focus { outline: none; }
/* B.4a (j-g3-residents-comite-009): fields with no class of their own (Reservas' Unidad/Fecha/Duración) stayed the UA's
   white in Noche. Día keeps the native look (color-scheme: light is enough); Noche paints them from tokens with the
   .nv-field__box edge. Zero specificity, so every classed field still wins; button-like and toggle inputs are left
   alone. The disabled variant keeps "disabled while saving" visible (author colours override the UA's greyed state). */
:root:has(.nv-shell.noche) { color-scheme: dark; }
:where(.nv-shell.noche) :where(input:not([type=submit], [type=button], [type=reset], [type=image], [type=checkbox], [type=radio], [type=range], [type=color], [type=file]), select, textarea) {
  background-color: var(--card2); color: var(--ink); border: 1.5px solid var(--line); border-radius: 9px;
}
:where(.nv-shell.noche) :where(input:not([type=submit], [type=button], [type=reset], [type=image], [type=checkbox], [type=radio], [type=range], [type=color], [type=file]):disabled, select:disabled, textarea:disabled) {
  background-color: var(--bg); color: var(--soft); cursor: not-allowed;
}
/* B3 (ux-admin-money-026): a printed page keeps its content and drops the shell — sidebar, topbar, mobile nav.
   Page-level print rules (which buttons to hide) live in each page's .razor.css. */
@media print {
  .nv-side-shell, .nv-side-backdrop, .nv-topbar, .nv-mobile-nav-close { display: none !important; }
  .nv-shell--admin, .nv-shell--admin-collapsed { display: block; }
  .nv-shell__content { min-height: 0; }
  /* Printable pages (Andrew, 2026-10-22: "they need tidying up so they print better"): the sheet, not the app.
     Chrome that only makes sense on screen goes; a card is a plain bordered block; a wide table is no longer clipped
     by its scroll region, its header repeats on every sheet, a row never splits across two, and dates and amounts stay
     on one line. Page-level rules (which buttons to hide) still live in each page's .razor.css. */
  html, body { background: #fff; color: #000; }
  /* Noche (or "auto" on a dark OS) prints as Día: the shell sets its own colour and background from these tokens, so a
     white sheet needs the tokens reset, not just the body. */
  :root:has(.nv-shell.noche) { color-scheme: light; } /* else the sheet's margin prints black with background graphics on */
  .nv-shell, .nv-shell.noche { --bg: #fff; --card: #fff; --card2: #fff; --tint: #f3f3f3; --ink: #000; --soft: #555; --line: #bbb; --hair: #ddd; --hov: #fff; color: #000; background: #fff; color-scheme: light; }
  .nv-shift-chip, .nv-table-scrollhint, .nv-btn, .nv-page__lede, .nv-tooltip, [role="tooltip"] { display: none !important; }
  .nv-page { padding: 0; max-width: none; }
  .nv-card, .nv-tile, .nv-role-panel { box-shadow: none; border: 1px solid #bbb; border-radius: 4px; background: #fff; break-inside: avoid; }
  .nv-card:has(table), .nv-role-panel:has(table) { break-inside: auto; }
  h1 { font-size: 18pt; margin: 0 0 .4rem; }
  h2 { font-size: 13pt; } h3 { font-size: 11pt; }
  /* !important: the screen rules below (same specificity, later) and a component's scoped .nv-table-wrap otherwise win. */
  .nv-table-wrap { overflow: visible !important; max-width: none !important; }
  .nv-scroll-sticky1 tr > :is(th, td):first-child { position: static !important; }
  table.nv-table { width: 100%; min-width: 0; font-size: 9.5pt; border-collapse: collapse; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  th, td { padding: .2rem .4rem; border-bottom: 1px solid #ddd; vertical-align: top; }
  th { border-bottom: 1px solid #888; }
  /* A first cell is a date or a unit number on every list; a spanning cell (the activity log's summary row) is free text. */
  .nv-num, td:first-child:not([colspan]) { white-space: nowrap; }
  .nv-fundcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .nv-tile { padding: .4rem .6rem; }
  .nv-tile__v { font-size: 12pt; }
  .nv-meter__bar, .nv-meter__fill, .nv-meter__tick { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  a[href]::after { content: none; }
}
@page { margin: 14mm 12mm; }
.nv-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem; background: var(--card); border-bottom: 1px solid var(--hair);
}
.nv-topbar__left { display: flex; align-items: center; gap: 0.6rem; }
.nv-topbar__actions { display: flex; align-items: center; gap: 0.7rem; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.nv-topbar__avatar {
  width: 30px; height: 30px; border-radius: 999px; flex: none; object-fit: cover;
  background: var(--tint);
}
.nv-topbar__avatar--initials {
  display: grid; place-items: center; color: var(--ink); font-size: 12px; font-weight: 700;
}
.nv-brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); }
.nv-brand__name { font-weight: 700; letter-spacing: 0.01em; }
.nv-mark {
  width: 22px; height: 22px; border-radius: 7px 7px 7px 14px; display: inline-block;
  background: radial-gradient(circle at 70% 20%, var(--acc) 0 28%, transparent 30%), var(--acc-ink);
}
.nv-main { flex: 1; padding: 1.25rem clamp(1rem, 4vw, 2.5rem) 3rem; max-width: 1200px; width: 100%; margin: 0 auto; }
/* The document workspace is a desktop productivity surface rather than a reading-width page.
   Let it consume the content column so the preview can use the viewport instead of leaving a
   large empty strip beside the shared 1200px page frame. The document library still sets its own
   readable minimums in the split grid below, and the mobile breakpoint returns to normal flow. */
.nv-main:has(.nv-documentos) { max-width: none; }
/* Triage #5 (final review, spec §4.2): an admin already has the brand mark in the sidebar
   (.nv-side__brand) — the topbar's own .nv-brand next to it duplicated it above the 900px
   breakpoint where the sidebar is visible. Below 900px the sidebar collapses to the off-canvas
   sheet (see the media query further down), so the topbar mark is the only one on screen there and
   stays. */
@media (min-width: 901px) {
  .nv-shell--admin .nv-topbar .nv-brand { display: none; }
}
/* Owner portal frame (Task 10 — spec §7): a calmer, narrower single column for owner-role users,
   applied off the existing _isAdmin flag. No sidebar (owners never get .nv-shell--admin), topbar
   only, content constrained to ~860px instead of the admin shell's 1200px. */
.nv-main--owner { max-width: 860px; }

/* ---- NavSidebar (Amanecer redesign, Task 4 — design spec §4.1) ---- */
.nv-hamburger { font-size: 1.1rem; line-height: 1; }
/* Fix-wave item 1: the hamburger's own classes are "nv-btn nv-btn--ghost nv-btn--small
   nv-hamburger" — a single bare .nv-hamburger selector is the same specificity (0,0,1,0) as the
   later .nv-btn { display: inline-flex; } block below, and .nv-btn wins on source order alone, so
   the button stayed visible at desktop widths despite this display:none. Scoping to .nv-topbar
   .nv-hamburger (0,0,2,0) beats .nv-btn regardless of order; the ≤900px override further down is
   scoped the same way so it stays equally specific rather than relying on order there either. */
.nv-topbar .nv-hamburger { display: none; }
/* Fix-wave item 5 (paired with .nv-shell--admin's align-items: stretch above): paints the same
   background/border on the grid item itself so it covers the whole stretched column height on tall
   pages. .nv-side keeps its own background too (still needed for the ≤900px fixed/off-canvas mode
   below, where .nv-side is taken out of grid flow and .nv-side-shell collapses to 0 height) — on
   desktop the two boxes just paint the same color on top of each other over the first 100vh, no
   visible seam either way. */
.nv-side-shell { min-width: 0; background: var(--card); border-right: 1px solid var(--line); }
/* PR #68 round-3 (Codex P2): the off-canvas sheet's dismiss backdrop. Fixed/full-viewport and
   dimmed like .nv-modal's own scrim, but a lower z-index than the sheet panel itself (50, below)
   so it sits behind the panel and above the page content. Hidden above the 900px breakpoint by
   default — MainLayout only renders this element at all while _sideOpen is true, but the
   display:none here is the belt-and-suspenders in case that ever changes, and it's what the
   ≤900px media query below flips to display:block.
   PR #68 round-4 (Codex P2): was z-index 40, the same layer as .nv-modal — a payment/reversal/
   statement/ledger dialog open at the same time as the sheet would have sat BELOW this backdrop.
   Bumped to 45 (still below the sheet panel's 50 and .nv-modal--nested's 50) so a modal (40) can
   never render under it either. In practice the sheet and a modal never coexist by app flow (the
   sheet only opens the nav rail; modals open from page content, and opening one doesn't leave the
   sheet open), but the number no longer *reads* as a collision if that assumption ever breaks. */
.nv-side-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 45;
}
.nv-side {
  width: 232px; min-width: 232px; min-height: 100vh; position: sticky; top: 0;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--card); border-right: 1px solid var(--line); padding: 1rem 0.75rem;
}
.nv-side__brand-row { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.nv-side__brand {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink);
  min-width: 0; flex: 1; padding: 0 0.5rem 1rem;
}
.nv-side__collapse {
  display: inline-grid; place-items: center; flex: 0 0 2rem; width: 2rem; height: 2rem;
  margin: 0 0.1rem 1rem 0; padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--soft); cursor: pointer; font-size: 0.85rem;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nv-side__collapse:hover, .nv-side__collapse:focus-visible {
  background: var(--hov); border-color: var(--acc); color: var(--ink); outline: none;
}
.nv-side__group {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soft); padding: 0.9rem 0.6rem 0.3rem;
}
.nv-side__item {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.6rem; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.nv-side__icon { flex: 0 0 18px; width: 18px; height: 18px; }
.nv-side__group .nv-side__icon { width: 16px; height: 16px; }
/* UI redesign U1 (Task 2): group headings are buttons that fold their items (44px target, visible focus). */
button.nv-side__group {
  width: 100%; min-height: 44px; margin: 0; border: 0; border-radius: 8px; background: transparent;
  font-family: inherit; text-align: left; cursor: pointer;
}
button.nv-side__group:hover { background: var(--hov); color: var(--ink); }
button.nv-side__group:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; color: var(--ink); }
.nv-side__chevron {
  margin-left: auto; width: 0.45rem; height: 0.45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease;
}
button.nv-side__group[aria-expanded="false"] .nv-side__chevron { transform: rotate(-45deg); }
.nv-side__item--folded { display: none; }
.nv-side__item:hover { background: var(--hov); }
.nv-side__item--on {
  background: var(--acc-tint); color: var(--acc-ink);
  box-shadow: inset 3px 0 0 var(--acc-ink);
}
/* UI redesign U4 (Task 15): menu badges. The count sits at the end of the row; red for the work queues, neutral for
   Miembros (the same pairs as .nv-chip--bad and .nv-badge--email). Badge and dot are aria-hidden: the link's name says the
   count in words. The dot replaces the badge in the collapsed rail (below). */
.nv-side__badge {
  margin-left: auto; min-width: 1.5rem; padding: 0.1rem 0.45rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; line-height: 1.3; text-align: center; font-variant-numeric: tabular-nums;
}
.nv-side__badge--alert { background: var(--bad-tint); color: var(--bad); }
.nv-side__badge--neutral { background: var(--tint); color: var(--ink); }
.nv-side__dot { display: none; }
.nv-side__dot--alert { background: var(--bad); }
.nv-side__dot--neutral { background: var(--soft); }
/* Bottom slot: pushed to the foot of the flex column instead of NovaDock's old page-corner pin. */
.nv-side .nv-nova-pill { margin-top: auto; width: 100%; justify-content: center; box-shadow: none; }

@media (min-width: 901px) {
  .nv-shell--admin-collapsed .nv-side { width: 76px; min-width: 76px; padding-inline: 0.65rem; }
  .nv-shell--admin-collapsed .nv-side__brand-row { justify-content: center; }
  .nv-shell--admin-collapsed .nv-side__brand { flex: 0 0 auto; padding-inline: 0; }
  .nv-shell--admin-collapsed .nv-side__brand .nv-brand__name,
  .nv-shell--admin-collapsed .nv-side__label { display: none; }
  .nv-shell--admin-collapsed .nv-side__collapse { margin-right: 0; }
  /* U1: the collapsed rail shows no headings and every item as an icon, folded or not. */
  .nv-shell--admin-collapsed .nv-side__group { display: none; }
  .nv-shell--admin-collapsed .nv-side__section + .nv-side__section { margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--line); }
  .nv-shell--admin-collapsed .nv-side__item--folded { display: flex; }
  .nv-shell--admin-collapsed .nv-side__item {
    justify-content: center; gap: 0; padding-inline: 0; min-height: 2.35rem; font-size: 0;
  }
  .nv-shell--admin-collapsed .nv-side__item .nv-side__icon { width: 19px; height: 19px; color: var(--soft); }
  .nv-shell--admin-collapsed .nv-side__item--on .nv-side__icon { color: var(--acc-ink); }
  .nv-shell--admin-collapsed .nv-side .nv-nova-pill { min-height: 2.35rem; padding-inline: 0; }
  /* U4 review m6: an item's label stays in its link's name, which the visually hidden count now follows — clipped here
     like .nv-sr-only rather than removed, so the rail still announces "Pagos, 7 por conciliar". */
  .nv-shell--admin-collapsed .nv-side__item .nv-side__label {
    display: block; position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  /* U4: in the collapsed rail the badge becomes a dot on the icon's corner. */
  .nv-shell--admin-collapsed .nv-side__item { position: relative; }
  .nv-shell--admin-collapsed .nv-side__badge { display: none; }
  .nv-shell--admin-collapsed .nv-side__dot {
    display: block; position: absolute; top: 0.3rem; right: calc(50% - 0.85rem);
    width: 0.5rem; height: 0.5rem; border-radius: 50%; box-shadow: 0 0 0 2px var(--card);
  }
}

@media (max-width: 900px) {
  .nv-shell--admin { grid-template-columns: 1fr; }
  .nv-topbar .nv-hamburger { display: inline-flex; }
  .nv-side { display: none; }
  /* PR #68 round-6 (Codex P2): the fixed/full-height open panel (inset: 0 auto 0 0, i.e. top:0,
     bottom:0) had no overflow rule of its own, so it inherited .nv-side's normal in-flow sizing —
     fine on a full-height desktop viewport, but on a short one (landscape phone, or portrait at a
     high browser zoom level) the panel's own content (three groups, eight items, the Nova pill)
     can exceed the available height with nothing to scroll it: the Comunidad group at the bottom
     is simply cut off outside the viewport with no way to reach it. overflow-y: auto lets the
     panel itself scroll independently of the page behind the backdrop. */
  .nv-side-shell.nv-side--open .nv-side {
    display: flex; position: fixed; inset: 0 auto 0 0; z-index: 50;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
  }
  /* PR #68 round-3: the open sheet (z-index 50 above) would otherwise cover the hamburger that
     opened it — the topbar sits at the very top of that same left-232px strip. Giving .nv-topbar
     a higher z-index (60) than the panel keeps it painted on top, so the hamburger stays
     clickable and tapping it again (ToggleSide flips _sideOpen back off) closes the sheet.
     position: relative is required for z-index to apply — the topbar has no position set above
     this breakpoint.
     PR #68 round-4 (Codex P2 regression from round-3): that z-index: 60 applied unconditionally,
     even with the sheet closed — so on every phone-width page the topbar sat ABOVE .nv-modal (40)
     and .nv-modal--nested (50), painting a clickable, undimmed topbar over payment/reversal/
     statement/ledger dialogs. The raise is only needed while the sheet covers the hamburger, so
     it now lives on .nv-topbar--raised (added by MainLayout.razor's header class only while
     _sideOpen is true) instead of the bare .nv-topbar selector. The base rule keeps z-index low
     (1, not "none"/auto — still needs to sit in its own stacking context above ordinary page
     content, just below every dialog layer: backdrop 45, panel/nv-modal--nested 50, nv-modal 40).
     Final stacking order at ≤900px, low to high: base topbar (1) < nv-modal (40) < side-backdrop
     (45) < nv-modal--nested / open sheet panel (50, tied) < raised topbar (60, sheet-open only).
     The sheet and a modal dialog are assumed never to be open at the same time (see the backdrop
     comment above) — this ordering does not need to resolve that case, only avoid pretending 40
     and 50 don't exist. */
  .nv-topbar { position: relative; z-index: 1; }
  .nv-topbar--raised { z-index: 60; }
  /* Backdrop is only in the DOM while _sideOpen is true (MainLayout.razor); flip it visible at
     this breakpoint to sit behind the panel (z-index 45 < panel's 50) and dismiss on click. */
  .nv-side-backdrop { display: block; }
}

/* PR #68 round-5 (Codex P2): at phone widths the authenticated topbar packs hamburger + theme
   toggle + brand + language toggle + avatar + name + "Cerrar sesión" into one non-wrapping flex
   row (.nv-topbar / .nv-topbar__actions never wrap or shed content), so it overflows.
   Arithmetic (Public Sans / Segoe UI-stack, ~0.55em/char regular, ~0.58em/char at font-weight
   >=600 — no live browser measurement, see the round-5 report for the full breakdown) at a 360px
   viewport:
     BEFORE any fix: .nv-topbar__left (hamburger 41px + gap 10px + brand mark/text 87px = 138px)
     + .nv-topbar__actions (theme 37px + lang toggle 83px + avatar+name ~30-90px+ + "Cerrar
     sesión" 126px + 3 gaps at 11px = 34px) + topbar's own 40px horizontal padding routinely
     totals ~485px — 125px over budget even before counting the name.
     Hiding only .nv-topbar__name (avatar keeps linking to /mi-perfil) still leaves "Cerrar
     sesión" at ~126px, so the row still totals ~485px minus the name — still ~125px over a 360px
     viewport. That's why the icon-only sign-out button below is not optional at this breakpoint.
     AFTER (name hidden, sign-out compacted to an icon-size ghost button, topbar padding/gaps and
     the topbar's own small-button padding all tightened): hamburger ~33px + gap 6px + brand ~87px
     (left: ~126px) + theme ~29px + lang toggle 83px + avatar 30px + icon sign-out ~29px + 3 gaps
     at 6px = 18px (actions: ~189px) + topbar padding 24px = ~339px, comfortably under 360px. */
@media (max-width: 700px) {
  .nv-topbar { padding: 0.6rem 0.75rem; }
  .nv-topbar__left { gap: 0.4rem; }
  .nv-topbar__actions { gap: 0.4rem; }
  .nv-topbar .nv-btn--small { padding: 4px 6px; }
}

/* PR #68 round-6 (Codex P2): round-5's compaction cleared 360px (its own report put the row at
   ~339px there) but never budgeted for 320px — the same fixed-width row is ~19px over budget the
   moment the viewport drops another 40px, since nothing in it was fluid. This drops the topbar's
   own brand text label (the sidebar is already gone below 900px, so the mark alone still reads as
   "Novara" — same icon-only collapse the sign-out button already went through in round-5), shrinks
   the language toggle's own padding (.tb-langtoggle__option, from the Tobala.Blazor kit), and
   trims the remaining topbar padding/gaps further.
   Recomputed sum (same char-width estimation method as the round-5 report, no live browser
   measurement — see that report for the per-character basis):
     left: hamburger ~33px + gap ~5px (0.3rem) + mark 22px = ~60px
     actions: theme ~29px + gap ~5px + lang toggle ~64px (was ~83px — padding cut from 0.35rem/
       0.8rem to 0.3rem/0.5rem saves ~19px of horizontal padding across its 2 options) + gap ~5px +
       avatar 30px + gap ~5px + icon sign-out ~29px = ~167px
     topbar's own padding: 16px (0.5rem each side, was 24px)
     total: 60 + 167 + 16 = ~243px — comfortably under 320px (~77px of headroom), vs. ~339px
     (~19px OVER) before this rule at the same fixed widths.
   flex-wrap: nowrap (already the flex default here, but stated explicitly so a future reset can't
   silently change it) plus min-width: 0 on the two flex children is the robustness net the round-6
   brief calls for: .nv-topbar__left/.nv-topbar__actions default to min-width: auto as flex items,
   which lets their own intrinsic content width force the row wider than the estimate above assumes
   if real glyph metrics run wider — min-width: 0 lets them shrink instead, so any residual overflow
   clips/ellipsizes at the row's own edge rather than breaking the layout or wrapping mid-item. */
@media (max-width: 400px) {
  .nv-topbar { padding: 0.5rem; flex-wrap: nowrap; }
  .nv-topbar__left, .nv-topbar__actions { min-width: 0; gap: 0.3rem; }
  .nv-topbar .nv-brand__name { display: none; }
  .nv-topbar .tb-langtoggle__option { padding: 0.3rem 0.5rem; }
}

/* ---- Buttons + fields ---- */
/* Final-review I-1: hardcoded #fff text on an --acc-ink fill read fine in Día but was white-on-
   apricot in Noche (spec §2.2 forbids it) — --acc-contrast is the token pair's own answer (white in
   Día over the marigold fill the mockup calls for, dark ink in Noche over the lighter apricot
   fill), so every filled variant below (nv-btn--acc, nv-btn--confirm) inherits it correctly too
   without redeclaring color.
   PR #68 round-7 (Codex P2): the fill itself was --acc, not --acc-ink/--acc-strong — Día's white
   --acc-contrast text on #E8940F measured only 2.42:1. Moved the fill to --acc-strong (the same
   #8F5A06 value already used for --acc-ink/--ag4); the border already read var(--acc-ink), which
   equals --acc-strong in both themes, so the button's border and fill are now the same tone (no
   visible ring) and --acc-contrast stays AA-safe on both. */
.nv-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid var(--acc-ink); border-radius: 9px; padding: 6px 13px;
  background: var(--acc-strong); color: var(--acc-contrast); font: inherit; font-weight: 600; cursor: pointer;
  /* Fix-wave item 3: .nv-btn is also used on plain <a> elements (quick-action links styled as
     buttons) — nothing here reset the UA default link underline, so a.nv-btn showed an underline
     in both themes even though color/background already come from this rule, not the link color. */
  text-decoration: none;
}
.nv-btn:disabled { opacity: 0.55; cursor: default; }
.nv-btn--ghost { background: transparent; color: var(--acc-ink); }
/* PR #68 round-7: this variant re-asserted background/border-color: var(--acc), which would have
   silently undone the .nv-btn fix above for any element carrying both classes (TestDriveStep's
   "Sembrar datos de ejemplo" button). Migrated to --acc-strong so it matches the base rule. */
.nv-btn--acc { background: var(--acc-strong); border-color: var(--acc-strong); }
.nv-btn--small { padding: 4px 10px; font-size: 0.85rem; }
.nv-field { display: block; margin-bottom: 0.9rem; }
.nv-field__label {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--soft); margin-bottom: 0.3rem;
}
/* Cleanup (final review): --card2 was defined but unused; spec §2.1 assigns it to inputs. */
.nv-field__box {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card2);
  padding: 9px 12px; font: inherit; color: var(--ink);
}
.nv-field__box:focus { outline: none; border-color: var(--acc-ink); box-shadow: 0 0 0 3px var(--tint); }
/* Final-review I-2: error text picked up the brand accent color during the coral→acc migration —
   an error is not a brand moment, it needs the error semantic token. */
.nv-error { color: var(--bad); font-size: 0.9rem; margin: 0.4rem 0 0; }
/* UX fix PR 1: .nv-success had no global rule (only a scoped one on /reservas), so confirmations rendered
   as unstyled body text that was easy to miss. Same size/spacing as .nv-error, on the success tint;
   --good on --good-tint clears AA in both themes (ContrastTokenPairTests). */
.nv-success { background: var(--good-tint); color: var(--good); font-size: 0.9rem; margin: 0.4rem 0 0; padding: 0.55rem 0.8rem; border-radius: 9px; }

/* ---- Login / AcceptInvite (centered card, Task 10 — spec §6: "Centered card, sunrise/beam
   radial gradient ground"). Shared by both anonymous EmptyLayout pages — AcceptInvite adopted the
   same .nv-login ground + .nv-login__card as a fix-round follow-up so it wasn't left on the old
   split-hero classes after Login moved off them. Tokens only: --acc-tint over --bg, so once Noche
   is in scope its own token values render the beam with no separate dark-mode override needed
   here — but scope is EmptyLayout's job (final-review I-3: it wires ThemeService and puts the
   .nv-shell.noche class in scope, since these tokens resolve to Noche's values only when that
   class is present, not "automatically" on its own). ---- */
.nv-login {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background:
    radial-gradient(65% 55% at 50% 0%, var(--acc-tint) 0%, transparent 65%),
    var(--bg);
}
.nv-login__card {
  width: 100%; max-width: 26rem; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow); padding: clamp(1.75rem, 5vw, 2.75rem);
}
.nv-login__card .nv-brand { margin-bottom: 0.6rem; }
.nv-login__card h1 { margin: 0.2rem 0 0; font-size: clamp(22px, 4vw, 28px); }
.nv-login__sub { margin: 0 0 1.2rem; color: var(--soft); }
.nv-login__card form { display: flex; flex-direction: column; }
.nv-join .nv-login__card { max-width: 36rem; }
.nv-join__steps { list-style: none; display: flex; gap: .65rem; padding: 0; margin: 1rem 0 1.5rem; counter-reset: join; flex-wrap: wrap; color: var(--soft); font-size: .875rem; }
.nv-join__steps li { counter-increment: join; display: flex; align-items: center; gap: .45rem; }
.nv-join__steps li::before { content: counter(join); display: grid; place-items: center; width: 1.7rem; height: 1.7rem; background: var(--bg); border: 1px solid var(--line); border-radius: 50%; }
.nv-join__steps [aria-current] { color: var(--ink); font-weight: 600; }
.nv-join__steps [aria-current]::before { background: var(--acc-tint); border-color: var(--acc); }
.nv-join__details { display: grid; gap: .65rem; margin: 1.1rem 0; }
.nv-join__details > div { display: flex; gap: 1rem; justify-content: space-between; }
.nv-join__details dt { color: var(--soft); }
.nv-join__details dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.nv-welcome { max-width: 66rem; margin: 0 auto; }
.nv-welcome__card { padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.nv-welcome__form { max-width: 36rem; }
.nv-invite-workspace { margin-top: 1.5rem; padding: clamp(1rem, 3vw, 1.75rem); scroll-margin-top: 2rem; }
.nv-invite-workspace .nv-invite-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
/* UX audit II (ux2-gapfill-002): the guest-without-email line spans the form under the email field. */
.nv-invite-workspace .nv-invite-noemail { grid-column: 1 / -1; margin: 0; }
.nv-invite-owner, .nv-invite-stay, .nv-invite-form > .nv-hint, .nv-invite-form > .nv-error { grid-column: 1 / -1; }
.nv-invite-owner { display: flex; align-items: center; gap: .65rem; min-height: 44px; }
.nv-invite-owner input { width: 20px; height: 20px; }
.nv-invite-stay { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nv-invite-stay > p { grid-column: 1 / -1; margin: 0; }
.nv-invite-workspace a, .nv-invite-workspace button, .nv-welcome a, .nv-welcome button, .nv-join button, .nv-join .nv-btn { min-height: 44px; }
.nv-invite-url { overflow-wrap: anywhere; user-select: all; }
.nv-invite-workspace .nv-invitations-table { display: block; position: relative; max-width: 100%; overflow-x: auto; }
.nv-members-table { min-width: 44rem; }
/* ux2-admin-community-003: the role CELL (the old .nv-member-role rule only reached the access panel's select). */
.nv-members-table .nv-member-rolecell { min-width: 9rem; }
@media (max-width: 700px) { .nv-invite-workspace .nv-invite-form, .nv-invite-stay { grid-template-columns: 1fr; } .nv-join__steps { gap: .75rem; } }

.nv-login__links { display: flex; align-items: center; justify-content: center; margin-top: 1.4rem; }

/* ---- Wizard chrome ---- */
.nv-wizard__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.nv-wizard__lead { display: flex; flex-direction: column; gap: 0.1rem; }
/* ux2-admin-money-018: a journey's title is a page title — the shared h1 size, under its eyebrow. */
.nv-wizard__title { margin: 0; }
.nv-wizard__lead .nv-hint { margin: 0; }
.nv-wizard__nav { display: flex; gap: 0.7rem; justify-content: space-between; margin-top: 1.6rem; max-width: 46rem; }
.nv-crumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
/* UX audit II (ux2-admin-community-024): a context chip that is not a button — no pointer, no hover border. */
.tb-chip.nv-chip-static, .tb-chip.nv-chip-static:hover { cursor: default; border-color: var(--tb-line); }
.nv-progressbar { height: 4px; background: var(--hair); border-radius: 999px; overflow: hidden; margin-bottom: 1.2rem; }
.nv-progressbar > span { display: block; height: 100%; background: var(--acc-ink); border-radius: 999px; transition: width 300ms ease; }

/* Step rail restyle (Task 10): the pills themselves already pick up Novara's palette through the
   --tb-* bridge above (:root) — done = --acc fill via --tb-primary, current = the same fill plus an
   --acc ring. This adds the missing third state: a step that is neither done nor current ("next")
   reads as quieter/upcoming rather than looking identical to "current" minus the ring. */
/* B.4a (f-036): was opacity .62 — the upcoming names blended toward the card and the audit could not read them. Quiet
   now comes from a token pair (--soft on --card, ≥ 5.4:1 in both themes) and a dashed outline instead of a fade. */
.tb-stepper__step:not(.tb-stepper__step--done):not(.tb-stepper__step--current) .tb-stepper__pill {
  background: var(--card); color: var(--soft); border-style: dashed;
}
/* B3 (j-g2-admin-backoffice-024): current and done must read as two states, not one fill with/without a glow.
   Current: the filled pill, underlined, with a card-coloured gap and an outer ring. Done: the tinted pill whose
   marker shows a check instead of its number (the number stays in the DOM for assistive tech). */
.tb-stepper__step--current .tb-stepper__pill {
  font-weight: 700; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px;
  box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--acc-strong);
}
.tb-stepper__step--done .tb-stepper__marker { font-size: 0; }
.tb-stepper__step--done .tb-stepper__marker::before { content: "\2713"; font-size: 0.7rem; line-height: 1; }

/* Fix-wave item 4: WizardCallout (Tobala.Blazor's .tb-callout/.tb-callout__title/.tb-callout__body
   kit component, external to this repo — see tobala-blazor.css) is nested directly inside the field
   markup's <span class="nv-field__label"> across the app (MiPerfil, CuotaScheduleForm,
   MorosidadConfigurar, ...). .nv-field__label sets text-transform: uppercase, a wide letter-spacing
   and font-weight: 600 for its own eyebrow label text — all three are INHERITED CSS properties, and
   the kit's own .tb-callout__body rule never resets them (it only sets color/font-size/line-height),
   so the callout's body copy silently inherited the label's all-caps/tracking/weight from its
   ancestor. The kit's .tb-callout__title (the small eyebrow inside the callout itself) already sets
   text-transform: uppercase explicitly, so it's unaffected either way — only .tb-callout__body needs
   the override, and it belongs here since the kit's own files live in the NuGet package, not this
   repo. */
.tb-callout__body {
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
  color: var(--soft);
  font-size: 13px;
}

/* ---- Building canvas ---- */
.nv-bldg { display: flex; flex-direction: column; gap: 4px; align-items: center; padding: 1rem 0 0.4rem; }
.nv-bldg__floor { display: flex; gap: 4px; }
.nv-bldg__win { width: 34px; height: 22px; border-radius: 4px; background: var(--tint); border: 1px solid var(--hair); }
.nv-bldg__floor--roof .nv-bldg__win { background: var(--acc-ink); border-color: var(--acc-ink); }
.nv-bldg__base { width: 70%; height: 8px; border-radius: 4px; background: var(--line); margin-top: 2px; }
.nv-bldg__cap { text-align: center; color: var(--soft); font-size: 0.85rem; }

/* ---- Units step ---- */
.nv-units-table-scroll { position: relative; max-width: 100%; overflow-x: auto; }
.nv-units-table-scroll .nv-units-table { min-width: 32rem; }
.nv-unit-contact-panel { margin-top: 1rem; }
/* These help triggers sit at the form's left edge. On tablets keep the bubble
   to their right; the shared fixed phone treatment remains in effect below 600px. */
@media (min-width: 601px) {
  .nv-unit-contact-panel .nv-tip__bub { left: 0; transform: none; }
  .nv-unit-contact-panel .nv-tip__bub::after { left: 8px; }
}
.nv-units-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.nv-units-table th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soft); padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line);
}
.nv-units-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--hair); }
.nv-units-table td.nv-num { text-align: right; }
.nv-typechip {
  display: inline-block; border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.75rem;
  background: var(--tint); color: var(--ink); font-weight: 600;
}
.nv-typechip--parking, .nv-typechip--storage { background: var(--lav-tint); color: var(--lav-ink); }
.nv-unitgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 1rem; }
.nv-ucell {
  border-radius: 7px; background: var(--tint); border: 1px solid var(--hair);
  padding: 0.35rem 0.2rem; text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--ink);
  font-family: var(--mono); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nv-ucell--parking, .nv-ucell--storage { background: var(--lav-tint); color: var(--lav-ink); }
/* PR #68 round-8 (Codex P2): the sample-unit label painted --acc (#E8940F) as text directly on
   --acc-tint — 2.20:1, below the 4.5:1 AA floor for this 0.72rem unit number. Migrated to
   --acc-ink, same as every other small-text accent use in this file (5.25:1 on --acc-tint). */
.nv-ucell--sample { border: 1.5px dashed var(--acc); background: var(--acc-tint); color: var(--acc-ink); }
.nv-row-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 0.8rem; }
/* Fit the fields to the guided form pane, rather than the viewport. Keep room for
   decimal values, native number steppers and translated unit types. */
.nv-add-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1rem; align-items: end; margin-top: 0.8rem;
}
.nv-add-row > .nv-field { min-width: 0; margin-bottom: 0; }
.nv-add-row > .nv-btn { grid-column: 1 / -1; justify-self: start; }

/* ---- Indiviso meter ---- */
.nv-meter { margin-top: 0.8rem; }
/* Final-review I-4: the hatch and fill were retired-palette hex literals that predate the Amanecer
   token system, so they never picked up Noche at all. Tokens only: the hatch stays a two-tone
   pattern by blending a little --soft into --tint (color-mix, no new literal colors); the fill is
   the approved round-2 mockup gradient, --acc to --warn-ink. */
.nv-meter__bar {
  height: 14px; border-radius: 999px; overflow: hidden; position: relative;
  background: repeating-linear-gradient(135deg,
    var(--tint) 0 6px, color-mix(in srgb, var(--tint), var(--soft) 12%) 6px 12px);
}
.nv-meter__fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--acc) 0%, var(--warn-ink) 100%); transition: width 300ms ease;
}
.nv-meter__row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.35rem; }
.nv-meter__row b { font-size: 0.95rem; }
.nv-meter__label { color: var(--soft); font-size: 0.8rem; }
.nv-meter__warn { margin-top: 0.6rem; }

/* ---- People / test drive ---- */
.nv-pcard {
  display: flex; align-items: center; gap: 0.8rem; background: var(--card);
  border: 1px solid var(--hair); border-radius: 11px; padding: 0.8rem 1rem; margin-bottom: 0.8rem;
}
.nv-avatar {
  width: 36px; height: 36px; border-radius: 999px; background: var(--tint); color: var(--ink);
  display: grid; place-items: center; font-weight: 700;
}
.nv-rolechip {
  margin-left: auto; border-radius: 999px; background: var(--good-tint); color: var(--good);
  font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem;
}
.nv-testdrive {
  border: 1.5px dashed var(--acc); background: var(--acc-tint); border-radius: 11px;
  padding: 1rem 1.1rem; margin-top: 1.2rem;
}
.nv-testdrive h3 { margin: 0 0 0.3rem; }

/* ---- Dashboard ---- */
/* Cleanup (final review): .nv-cele, .nv-dgrid, .nv-ring, .nv-checkhead, .nv-task* and .nv-soonchip
   were the pre-Amanecer dashboard's own rules — the redesigned Dashboard (Task 7's StatTile/
   PendingDocket pass below) never emits this markup, and grep confirms zero razor references left.
   .nv-card and .nv-stat (singular — used by Statements.razor's own stat cards) stay. .nv-nextitem /
   .nv-nextitem--link (Task 3 review fold-in): the owner branch that used them ("Lo que sigue", spec
   §6) is gone — grep confirms zero razor references anywhere in the app now, removed alongside. */
.nv-card { background: var(--card); border: 1px solid var(--hair); border-radius: 13px; padding: 1.1rem 1.2rem; }
.nv-card h2 { margin: 0 0 0.7rem; font-size: 1.05rem; }

/* ---- Shared layout rhythm -------------------------------------------------
   Pages use small, composed blocks rather than one dense stream of controls. These defaults keep
   headings, cards, fields, and action groups visually separate without forcing every page to
   repeat the same spacing rules. Individual feature layouts can still tighten their own internals.
*/
.nv-main > h1,
.nv-main > h2 { margin: 0 0 1.15rem; }
.nv-main > h1 { font-size: clamp(1.8rem, 3vw, 2.35rem); }
.nv-main > h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.nv-card { padding: clamp(1.25rem, 2.5vw, 1.65rem); }
.nv-card h2 { margin-bottom: 1rem; }
.nv-field { margin-bottom: 1.1rem; }
.nv-row-actions,
.nv-wizard__nav { gap: 0.75rem; }

/* ---- Document library ----------------------------------------------------- */
.nv-documentos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 1120px;
}
.nv-doc-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 32rem);
  align-items: end;
  gap: 1.25rem 2rem;
}
.nv-doc-head h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.35rem); }
.nv-doc-head .tb-callout { margin: 0; }
.nv-doc-head__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0.15rem;
}
.nv-doc-category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nv-doc-category h2 { margin: 0; }
.nv-doc-pair {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.nv-doc-pair:first-of-type { padding-top: 0.15rem; border-top: 0; }
/* B.4a: was opacity .72 (soft text fell to 3.1:1). The "Reemplazado" chip carries the state; the title quietens. */
.nv-doc-pair--superseded .nv-doc-row__title { color: var(--soft); }
.nv-doc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem 1.25rem;
}
.nv-doc-row__info {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}
.nv-doc-row__title {
  flex: 1 1 100%;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.nv-doc-row--translation {
  margin-left: 1.25rem;
  padding: 0.8rem 0 0.8rem 1rem;
  border-left: 2px solid var(--acc);
  background: var(--hov);
  border-radius: 0 9px 9px 0;
}
.nv-doc-row--translation .nv-doc-row__title { font-size: 0.95rem; font-weight: 600; }
.nv-doc-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.nv-doc-row__actions .nv-btn { white-space: nowrap; }
.nv-doc-pairnudge { align-self: flex-start; margin-left: 1.25rem; }
.nv-doc-confirm,
.nv-doc-replace-form,
.nv-doc-edit-form { margin-top: 0.35rem; }
.nv-doc-edit-form { display: flex; flex-direction: column; gap: 0.1rem; }

/* Document workspace: the preview is a non-modal companion pane, so the library remains available
   while a file is being inspected. The wider content track gets the document surface; the library
   stays usable at a comfortable reading width and can scroll independently on long collections. */
.nv-documentos--previewing {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(25rem, 0.92fr) minmax(30rem, 1.35fr);
  align-items: start;
  gap: 1.25rem;
}
.nv-documentos--preview-expanded {
  grid-template-columns: minmax(20rem, 0.68fr) minmax(34rem, 1.75fr);
}
.nv-documentos__library { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.nv-documentos--previewing .nv-doc-head { grid-template-columns: 1fr; }
.nv-documentos--previewing .nv-doc-head__actions { grid-column: auto; }
.nv-documentos--previewing .nv-doc-row { grid-template-columns: 1fr; }
.nv-documentos--previewing .nv-doc-row__actions { justify-content: flex-start; }
.nv-doc-preview-panel {
  min-width: 0; position: sticky; top: 1rem; display: flex; flex-direction: column;
  height: calc(100vh - 2rem); min-height: 36rem; overflow: hidden;
  background: var(--card); border: 1px solid var(--hair); border-radius: 13px;
  box-shadow: 0 18px 40px -30px rgba(20, 30, 50, .55);
}
.nv-doc-preview-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-width: 0; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); background: var(--card2);
}
.nv-doc-preview-panel__heading { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.nv-doc-preview-panel__heading b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-doc-preview-panel__eyebrow {
  color: var(--soft); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.nv-doc-preview-panel__tools { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 0.45rem; }
.nv-doc-preview-panel__size,
.nv-doc-preview-panel__close { flex: 0 0 auto; }
.nv-doc-preview-panel__close span:first-child { font-size: 1.25rem; line-height: 0.8; }
.nv-doc-preview-panel__surface { flex: 1; min-height: 0; padding: 0.75rem; background: var(--bg); }
.nv-doc-preview-panel__frame,
.nv-doc-preview-panel__image { display: block; width: 100%; height: 100%; min-height: 0; border: 0; object-fit: contain; background: #fff; }
.nv-doc-preview-panel__image { position: relative; overflow: auto; }

@media (max-width: 760px) {
  .nv-doc-head { grid-template-columns: 1fr; gap: 0.9rem; }
  .nv-doc-head__actions { grid-column: auto; }
  .nv-doc-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .nv-doc-row__actions { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .nv-documentos--previewing { display: flex; }
  .nv-doc-preview-panel { position: relative; top: auto; order: -1; height: min(72vh, 42rem); min-height: 24rem; }
  .nv-documentos--preview-expanded .nv-doc-preview-panel { height: min(86vh, 56rem); }
}

@media (min-width: 901px) and (max-width: 1120px) {
  .nv-documentos--previewing { grid-template-columns: minmax(18rem, 0.85fr) minmax(25rem, 1.15fr); }
  .nv-documentos--preview-expanded { grid-template-columns: minmax(18rem, 0.65fr) minmax(28rem, 1.35fr); }
}

@media (max-width: 520px) {
  .nv-documentos { gap: 1rem; }
  .nv-card { padding: 1.1rem; }
  .nv-doc-row--translation,
  .nv-doc-pairnudge { margin-left: 0.5rem; }
}

/* /ayuda help center (Owner landing Phase A, Task 5): a stack of .nv-card sections, each with a
   worked-example line and (when relevant) a where-to-find-it hint — .nv-hint/.nv-card are reused
   as-is, this just spaces the stack and gives the example line some room to breathe. */
.nv-ayuda { display: flex; flex-direction: column; gap: 1rem; max-width: 760px; }
.nv-ayuda__section p { margin: 0 0 0.6rem; line-height: 1.5; }
.nv-ayuda__section p:last-child { margin-bottom: 0; }
.nv-ayuda__example { color: var(--soft); }
/* Help videos pilot (2026-11-11): the topic's clip sits above its text, full width of the panel, 16:9. */
.nv-helpvideo { margin: 0 0 12px; }
.nv-helpvideo__player { display: block; width: 100%; max-width: 720px; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
/* Wave B.1/B.6 (ux-admin-community-023, ux-staff-013): a table of contents first, then one collapsed disclosure per
   section — the heading holds a full-width toggle button (44px target) whose chevron turns when open. Phone: the
   ToC and the headings wrap; nothing is wider than the column. */
.nv-ayuda, .nv-ayuda * { min-width: 0; }
.nv-ayuda { overflow-wrap: anywhere; }
.nv-ayuda__toc h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.nv-ayuda__toc-group { margin: 0.8rem 0 0.3rem; font-size: 0.95rem; color: var(--soft); }
.nv-ayuda__toc-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.15rem; }
.nv-ayuda__toc-list a { display: inline-block; padding: 0.35rem 0; color: var(--ink); }
.nv-ayuda__toc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.nv-ayuda__viewas { display: flex; flex-direction: column; gap: 0.3rem; }
.nv-ayuda__viewas .nv-field__box { max-width: 100%; }
.nv-ayuda__section { padding-top: 0.25rem; padding-bottom: 0.25rem; scroll-margin-top: 4.5rem; }
.nv-ayuda__heading { margin: 0; font-size: 1.1rem; }
.nv-ayuda__toggle { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%;
  min-height: 44px; padding: 0.4rem 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.nv-ayuda__toggle::after { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.15s ease; }
.nv-ayuda__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); }
.nv-ayuda__toggle:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.nv-ayuda__panel { padding: 0.2rem 0 0.6rem; }
@media (prefers-reduced-motion: reduce) { .nv-ayuda__toggle::after { transition: none; } }
.nv-stat { background: var(--card); border: 1px solid var(--hair); border-radius: 13px; padding: 0.9rem 1.1rem; }
.nv-stat b { display: block; font-family: var(--mono); font-size: 1.5rem; }
/* ux2-admin-money-013: a stat never wraps ("96,131.06 / MXN"); the money total spans two cards and scales to fit. */
.nv-stat { container-type: inline-size; }
.nv-stat b { white-space: nowrap; }
.nv-stmt__outstanding { grid-column: span 2; }
@media screen { .nv-stmt__outstanding b { font-size: min(1.5rem, 10cqi); } }
.nv-stat span { color: var(--soft); font-size: 0.85rem; }

/* ---- Dashboard pass (Amanecer redesign, Task 7 — shared components: StatTile, PendingDocket) ---- */
.nv-dash { display: flex; flex-direction: column; gap: 1rem; }
.nv-dash__greeting h1 { margin: 0 0 0.2rem; font-size: clamp(22px, 3vw, 30px); }
.nv-dash__sub { margin: 0; color: var(--soft); }
.nv-dash__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
@media (max-width: 820px) { .nv-dash__tiles { grid-template-columns: repeat(2, 1fr); } }
.nv-dash__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.3rem; }

/* ---- Owner landing Phase A (Task 3): the owner's personal /dashboard page ---- */
.nv-owner { display: flex; flex-direction: column; gap: 1rem; max-width: 1060px; }
.nv-owner__greeting h1 { margin: 0 0 0.2rem; font-size: clamp(22px, 3vw, 30px); }
.nv-owner__units { display: flex; flex-direction: column; gap: 1rem; }
.nv-owner-unit { min-width: 0; }
.nv-table-scrollhint { display: none; }
@media (max-width: 900px) { .nv-table-scrollhint { display: block; } }
/* A8 (j-g2-admin-backoffice-013): the shared wide-table idiom. The wrap is a focusable scroll region
   (role="region", tabindex="0", aria-describedby -> the hint above); .nv-scroll-sticky1 pins each row's
   first cell over the columns scrolling under it. The pinned cell paints the surface the table sits on:
   --table-sticky-bg inherits the page background and flips to --card inside any card, so no column
   ever shows through; a row highlight that wants to reach the pinned cell overrides the token. */
.nv-shell, :root { --table-sticky-bg: var(--bg); }
.nv-card { --table-sticky-bg: var(--card); }
.nv-table-wrap { position: relative; max-width: 100%; overflow-x: auto; }
.nv-table-wrap:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.nv-scroll-sticky1 tr > :is(th, td):first-child { position: sticky; left: 0; z-index: 1; background: var(--table-sticky-bg, var(--card)); }
/* UX audit II (ux2-admin-money-008, ux2-residents-003/008/009): on a phone a money list is one card per row — the number
   and the action come first. Opt-in on the wrap (.nv-cardrows, beside .nv-table-wrap); each cell says its part:
   .nv-cr-title (the row's name, left) and .nv-cr-amount (its figure, right) share the first line, .nv-cr-sub / .nv-cr-amount2
   are the small line above / the second figure under them, .nv-cr-meta the details that follow, .nv-cr-status the chip and
   the row's action (a full-width button), and every other cell prints its column name from data-label. A cell marked
   .nv-cr-zero (an empty charge or payment) drops out. The thead stays for screen readers; nothing scrolls, so the
   "Desliza" hint goes. :nth-child(n) lifts the resets over a page's scoped table rules (0,2,1) without !important. */
/* The header row is hidden on a phone, so anything it says beyond the column name (a note, a help button) is said once
   above the cards in .nv-cardrows-help; inside the hidden header it is invisible, so never focusable. The cells keep
   explicit table roles (role="table"/"row"/"cell"…) because a table whose display changes loses its semantics in some
   browsers; js/novara-cardrows.js drops the "Desliza" aria-describedby while the cards show (nothing scrolls). */
.nv-cardrows-help { display: none; }
.nv-cardrows-help p { margin: .25rem 0; }
@media (max-width: 600px) {
  .nv-table-scrollhint:has(+ .nv-cardrows) { display: none; }
  .nv-cardrows > table:nth-child(n) { display: block; min-width: 0; width: 100%; }
  .nv-cardrows > table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nv-cardrows > table > thead :is(button, a, .nv-th-note, .nv-tip) { visibility: hidden; }
  .nv-cardrows-help { display: block; }
  .nv-cardrows > table > :is(tbody, tfoot) { display: block; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem .75rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--hair); }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td):nth-child(n) { display: block; grid-column: 1 / -1; position: static; min-width: 0; padding: 0; border: 0; background: none; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-sub { grid-column: 1; order: -6; font-size: .8rem; color: var(--soft); }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-title { grid-column: 1; order: -5; font-weight: 600; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-amount { grid-column: 2; order: -5; text-align: right; white-space: nowrap; font-weight: 600; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-amount2 { grid-column: 2; order: -4; text-align: right; white-space: nowrap; font-size: .85rem; color: var(--soft); }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-meta { order: -3; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-status { order: -2; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-zero { display: none; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td)[data-label]::before { content: attr(data-label) " "; color: var(--soft); font-family: var(--sans); font-size: .8rem; font-weight: 400; }
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-amount[data-label]::before,
  .nv-cardrows > table > :is(tbody, tfoot) > tr > :is(th, td).nv-cr-amount2[data-label]::before { display: block; }
  .nv-cardrows .nv-cr-status .nv-btn { display: flex; width: 100%; min-height: 44px; justify-content: center; margin-top: .4rem; }
}
.nv-owner-unit h2, .nv-role-panel h2 { overflow-wrap: anywhere; }
.nv-owner-unit__balance { display: flex; align-items: center; gap: 0.6rem; margin: 0.3rem 0; flex-wrap: wrap; }
.nv-owner-unit__amount { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; }
.nv-owner-unit__next { color: var(--soft); }
.nv-owner-unit__ref { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; flex-wrap: wrap; }
.nv-owner-unit__refcode { cursor: pointer; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.nv-owner-unit__statement { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.nv-owner-unit__overdue { font-weight: 600; }
.nv-owner-unit__howtopay[hidden] { display: none; }
.nv-owner-unit__howtopay { margin: 0.75rem 0; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.nv-owner-unit__howtopay h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.nv-owner-unit__instructions { margin: 0 0 0.4rem; white-space: pre-line; overflow-wrap: anywhere; }
.nv-owner__doclist { list-style: none; margin: 0.3rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.nv-owner__docs-viewall { display: inline-block; margin-top: 0.4rem; font-size: 0.85rem; }
.nv-owner__retry { margin-top: 0.4rem; }

/* ---- Maintenance DEMO card (spec §3.3, Task 4) — owner page + admin dashboard ---- */
.nv-maintdemo__head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.nv-maintdemo__head h2 { margin: 0; }
.nv-maintdemo__list { list-style: none; margin: 0 0 0.8rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.nv-maintdemo__row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.nv-maintdemo__desc { color: var(--ink); }
.nv-maintdemo__dialog { max-width: 30rem; }

/* ---- Nova (flag-gated) ---- */
/* Lives in NavSidebar's bottom slot now (Task 4) — .nv-side .nv-nova-pill above pins it there
   with margin-top: auto instead of the old NovaDock page-corner fixed position. */
/* Final-review I-1: background: var(--ink); color: #fff was fixed white-on-dark, which reads fine
   in Día (--ink is dark) but breaks in Noche where --ink is the light foreground color — same
   coral→acc-migration-shaped defect as .nv-btn above. Retheme onto card2 (spec §2.1's assigned
   input surface, distinct from --card so the pill still reads as raised) with an --acc border and
   --ink text, so both themes stay legible without a separate dark-mode override. */
.nv-nova-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1px solid var(--acc); border-radius: 999px; background: var(--card2); color: var(--ink); font: inherit;
  font-weight: 600; padding: 0.5rem 1rem; cursor: pointer;
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--ink) 60%, transparent);
}
.nv-nova-dot {
  width: 20px; height: 20px; border-radius: 999px; background: var(--acc); display: grid;
  place-items: center; font-size: 0.7rem;
}

/* ---- Blazor error UI (template requirement) ---- */
#blazor-error-ui {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--warn-tint); color: var(--warn-ink); padding: 0.6rem 1.25rem;
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }

/* ==== Cuota engine (FEATURE-03) ==== */
.nv-cuotas__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.nv-tabs { display: inline-flex; gap: 0.3rem; background: var(--tint); border-radius: 999px; padding: 3px; }
.nv-tab {
  border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--soft);
  padding: 0.35rem 1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.nv-tab--active { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.nv-empty { text-align: center; max-width: 34rem; margin: 2rem auto; }
.nv-empty p { color: var(--soft); margin: 0.4rem 0 1rem; }

.nv-schedlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.nv-sched { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nv-sched__main { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.nv-sched__name { font-weight: 600; }
.nv-sched__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin-left: auto; }
.nv-sched__amount { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.nv-sched__amount small { font-family: var(--sans); font-weight: 400; color: var(--soft); }
.nv-sched__last { font-size: 0.8rem; color: var(--soft); }
.nv-sched__actions { display: flex; gap: 0.5rem; }
/* B3 (j-g2-admin-backoffice-030): what "Generar" will post sits under the button; a posted run confirms above the list. */
.nv-sched__generate { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.nv-sched__summary { font-size: 0.8rem; color: var(--soft); text-align: right; }
/* ux2-admin-money-005: the monthly cuota card lists its components under its name. */
.nv-sched__components { list-style: none; margin: 0; padding: 0; flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; color: var(--soft); }
.nv-sched__component { font-variant-numeric: tabular-nums; }
.nv-cuotas__generated { display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; align-items: baseline; margin: 0 0 1rem; }
.nv-cuotas__generated a { font-weight: 600; }

/* Status/kind/type chips */
.nv-chip { display: inline-block; border-radius: 999px; padding: 0.1rem 0.55rem; font-size: 0.75rem; font-weight: 600; background: var(--tint); color: var(--ink); }
.nv-chip--ordinaria { background: var(--tint); color: var(--ink); }
.nv-chip--extraordinaria { background: var(--lav-tint); color: var(--lav-ink); }
.nv-chip--draft { background: var(--bg); color: var(--soft); }
.nv-chip--active { background: var(--good-tint); color: var(--good); }
.nv-chip--closed { background: var(--bg); color: var(--soft); }
/* RULED (final review): a charge is normal ledger semantics, not an error — stays on the accent
   family, text on --acc-ink (AA-safe accent-as-text role) over --acc-tint. */
.nv-chip--charge, .nv-chip--debitadjustment, .nv-chip--openingbalance { background: var(--acc-tint); color: var(--acc-ink); }
.nv-chip--payment, .nv-chip--creditnote { background: var(--good-tint); color: var(--good); }

/* Debit/credit amounts — RULED (final review): a debit is normal ledger semantics, not an error, so
   it stays on the accent family. --acc-ink is the AA-safe accent-as-text role (--acc itself is only
   meant for fills/large elements, see .nv-chip--charge below for the matching bg+text pairing). */
.nv-amt--debit { color: var(--acc-ink); }
.nv-amt--credit { color: var(--good); }

/* Modal */
.nv-modal { position: fixed; inset: 0; background: rgba(20,30,40,0.42); display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; z-index: 40; }
.nv-modal--nested { background: rgba(20,30,40,0.28); z-index: 50; }
/* padding-top reserves a top strip for the absolute close button so it never overlaps the
   header (e.g. the ledger's title + "Record payment" button sit clear below the ×). */
.nv-modal__panel { position: relative; width: 100%; max-width: 40rem; padding-top: 3rem; }
/* A clearly-visible circular close button — the old faint × blended into the text and read as an
   ambiguous glyph, so users couldn't tell how to leave a modal (e.g. the unit-ledger drill-in). */
.nv-modal__close {
  position: absolute; top: 0.7rem; right: 0.8rem; width: 2rem; height: 2rem;
  display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 1.25rem; line-height: 1; cursor: pointer; transition: background 120ms ease, border-color 120ms ease;
}
.nv-modal__close:hover { background: var(--tint); color: var(--ink); border-color: var(--acc-ink); }
.nv-optiongrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0.6rem 0; }
.nv-calloutrow { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
@media (max-width: 620px) { .nv-optiongrid { grid-template-columns: 1fr; } }

/* Shared data tables */
.nv-preview__table, .nv-ledger__table, .nv-balances__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin-top: 0.8rem; }
.nv-preview__table th, .nv-ledger__table th, .nv-balances__table th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soft); padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line);
}
.nv-preview__table td, .nv-ledger__table td, .nv-balances__table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--hair); }
td.nv-num, th.nv-num { text-align: right; }

/* Run preview — the "equals to the centavo" total is the demo moment */
.nv-preview__total td { border-top: 2px solid var(--acc-ink); font-weight: 700; font-size: 1.05rem; }
.nv-preview__schedule { margin: 0 0 0.2rem; }
.nv-preview__what { margin: 0.9rem 0 0; color: var(--soft); line-height: 1.5; }
.nv-preview__total .nv-num { color: var(--ink); }
.nv-softwarn { background: var(--warn-tint); color: var(--warn-ink); border-radius: 9px; padding: 0.6rem 0.8rem; margin: 0.9rem 0 0; font-size: 0.9rem; }
.nv-btn--confirm { background: var(--good); border-color: var(--good); }

/* Ledger + balances */
.nv-ledger__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.4rem; }
.nv-ledger__balance { display: flex; flex-direction: column; margin-left: auto; text-align: right; }
.nv-ledger__balance span { font-size: 0.75rem; color: var(--soft); }
.nv-ledger__balance b { font-size: 1.15rem; }
.nv-ledger__empty, .nv-balances__empty { color: var(--soft); padding: 1rem 0; }
.nv-ledger__opening { display: grid; gap: 0.6rem; margin: 0.8rem 0; }
.nv-ledger__opening fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 0.6rem; }
.nv-ledger__check { display: flex; gap: 0.5rem; align-items: flex-start; }
.nv-unidades__buildings { margin-bottom: 1rem; }
.nv-unidades__buildinglist { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.nv-unidades__buildinglist > li { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; justify-content: space-between; min-width: 0; }
.nv-unidades__buildinglist > li > div { min-width: 0; overflow-wrap: anywhere; }
.nv-building-editor { flex: 1 1 100%; display: grid; gap: 0.6rem; }
.nv-building-editor fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 0.6rem; }
.nv-building-editor__counts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.nv-balances__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.nv-balances__total b { margin-left: 0.3rem; }
.nv-balances__import { margin-top: 1rem; }
.nv-linkbtn, .nv-link { border: 0; background: transparent; color: var(--acc-ink); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.nv-linkbtn--unit { font-weight: 600; }
.nv-link:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
/* Setup pointers in /presupuesto's empty blocks (wave B0): links, not buttons; a phone-sized tap target. */
.nv-presupuesto__setuplink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.nv-hint { color: var(--soft); font-size: 0.8rem; }
.nv-notice { background: var(--warn-tint); color: var(--warn-ink); border-radius: 9px; padding: 0.7rem 0.9rem; }
.nv-ok { color: var(--good); font-size: 0.9rem; }

/* ==== Morosidad Radar (FEATURE-01 Slice A) ==== */
.nv-mrd-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
/* ux2-admin-money-018: the page h1 size, like Pagos and Estados de cuenta (it was 1.3rem). */
.nv-mrd-head h1 { margin: 0; }
.nv-mrd-settings { margin-bottom: 1rem; }
.nv-mrd-settings__hint { margin: 0 0 0.8rem; }
.nv-mrd-settings__grid { display: grid; grid-template-columns: repeat(3, minmax(10rem, 1fr)); gap: 0.8rem; align-items: start; }
@media (max-width: 720px) { .nv-mrd-settings__grid { grid-template-columns: 1fr; } }
/* nv-mrd-tiles: grid wrapper only — the tiles themselves are shared StatTile components (task 8),
   so the old per-card .nv-mrd-tile/--total/--moroso rules are retired. */
.nv-mrd-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.7rem; margin-bottom: 1rem; }
.nv-mrd-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.nv-mrd-table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); }
.nv-mrd-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--hair); }
/* AlCorriente/EnGracia/Vencido/Moroso row status converged onto the shared StatusChip vocabulary
   in task 8 (Ok/Pend/Pend/Bad) — see nv-chip--ok/pend/bad above; the four bespoke chip rules that
   used to live here are retired. */
.nv-mrd-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* ==== Morosidad Radar (FEATURE-01 Slice B) — setup wizard ==== */
.nv-ladder { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.8rem 0; }
.nv-ladder__step { min-width: 14rem; display: flex; flex-direction: column; gap: 0.4rem; }
.nv-contacts-step .nv-units-table { margin-bottom: 0.8rem; }

/* Channel badge on the radar's Contacto column — nv-chip's pill shape, smaller and inline next to the name. */
.nv-badge { display: inline-block; border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.7rem; font-weight: 600; margin-left: 0.4rem; }
.nv-badge--whatsapp { background: var(--good-tint); color: var(--good); }
.nv-badge--email { background: var(--tint); color: var(--ink); }
.nv-badge--none { background: var(--bg); color: var(--soft); }

/* Ajustes' extended section (Task 17) — only rendered once the policy is enabled. */
.nv-mrd-settings__full { margin-top: 1rem; display: flex; flex-direction: column; gap: 1rem; }

/* ==== Bandeja de salida (FEATURE-01 Slice C, Task 16) ==== */
.nv-outbox-tier, .nv-outbox-skipped, .nv-outbox-confirm { margin-bottom: 1rem; }
.nv-outbox-skip-group { margin-top: 0.6rem; }
.nv-outbox-skip-group h3 { margin: 0 0 0.3rem; font-size: 0.85rem; color: var(--soft); }
.nv-outbox-skip-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.nv-outbox-skip-group li { display: flex; align-items: center; gap: 0.5rem; }

/* Message-status chips (Delivered/Read use the ✓/✓✓ glyphs baked into the label, not color alone). */
.nv-chip--msg-draft, .nv-chip--msg-skipped { background: var(--bg); color: var(--soft); }
.nv-chip--msg-queued, .nv-chip--msg-sent { background: var(--tint); color: var(--ink); }
.nv-chip--msg-delivered, .nv-chip--msg-read { background: var(--good-tint); color: var(--good); }
/* Final-review I-2: Failed is a genuine error state, not a brand-accent one — same fix as .nv-error. */
.nv-chip--msg-failed { background: var(--bad-tint); color: var(--bad); }

/* Batch header status (Sending/Completed) — same pill idiom as the radar's row chips. */
.nv-chip--sending { background: var(--warn-tint); color: var(--warn-ink); }
.nv-chip--completed { background: var(--good-tint); color: var(--good); }

/* Language chip on outbox rows — neutral, since it's informational rather than a status signal. */
.nv-chip--lang-es, .nv-chip--lang-en, .nv-chip--lang-none { background: var(--tint); color: var(--ink); }

/* ==== Bank reconciliation review queue (FEATURE-04 Slice B, Task 16) ==== */
/* Auto-matched ("nv-chip--ok"): converged onto the shared StatusChip vocabulary defined below —
   no rule here, see the Amanecer shared-components block (spec §5, one status-chip vocabulary
   app-wide). Suggested + its multiple-refs chip: amber — same match-confidence idiom as
   .nv-chip--sending. (The /pagos imports card's own status chip converged onto StatusChip in
   task 8 — see nv-chip--pend/ok above — so nv-chip--reviewing is retired.) */
.nv-chip--suggested, .nv-chip--multiplerefs { background: var(--warn-tint); color: var(--warn-ink); }
.nv-review__numericrefhint { display: block; margin-top: 0.2rem; }

/* ==== Estados de cuenta board (FEATURE-02, EdC T15) ==== */
.nv-stmt__toolbar { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.nv-stmt__toolbar .nv-field { margin-bottom: 0; min-width: 14rem; }
.nv-stmt__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.7rem; margin-bottom: 1.2rem; }
.nv-stmt__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.nv-stmt__table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line); }
.nv-stmt__table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--hair); }
.nv-stmt__row { cursor: pointer; }
.nv-stmt__row:hover { background: var(--tint); --table-sticky-bg: var(--tint); }
.nv-stmt__empty { text-align: center; padding: 2rem 1rem; }
.nv-stmt__openmonth { margin: 0.25rem 0 1rem; }
.nv-stmt__settings { margin-top: 1.2rem; }

/* Aging chip: green = current, amber = in-grace (overrides the raw bucket — still inside the grace
   window, don't alarm the admin), --bad = genuinely overdue past grace (final-review I-2: this
   used to read "coral = genuinely overdue" and sit on --acc/--acc-tint — a holdover from the
   coral→acc migration that wrongly mapped the error semantic onto the brand accent). */
.nv-chip--stmt-current { background: var(--good-tint); color: var(--good); }
.nv-chip--stmt-grace { background: var(--warn-tint); color: var(--warn-ink); }
.nv-chip--stmt-overdue { background: var(--bad-tint); color: var(--bad); }

/* Delivery status chip converged onto the shared StatusChip vocabulary — Statements adopts Amanecer
   components (task 9) — Ok/Pend/Mut/Bad, see nv-chip--ok/pend/mut/bad above; the four bespoke
   nv-chip--stmt-delivery-* rules that used to live here are retired (same color grouping:
   sand→mut, amber→pend, good→ok, coral→bad). */

/* Board-level "Enviar todos" result panel (EdC T16). */
.nv-stmt__sendall-result { margin-bottom: 1rem; }
.nv-stmt__sendall-skiplist { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* ==== Statement preview drawer + send flow + delivery log (FEATURE-02, EdC T16) ==== */
.nv-stmt-preview__panel { max-width: 52rem; }
.nv-stmt-preview__head { margin-bottom: 0.8rem; }
.nv-stmt-preview__summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.6rem; margin: 0.6rem 0 0; }
.nv-stmt-preview__summary div { display: flex; flex-direction: column; }
.nv-stmt-preview__summary dt { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft); }
.nv-stmt-preview__summary dd { margin: 0; font-weight: 600; }
.nv-stmt-preview__toolbar { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0.8rem 0; }
.nv-stmt-preview__langtoggle { display: flex; align-items: center; gap: 0.35rem; }
.nv-stmt-preview__langlabel { font-size: 0.85rem; font-weight: 600; }
.nv-stmt-preview__sendresult { margin-bottom: 0.8rem; }
.nv-stmt-preview__skiplist { margin: 0.4rem 0 0; padding-left: 1.2rem; }
/* The statement is an email/PDF artefact rendered on its own light paper (a sandboxed srcdoc
   iframe — see StatementPreview.razor): the frame, not the container, scrolls, and the paper
   stays white in both themes on purpose — it previews what the owner receives. */
.nv-stmt-preview__doc { border: 1px solid var(--line); border-radius: 0.5rem; margin-bottom: 1rem; overflow: hidden; background: #fff; }
.nv-stmt-preview__paper { display: block; width: 100%; height: 60vh; border: 0; background: #fff; }
.nv-stmt-preview__doc .nv-boot { min-height: 12rem; color: var(--soft); }
.nv-stmt-preview__log { margin-top: 1rem; }

/* ==== Amanecer shared components: StatusChip, StatTile, CalloutBand (Task 5) ==== */

/* StatusChip — small state pill with a leading currentColor dot. The design spec mandates ONE
   status-chip vocabulary app-wide (spec §5): where a legacy .nv-chip--* variant name collides
   with ok/pend/bad/mut, these rules are the single definition and legacy markup using that name
   (e.g. BankImportWizard's "Auto-matched" chip, .nv-chip--ok) deliberately picks up the dot +
   inline-flex layout too — that's convergence, not a regression. Legacy variants with no
   ok/pend/bad/mut counterpart (msg-*, stmt-*, cuotas kind/status, etc.) are untouched. */
.nv-chip--ok, .nv-chip--pend, .nv-chip--bad, .nv-chip--mut {
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.nv-chip--ok::before, .nv-chip--pend::before, .nv-chip--bad::before, .nv-chip--mut::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex: none;
}
.nv-chip--ok { background: var(--good-tint); color: var(--good); }
.nv-chip--pend { background: var(--warn-tint); color: var(--warn-ink); }
.nv-chip--bad { background: var(--bad-tint); color: var(--bad); }
.nv-chip--mut { background: var(--tint); color: var(--soft); }

/* StatTile — dashboard stat card: label, display-face value, optional delta. */
.nv-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.3rem;
}
.nv-tile__lb { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.nv-tile__v {
  font-family: var(--disp); font-size: 1.6rem; font-weight: 650;
  font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.15;
}
/* UX audit II (ux2-admin-money-013): a money figure never breaks from its currency ("249,149.76 / MXN"). The tile is a
   size container, so the figure scales down with a narrow tile instead of wrapping or overflowing; the currency code is a
   smaller suffix. Lint: MoneyFigureLayoutTests. */
.nv-tile { container-type: inline-size; }
.nv-tile__v--money { white-space: nowrap; }
@media screen { .nv-tile__v { font-size: min(1.6rem, 11cqi); } }
.nv-tile__cur { font-size: .6em; font-weight: 600; color: var(--soft); letter-spacing: .02em; }
.nv-tile__d { font-size: 0.8rem; font-weight: 600; color: var(--soft); }
.nv-tile__d--up { color: var(--good); }
.nv-tile__d--warn { color: var(--warn-ink); }

/* CalloutBand — full-width flex row banner; warn (default) uses --acc, crit uses --bad. Margin-bottom
   so a page can drop one straight into a block flow (task 8's first page-level consumers) without a
   dedicated spacing wrapper. */
.nv-band {
  display: flex; align-items: center; gap: 0.7rem; border-radius: 12px;
  padding: 0.7rem 1rem; background: var(--acc-tint); border: 1px solid var(--acc); color: var(--ink);
  margin-bottom: 1rem;
}
.nv-band--crit { background: var(--bad-tint); border-color: var(--bad); }
.nv-band__go { margin-left: auto; }
/* PR #68 round-10 (Codex P2): .nv-band is a non-wrapping row, fine for a short message + a single
   button. But the statement-generation dialog's manual-FX action expands the Action slot into two
   full-width fields plus a submit button, and that content has no room to share a row with the
   message on a phone — it overflows the band/card/modal padding. Below 600px let the row wrap and
   pin the action slot to its own full-width line under the message, matching the tooltip bubble's
   own 600px breakpoint above. */
@media (max-width: 600px) {
  .nv-band { flex-wrap: wrap; }
  .nv-band__go { flex-basis: 100%; margin-left: 0; }
}

/* ==== Amanecer shared components: PendingDocket, AgingRows, NovTooltip (Task 6) ==== */

/* PendingDocket — numbered docket row; hairline separator between rows, none on the last. */
.nv-dk {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--hair);
}
.nv-dk:last-child { border-bottom: none; }
.nv-dk__n { color: var(--acc-ink); font-weight: 700; width: 18px; flex: none; }
.nv-dk__n--crit { color: var(--bad); }
.nv-dk__act { margin-left: auto; color: var(--acc-ink); font-weight: 600; text-decoration: none; }

/* AgingRows — label / proportional bar / right-aligned amount per aging bucket. */
/* ux2-admin-money-013: the amount column sizes to its figure — a fixed 96px wrapped "80,000.19 / MXN". */
.nv-agrow {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) max-content; align-items: center; gap: 12px;
  padding: 0.4rem 0;
}
.nv-agrow__lb { color: var(--soft); font-size: 0.85rem; }
.nv-agrow__bar { height: 10px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.nv-agrow__fill { display: block; height: 100%; border-radius: 4px; }
.nv-agrow__amt {
  white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink);
}

/* NovTooltip — icon-only help toggle; ink-colored bubble with a rotated-square arrow. */
.nv-tip { position: relative; display: inline-flex; }
.nv-tip__btn {
  width: 17px; height: 17px; border-radius: 999px; border: 1px solid var(--soft);
  color: var(--soft); background: transparent; cursor: help; line-height: 1;
  font-size: 0.7rem; padding: 0; display: inline-flex; align-items: center; justify-content: center;
}
.nv-tip__bub {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 250px; max-width: min(250px, calc(100vw - 32px));
  background: var(--ink); color: var(--bg); border-radius: 10px;
  padding: 10px 13px; font-size: 12.5px; z-index: 20;
  /* The bubble is help prose wherever it opens: never inherit a host's label typography (uppercase,
     tracked, mono table headers, right-aligned numeric columns, nowrap cells). */
  font-family: var(--sans); font-weight: 400; line-height: 1.45; text-transform: none;
  letter-spacing: normal; text-align: left; white-space: normal; font-variant-numeric: normal;
}
.nv-tip__bub::after {
  content: ""; position: absolute; top: 100%; left: 50%; width: 10px; height: 10px;
  background: var(--ink); transform: translateX(-50%) translateY(-50%) rotate(45deg);
}
/* Above 600px js/novara-tooltip.js places the open bubble against the viewport (position: fixed, top/left
   from the trigger's rectangle) so a scrolling ancestor (overflow-x: auto clips vertically too) can never
   cut it off; --nv-tip-arrow keeps the arrow on the trigger and --below flips the arrow to the top edge. */
.nv-tip__bub--placed { position: fixed; bottom: auto; transform: none; z-index: 1000; }
.nv-tip__bub--placed::after { left: var(--nv-tip-arrow, 50%); }
.nv-tip__bub--below::after { top: 0; }
/* Owner landing Phase A (spec §4): the two OPTIONAL trailing lines a call site can opt into via
   NovTooltip's Sample/DocsHref params — token-only, no new colors. */
.nv-tip__sample { display: block; margin-top: 6px; font-style: italic; opacity: 0.85; }
.nv-tip__link {
  display: block; margin-top: 6px; color: var(--bg); font-weight: 600; text-decoration: underline;
}
.nv-mi-perfil .nv-tip__bub { text-transform: none; letter-spacing: normal; font-weight: 400; }
@media (min-width: 601px) {
  .nv-mi-perfil .nv-tip__bub { left: 0; transform: none; }
  .nv-mi-perfil .nv-tip__bub::after { left: 8px; }
}
/* PR #68 round-3 (Codex P2): the max-width clamp above bounds the bubble's own size but not its
   POSITION — centered on the trigger via left:50%/translateX(-50%), a 250px-wide bubble on a
   320px-wide UnitsStep second-column trigger can still overflow the right edge by well over
   100px (the trigger sits near x≈290, so half the bubble lands past x=320). Centering can never
   be made safe purely by shrinking width, because the trigger's position relative to the
   viewport is unknown in CSS. So below 600px the bubble stops being trigger-relative and
   anchors to the viewport instead: position: fixed with BOTH left and right set to 16px (and
   width: auto) makes the box's own edges land at exactly 16px and (100vw - 16px) — inside [0,
   100vw] for any viewport ≥ 32px wide, so it provably cannot overflow either edge (320px width
   leaves 288px of bubble, comfortably positive). bottom: 16px keeps it on-screen without needing
   the trigger's vertical position either. The arrow (::after) is trigger-relative by design, so
   it's hidden here rather than left pointing at empty space. */
@media (max-width: 600px) {
  .nv-tip__bub {
    position: fixed; left: 16px; right: 16px; bottom: 16px; top: auto;
    width: auto; max-width: none; transform: none;
  }
  .nv-tip__bub::after { display: none; }
}

/* ==== Pagos + Morosidad adopt Amanecer components (Task 8) ==== */

/* Reference-code chip — mono, tinted pill for a copy-pasted-looking code (payment references). */
.nv-ref {
  font-family: var(--mono); background: var(--tint); border-radius: 6px;
  padding: 2px 7px; font-size: 12.5px;
}

/* Pagos tables had no dedicated head/row rules before this pass — plain browser defaults. Same
   uppercase-label idiom as nv-mrd-table/nv-stmt__table, but with the heavier 2px --line rule the
   Amanecer pass calls for on this page. */
.nv-pagos__table, .nv-pagos__importstable, .nv-refcard__table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.nv-pagos__table th, .nv-pagos__importstable th, .nv-refcard__table th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--soft); padding: 0.35rem 0.5rem; border-bottom: 2px solid var(--line);
}
.nv-pagos__table td, .nv-pagos__importstable td, .nv-refcard__table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--hair); }
/* UX audit II (ux2-admin-money-014): with every unit coded the reference list folds into one tappable line. */
.nv-refcard__summary { cursor: pointer; padding: 0.7rem 0; font-weight: 600; }

/* ==== Mi perfil panel layout (Task 10) ==== */
/* Sections already use the shared .nv-card panel (same as Dashboard's checklist/actions cards) —
   this just gives the page-level column the same spaced-stack rhythm as .nv-dash instead of
   sections butting straight into each other with no page max-width. */
.nv-mi-perfil { display: flex; flex-direction: column; gap: 1rem; max-width: 40rem; }
.nv-mi-perfil > h1 { margin: 0 0 0.2rem; font-size: clamp(20px, 3vw, 26px); }

/* Fix-wave item 6: AvatarEditor.razor (the "Foto de perfil" card) never had matching rules for its
   own classes — same missing-CSS shape as item 2's .nv-topbar__profile, just for
   .nv-avatar-editor__*. Without them the initials placeholder rendered as bare inline text ("AN")
   instead of the circle placeholder every other avatar spot in the app uses (.nv-avatar above is
   the same idiom, just a smaller 36px size for list rows vs. this page-level 72px). */
.nv-avatar-editor { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.nv-avatar-editor__img, .nv-avatar-editor__initials {
  width: 72px; height: 72px; border-radius: 999px; flex: none; object-fit: cover;
}
.nv-avatar-editor__initials {
  display: grid; place-items: center; background: var(--tint); color: var(--ink);
  font-size: 1.4rem; font-weight: 700;
}
.nv-avatar-editor__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nv-avatar-editor__choose { position: relative; }
/* Keep the native picker in the tab order and align its pointer target with the visible label. */
.nv-avatar-editor__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.nv-avatar-editor__choose:focus-within { outline: 3px solid var(--acc-ink); outline-offset: 3px; }
.nv-avatar-editor__choose:has(input:disabled) { opacity: .6; cursor: wait; }
.nv-avatar-editor__input:disabled { cursor: wait; }

/* ==== Miembros adopts Amanecer components (Task 9) ==== */

/* Help line under a table/section — quieter than .nv-hint's existing uses, same soft ink token. */
.nv-help { font-size: 12px; color: var(--soft); }

/* Mono treatment for cells that read like data (phone numbers), without nv-ref's tinted-pill
   background — a plain inline mono style, not a chip. */
.nv-mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ==== Avisos + Eventos: MonthCalendar + CategoryChip (Task 12 / B1 T12) ====

   Category color vocabulary — ONE set of .nv-cat--* classes shared by CategoryChip (the notice
   board's category pill, shipped alongside these rules in this same task) and MonthCalendar's event
   bars (a CalendarDisplayItem's
   ColorClass carries these class names verbatim, chosen by the caller — MonthCalendar itself never
   references a category name, see the component's own header comment). Colored bars are never the
   ONLY signal: each bar also carries its item's Title as text, and CategoryChip carries the
   category's localized name as text, so color-blind/no-color reading still conveys the category. */
.nv-cat {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.nv-cat--general { background: var(--tint); color: var(--soft); }
.nv-cat--junta { background: var(--info-tint); color: var(--info); }
.nv-cat--social { background: var(--acc-tint); color: var(--acc-ink); }
.nv-cat--bienestar { background: var(--good-tint); color: var(--good); }
.nv-cat--mantenimiento { background: var(--bad-tint); color: var(--bad); }

/* MonthCalendar — generic month grid; a native <table>/<th scope="col"> weekday header row so a
   screen reader gets it as a real header, not just a visually-implied one. */
.nv-cal { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; container-type: inline-size; }
.nv-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.nv-cal__title { font-family: var(--disp); font-size: 1.05rem; font-weight: 650; color: var(--ink); }
.nv-cal__nav {
  width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); cursor: pointer; font-size: 1rem; line-height: 1;
}
.nv-cal__nav:hover { background: var(--hov); }
.nv-cal__scroll { position: relative; max-width: 100%; overflow-x: auto; }
.nv-cal__grid { width: 100%; min-width: 42rem; border-collapse: collapse; table-layout: fixed; }
.nv-units-table-scroll:focus-visible { outline: 2px solid var(--acc-ink); outline-offset: 2px; }
.nv-cal__grid th {
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--soft);
  padding: 0.3rem; border-bottom: 1px solid var(--line); font-weight: 600;
}
.nv-cal__day {
  vertical-align: top; padding: 0.4rem; border: 1px solid var(--hair); height: 116px; width: 14.28%;
}
/* B.4a (f-032): the outside-month cells were opacity .55 — their day numbers measured below AA. They stay visibly
   secondary through the page tone behind them and the --soft number (≥ 5:1 on --bg in both themes), no fade. A today
   that falls in such a cell keeps its tint and filled circle: the .nv-cal__day--today rules below win on order. */
.nv-cal__day--outside { background: var(--bg); color: var(--soft); }
.nv-cal__day--outside .nv-cal__num { color: var(--soft); font-weight: 500; }
/* Today (Andrew, 2026-10-19 — the old acc-ink number + tinted badge went unnoticed): the cell takes the accent
   tint, the number sits in a filled --acc-strong circle with --acc-contrast text (the audited AA fill pair in
   both themes) and the filled .nv-today-note follows it. Declared before --sel so a selected today keeps the
   selection ring. */
.nv-cal__day--today { background: var(--acc-tint); }
.nv-cal__day--sel { background: var(--tint); box-shadow: inset 0 0 0 2px var(--acc); }
.nv-cal__day--today .nv-cal__num {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; padding: 0 0.3rem;
  border-radius: 999px; background: var(--acc-strong); color: var(--acc-contrast); font-weight: 700;
}
.nv-cal__daynum {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px; background: none; border: none; padding: 0;
  min-width: 44px; min-height: 44px;
  font-size: 0.85rem; font-weight: 600; color: var(--ink); cursor: pointer; font-family: var(--sans);
}
/* The one "Hoy" / "Today" note (calendar.today) every day-showing surface uses: MonthCalendar's today cell and
   DayLabel in the dated lists ("Hoy · 19 oct"). Filled, so it reads as a mark rather than another tint. */
.nv-today-note {
  display: inline-block; vertical-align: middle; font-size: 0.62rem; font-weight: 700; line-height: 1.5;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
  background: var(--acc-strong); color: var(--acc-contrast); border-radius: 999px; padding: 0 6px;
}
.nv-day--today { font-weight: 700; }
.nv-cal__bars { display: flex; flex-direction: column; gap: 2px; margin-top: 3px; }
.nv-cal__bar {
  display: block; font-size: .8rem; line-height: 1.4; font-weight: 600; padding: .25rem .35rem; border-radius: 6px;
  white-space: normal; overflow-wrap: anywhere; text-decoration: none;
}
/* A8 (j-g2-admin-backoffice-016): under 42rem the grid gives up its minimum width and fits seven real
   columns (about 49 px each at 390 px) instead of scrolling Friday to Sunday off-screen: tighter cells,
   the day button fills its cell (still >= 44 px tall), bar titles ellipsise. Nothing scrolls, so there
   is no swipe hint. */
@container (max-width: 42rem) {
  .nv-cal__grid { min-width: 0; }
  .nv-cal__grid th { padding: 0.3rem 0.1rem; font-size: 0.6rem; letter-spacing: 0.02em; }
  .nv-cal__day { padding: 0.15rem; height: 84px; }
  .nv-cal__daynum { min-width: 0; width: 100%; }
  /* UX audit II (ux2-staff-015): a ~49 px cell cut every title to three letters ("Man…", "Noc…"). On a phone each event is
     a dot in its category's colour (the title stays its accessible name); tapping the day lists its notices by name below
     the calendar, and "Próximos eventos" reads them in full. */
  .nv-cal__bars { flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .nv-cal__bar { width: 8px; height: 8px; padding: 0; border-radius: 999px; background: currentColor; font-size: 0; line-height: 0; overflow: hidden; }
  /* Review: a dot that links (a Reservas booking) stays tappable — a 24 px target (WCAG 2.5.8) with the dot drawn inside;
     this query also applies to ~900–1000 px desktop windows. */
  a.nv-cal__bar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: transparent; }
  a.nv-cal__bar::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; }
  /* Today on a phone: a ~49 px cell cannot hold "19" plus "HOY"/"TODAY", so the note is visually hidden (still
     announced by the cell's aria-current) and a dot sits beside the smaller filled circle. */
  .nv-cal__day--today .nv-cal__num { min-width: 1.5rem; height: 1.5rem; padding: 0 0.15rem; }
  /* Review N4: at 320 px a cell holds ~32 px — 24 px circle + 2 px gap + 4 px dot, on one line. */
  .nv-cal__day--today .nv-cal__daynum { flex-wrap: nowrap; gap: 2px; }
  .nv-cal__todaybadge { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .nv-cal__day--today .nv-cal__daynum::after { content: ""; flex: none; width: 4px; height: 4px; border-radius: 999px; background: var(--acc-strong); }
}


/* ==== /avisos page assembly (Task 13 / B1 T13) ====
   Layout-only rules — every color used here rides an EXISTING token (--tint/--acc-ink/--hair/--line/
   --soft/--ink), no new hex, so no new contrast pair is introduced. */
.nv-avisos__head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.nv-avisos__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
.nv-avisos__calendar .nv-avisos__subhead { font-size: 0.95rem; font-weight: 650; margin: 0.9rem 0 0.4rem; color: var(--ink); }
.nv-avisos__legend { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nv-avisos__filter { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.nv-avisos__upcoming { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.nv-avisos__upcoming-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.nv-avisos__datebadge {
  font-size: 0.7rem; font-weight: 700; background: var(--tint); color: var(--acc-ink);
  border-radius: 6px; padding: 2px 7px; white-space: nowrap;
}
.nv-avisos__upcoming-title { flex: 1; min-width: 8rem; overflow-wrap: anywhere; font-size: 0.85rem; color: var(--ink); }
.nv-avisos__notice { border-bottom: 1px solid var(--hair); padding-bottom: 0.9rem; margin-bottom: 0.9rem; }
.nv-avisos__notice:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.nv-avisos__notice-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.nv-avisos__notice-head h3 { margin: 0; font-size: 1rem; flex: 1; color: var(--ink); }
.nv-avisos__eventline { margin-top: 0.3rem; }
/* Served-language provenance line on a notice (spec §8.1) — quieter than the event line above it:
   it answers "what language am I reading?", it is never the point of the notice. */
.nv-avisos__lang { margin-top: 0.2rem; font-size: 0.75rem; color: var(--soft); }
.nv-avisos__notice-actions { display: flex; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }
.nv-avisos__formsection { border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.9rem 0; }
.nv-avisos__formsection legend { padding: 0 0.3rem; font-size: 0.8rem; font-weight: 650; color: var(--soft); }
.nv-avisos__sendemail { display: flex; align-items: center; gap: 0.5rem; }
/* Notice audience (j-g2-admin-backoffice-036): the house radio pattern, one option per row with its hint beneath. */
.nv-avisos__audience { border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0.9rem 0; display: grid; gap: 0.25rem; }
.nv-avisos__audience legend { padding: 0 0.3rem; font-size: 0.8rem; font-weight: 650; color: var(--soft); }
.nv-avisos__audience p { margin: 0; }
.nv-avisos__audience-choice { display: flex; align-items: flex-start; gap: 0.5rem; min-height: 44px; padding: 0.2rem 0; }
.nv-avisos__audience-choice input { margin-top: 0.2rem; }
.nv-avisos__audience-choice > span { display: grid; gap: 0.1rem; }
.nv-avisos__audience-label { font-weight: 600; color: var(--ink); }
.nv-avisos__audience-hint { margin: 0; }
.nv-avisos__reach { margin: 0.5rem 0; font-weight: 600; color: var(--ink); }

/* Dashboard avisos cards (B1 T14, spec §8.2) — AnnouncementStrip + UpcomingEventsCard. The events
   card's list reuses nv-avisos__upcoming/-row/-title/-datebadge verbatim above — same visual
   language as the /avisos page's own upcoming rail (Task 13), no new list styling needed. */
.nv-dash__avisostrip {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--hair);
  text-decoration: none; color: inherit;
}
.nv-dash__avisostrip-label { font-size: 0.75rem; font-weight: 700; color: var(--acc-ink); }
.nv-dash__avisostrip-title { flex: 1; font-size: 0.85rem; color: var(--ink); }
.nv-dash__avisostrip-date { font-size: 0.75rem; color: var(--soft); white-space: nowrap; }
.nv-dash__events-viewall { display: inline-block; margin-top: 0.6rem; font-size: 0.85rem; }

/* B2 Reservas: roomy, responsive common-area booking workspace. */
.nv-reservas__layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: 1.25rem; align-items: start; }
.nv-reservas__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.nv-reservas__amenity { display: flex; flex-direction: column; gap: .65rem; }
.nv-reservas__amenity h3, .nv-reservas__form h2, .nv-reservas__list h2 { margin: 0; }
.nv-reservas__amenity-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.nv-reservas__amenity p { flex: 1; margin: 0; color: var(--soft); }
.nv-reservas__form { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.nv-reservas__form label { display: grid; gap: .35rem; }
.nv-reservas__form select, .nv-reservas__form input { width: 100%; box-sizing: border-box; }
.nv-reservas__times { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.nv-reservas__selected { font-weight: 700; color: var(--acc-ink); margin: 0; }
.nv-reservas__availability { display: grid; gap: .45rem; padding: .7rem; background: color-mix(in srgb, var(--card) 88%, var(--acc) 12%); border-radius: .5rem; }
.nv-reservas__adminform { display: grid; gap: .8rem; margin: .8rem 0 1rem; }
.nv-reservas__adminform label { display: grid; gap: .3rem; }
.nv-reservas__list { margin-top: 1.25rem; }
.nv-reservas__pending { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--hair); }
@media (max-width: 820px) { .nv-reservas__layout { grid-template-columns: 1fr; } .nv-reservas__form { position: static; } }
@media (max-width: 520px) { .nv-reservas__pending { flex-direction: column; } }

/* Service requests: calm work-queue hierarchy with a deliberately readable reply thread. */
.nv-tickets__card { display: grid; gap: .8rem; }
.nv-doc-file-label:focus-within, label.nv-btn:focus-within { outline: 2px solid var(--acc-ink); outline-offset: 3px; }
.nv-tickets__card, .nv-tickets__cardhead > * { min-width: 0; }
.nv-tickets__card h3, .nv-tickets__card > p, .nv-tickets__dates, .nv-tickets__meta, .nv-tickets__message small { overflow-wrap: anywhere; }
.nv-tickets__cardhead, .nv-tickets__actions, .nv-tickets__replyrow, .nv-section-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.nv-tickets__cardhead h3 { margin: .25rem 0 0; }
.nv-tickets__meta { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--soft); font-size: .82rem; }
.nv-tickets__messages { display: grid; gap: .55rem; border-left: 2px solid var(--acc); padding-left: .85rem; }
.nv-tickets__message { background: color-mix(in srgb, var(--card) 86%, var(--acc) 14%); border-radius: .5rem; padding: .65rem .8rem; }
.nv-tickets__message p { margin: 0; }
/* UX fix PR 1: the reply that was just sent, marked for as long as its card shows the confirmation. */
.nv-tickets__message--new { background: var(--good-tint); box-shadow: inset 3px 0 0 var(--good); }
/* --soft timestamps on the good tint measure 4.47:1 in Noche; on the highlighted message they use full ink. The
   doubled class outranks the base ".nv-tickets__message small" (--soft) below whatever the source order. */
.nv-tickets__message.nv-tickets__message--new small { color: var(--ink); }
.nv-tickets__confirm { margin-top: .8rem; }
.nv-tickets__message small { display: block; margin-top: .35rem; color: var(--soft); }
.nv-tickets__form { display: grid; gap: .8rem; }
.nv-tickets__form label { display: grid; gap: .3rem; }
.nv-tickets__reply { display: grid; gap: .6rem; border-top: 1px solid var(--hair); padding-top: .8rem; }
.nv-tickets__schedule { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .6rem; }
.nv-tickets__schedule legend { padding: 0; font-weight: 600; }
.nv-tickets__replyrow > * { min-width: 0; flex: 1; }
.nv-tickets__status, .nv-tickets__priorityset { max-width: 11rem; }
/* ux2-admin-community-022: the assignee select fills its control (names are long), never the 11rem status cap. */
.nv-tickets__status.nv-tickets__assign { max-width: 100%; }
@media (max-width: 560px) { .nv-tickets__cardhead, .nv-tickets__actions, .nv-tickets__replyrow { align-items: stretch; flex-direction: column; } .nv-tickets__status, .nv-tickets__priorityset { max-width: none; width: 100%; } }

/* Personal activity: one clear feed, with email choices alongside it on wide screens. */
.nv-notification-bell { position: relative; min-width: 2.1rem; justify-content: center; }
.nv-mobile-nav-close { display:none; }
@media (max-width:900px) {
  .nv-topbar :is(.nv-btn,.nv-brand) { min-width:44px; min-height:44px; justify-content:center; }
  .nv-topbar .tb-langtoggle__option { min-width:44px; min-height:44px; }
  .nv-side-shell.nv-side--open { display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0; width:min(280px,calc(100vw - 48px)); height:100dvh; z-index:70; background:var(--card); box-shadow:0 20px 40px -20px rgba(0,0,0,.45); }
  .nv-side-shell.nv-side--open .nv-side { position:static; inset:auto; width:100%; flex:1; min-height:0; overflow-y:auto; box-shadow:none; }
  .nv-side-shell.nv-side--open .nv-mobile-nav-close { display:inline-flex; min-height:44px; align-self:flex-end; margin:10px; }
}
.nv-notification-bell__count { position: absolute; top: -.4rem; right: -.4rem; min-width: 1.1rem; padding: .12rem .25rem; border-radius: 1rem; background: var(--acc-strong); color: var(--acc-contrast); font-size: .65rem; line-height: 1; font-weight: 700; border: 2px solid var(--card); }
.nv-notifications__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem); gap: 1.25rem; align-items: start; }
.nv-notifications__grid > * { min-width: 0; }
.nv-notifications__empty { display: grid; justify-items: center; text-align: center; gap: .55rem; padding: 3rem 1rem; color: var(--soft); }
.nv-notifications__empty svg { width: 2rem; height: 2rem; color: var(--acc); }
.nv-notifications__empty h3, .nv-notifications__empty p { margin: 0; max-width: 34rem; }
.nv-notification { display: flex; align-items: start; gap: .85rem; padding: 1.15rem .5rem; border-bottom: 1px solid var(--hair); }
.nv-notification--unread { background: color-mix(in srgb, var(--card) 94%, var(--acc) 6%); }
/* UX fix PR 1 (ContrastTokenPairTests): the glyph was --acc on a 10% --acc wash, 2.22:1 in Día; --acc-ink is the
   accent's readable ink in both themes. */
.nv-notification__icon { flex: 0 0 auto; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .5rem; color: var(--acc-ink); background: color-mix(in srgb, var(--card) 90%, var(--acc) 10%); }
.nv-notification__content { flex: 1; min-width: 0; }
.nv-notification__content h3 { font-size: 1rem; margin: .25rem 0; }
.nv-notification__content p { margin: .25rem 0 .65rem; overflow-wrap: anywhere; }
.nv-notification__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; color: var(--soft); font-size: .78rem; }
.nv-notification__dot { flex: 0 0 auto; width: .5rem; height: .5rem; margin-top: .4rem; border-radius: 50%; background: var(--acc); }
.nv-notifications__pagination { justify-content: space-between; padding-top: 1rem; color: var(--soft); font-size: .85rem; }
.nv-notifications__preferences { position: sticky; top: 1rem; scroll-margin-top: 5rem; }
.nv-notifications__choice { display: flex !important; align-items: start; gap: .7rem !important; padding: .8rem 0; border-bottom: 1px solid var(--hair); cursor: pointer; }
.nv-notifications__choice input { width: 1.1rem; height: 1.1rem; margin: .15rem 0 0; accent-color: var(--acc); }
.nv-notifications__choice span { display: grid; gap: .25rem; }
.nv-notifications__choice small { color: var(--soft); line-height: 1.5; }
.nv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nv-reservas__selected { outline: 2px solid var(--acc); outline-offset: .15rem; scroll-margin-top: 5rem; }
@media (max-width: 1000px) { .nv-notifications__grid { grid-template-columns: 1fr; } .nv-notifications__preferences { position: static; } }
/* B.1 (ux-admin-community-020): the jump to the email preferences only where they sit below the list; beside it, it is already in view. */
@media (min-width: 1001px) { .nv-notifications__to-preferences { display: none; } }
@media (max-width: 560px) { .nv-notification { gap: .55rem; padding: 1rem .25rem; } .nv-notifications .nv-role-panel__head { align-items: start; flex-wrap: wrap; gap: .65rem; } }
/* The phone top bar keeps every control at full size: nothing shrinks, and nothing wraps (ux2-residents-019 — the rest
   moved into the account menu below). */
@media (max-width: 560px) {
  .nv-topbar__left { flex-shrink: 0; }
  .nv-topbar__actions > * { flex-shrink: 0; }
}

/* Maintenance queue: roomy forms, readable history, and private image previews. */
/* B3 (ux-admin-community-034): count tiles are toggles for the queue view — same card face, a pointer, and the
   pressed tile wears the accent ring the select's value echoes. */
.nv-tickets__dates, .nv-tickets__history small { color:var(--soft); }
.nv-tickets__filters { display:grid; grid-template-columns:minmax(0,1fr) minmax(12rem,18rem); gap:1rem; margin-bottom:1.5rem; }
.nv-tickets label { display:grid; gap:.4rem; min-width:0; font-size:.85rem; }
.nv-tickets__photopick { display:grid; gap:.4rem; justify-items:start; min-width:0; font-size:.85rem; }
.nv-tickets .nv-field__box { min-width:0; width:100%; min-height:44px; box-sizing:border-box; }
.nv-tickets__description, .nv-tickets__message p { white-space:pre-wrap; overflow-wrap:anywhere; }
.nv-tickets__dates { display:flex; gap:.65rem 1.5rem; flex-wrap:wrap; font-size:.8rem; margin:1rem 0; }
.nv-tickets__overdue { color:var(--bad); font-weight:700; }
/* B3 (j-g1-requests-staff-012): status and (loud) priority are shared chips in the card head, not grey words. */
.nv-tickets__chips { display:flex; flex-wrap:wrap; gap:.4rem; align-items:center; justify-content:flex-end; }
.nv-tickets__actions { flex-wrap:wrap; align-items:flex-end; }
.nv-tickets__actions .nv-tickets__control { flex:0 1 15rem; }
.nv-tickets__actions button, .nv-tickets__history summary, .nv-ticket-photos button { min-height:44px; }
.nv-tickets__actions .nv-tickets__status { max-width:none; }
.nv-tickets__due { display:flex; align-items:end; flex-wrap:wrap; gap:.75rem; margin-top:1rem; }
.nv-tickets__due label { flex:0 1 15rem; }
.nv-tickets__history { border-top:1px solid var(--hair); margin-top:1rem; padding-top:.6rem; }
.nv-tickets__history summary { cursor:pointer; align-content:center; }
.nv-tickets__history ol { display:grid; gap:.75rem; padding-left:1.4rem; }
.nv-tickets__history li span, .nv-tickets__history li small { display:block; overflow-wrap:anywhere; }
.nv-tickets__reply { display:grid; gap:.75rem; }
.nv-tickets textarea { min-height:7rem; resize:vertical; }
.nv-tickets__selectedphotos { padding-left:1.3rem; overflow-wrap:anywhere; }
.nv-ticket-photos__grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(8rem,12rem)); gap:.75rem; margin:.75rem 0; }
.nv-ticket-photos__grid a { display:grid; gap:.35rem; overflow-wrap:anywhere; font-size:.75rem; }
.nv-ticket-photos img { width:100%; aspect-ratio:4 / 3; object-fit:cover; border-radius:.5rem; }
@media(max-width:560px) { .nv-tickets__filters { grid-template-columns:minmax(0,1fr); } .nv-tickets__actions .nv-tickets__control { flex:auto; width:100%; } .nv-tickets__due > * { flex:1 1 100%; } }

/* ==== UX wave B.4b: touch targets (ux-staff-014, ux-staff-028). One self-contained block, placed after the rules
   it overrides, so it merges cleanly with other waves editing this file. Lints: TargetsAndFormsLintTests. ==== */
/* "Responder" is a ghost button now, not a text link: 44 px for a one-handed worker outdoors. */
.nv-tickets__replybtn { min-height:44px; min-width:44px; padding:0 1.1rem; }
/* The history disclosure is a full-width row that keeps its native marker (display: list-item). */
.nv-tickets__history summary {
  display:list-item; width:100%; box-sizing:border-box; min-height:44px; padding:.6rem .75rem;
  border:1px solid var(--line); border-radius:9px; font-weight:600; color:var(--ink); list-style-position:inside;
}
.nv-tickets__history summary:hover { background:var(--hov); }
.nv-tickets__history[open] > summary { margin-bottom:.6rem; }
/* ==== end UX wave B.4b ==== */
/* ==== UX wave B.5a — Solicitudes (/tickets): feedback, phone layout, dates. One self-contained block placed after the
   ticket rules it overrides. Lints: TicketsLayoutLintTests. ==== */
/* "Nueva solicitud" is the page's filled primary, in the header (ux-residents-005, j-g1-requests-staff-028). */
.nv-tickets__newbtn { min-height:44px; padding:0 1.1rem; justify-self:start; align-self:start; }
.nv-tickets__nounit { margin:0; }
/* Desktop: the filter selects size to their longest option ("Todas las solicitudes"), not to a squeezed column
   (j-g1-requests-staff-023); the strip spans the page instead of sharing a row with the count. */
.nv-tickets__filters { grid-template-columns:minmax(0,1fr); }
.nv-tickets .nv-tickets__filters .nv-listbar__filters label { flex:0 1 auto; }
.nv-tickets .nv-tickets__filters .nv-listbar__filters select { width:auto; min-width:max-content; max-width:100%; }
/* The filter toggle and the "more options" toggle exist for the phone only. */
.nv-tickets__filtertoggle { display:none; }
.nv-tickets__managebtn { min-height:44px; }
.nv-tickets__managebtn--phone { display:none; }
/* The card: the actions tapped most first, then the editor as its own row; the confirmation sits right under them. */
.nv-tickets__actions { display:grid; gap:.75rem; justify-content:stretch; align-items:start; }
.nv-tickets__primary { display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.nv-tickets__resolvebtn { min-height:44px; padding:0 1.1rem; }
/* UX audit II (ux2-staff-005): the primary-row "Asignármela" is the phone's; wider screens take it from the editor beside. */
.nv-tickets__takenow { display:none; min-height:44px; padding:0 1.1rem; }
/* ux2-gapfill-010: a card without an editor (the front desk on its defaults) has no other "Asignármela" — show this one. */
.nv-tickets__takenow--solo { display:inline-flex; }
.nv-tickets__editor { display:flex; flex-wrap:wrap; gap:.75rem; align-items:flex-end; }
.nv-tickets__editor .nv-tickets__control, .nv-tickets__editor .nv-tickets__due label { flex:0 1 15rem; }
/* ux2-gapfill-010 review: "Asignar a" on its own (requests.assign without requests.manage), laid out like the editor's. */
.nv-tickets__assignonly { display:flex; flex-wrap:wrap; gap:.75rem; align-items:flex-end; }
.nv-tickets__assignonly .nv-tickets__control { flex:0 1 15rem; }
.nv-tickets__editor .nv-tickets__due { margin-top:0; }
.nv-tickets__confirm { margin-top:0; }
.nv-tickets__dates { margin:0; }
.nv-tickets__card { gap:.65rem; }
/* Picked photos show as thumbnails, each with its own Quitar (j-g3-residents-comite-022). */
.nv-tickets__selectedphotos { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(7rem,1fr)); gap:.6rem; }
.nv-tickets__selectedphotos li { display:grid; gap:.25rem; font-size:.75rem; overflow-wrap:anywhere; }
.nv-tickets__selectedphotos img { width:100%; aspect-ratio:4 / 3; object-fit:cover; border-radius:.5rem; border:1px solid var(--line); }
.nv-tickets__selectedphotos button { min-height:44px; justify-self:start; }
/* ---- UI redesign U5a (Task 17): Solicitudes as rows + panel (ListDetailLayout). A row is one link (its ::after covers the
   row); the view chips replace the tiles and the "Mostrar" select; the management average is a line under the title. The
   rows are compact so five requests fit on a 1440×900 screen under the title, the chips and the filters
   (TicketsLayoutLintTests). On a phone the table is .nv-cardrows cards and the panel is the sheet. ---- */
.nv-tickets__average { margin:-.6rem 0 .9rem; font-size:.85rem; }
.nv-tickets__views { display:flex; flex-wrap:wrap; gap:.5rem; }
.nv-tickets__view { display:inline-flex; align-items:center; gap:.4rem; min-height:44px; padding:.35rem .9rem; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); font:600 .82rem/1.2 var(--sans); cursor:pointer; }
.nv-tickets__view:hover:not(:disabled) { border-color:var(--soft); }
.nv-tickets__view[aria-pressed="true"] { background:var(--ink); color:var(--card); border-color:var(--ink); }
.nv-tickets__view:disabled { cursor:default; }
.nv-tickets__viewcount { font-weight:700; }
.nv-tickets__table { width:100%; border-collapse:collapse; }
.nv-tickets__table th { text-align:left; font-size:.78rem; font-weight:600; color:var(--soft); padding:.45rem .6rem; border-bottom:1px solid var(--hair); white-space:nowrap; }
.nv-tickets__table td { padding:.55rem .6rem; line-height:1.3; vertical-align:middle; border-bottom:1px solid var(--hair); }
.nv-tickets__row { position:relative; }
.nv-tickets__row:hover { background:var(--hov); }
.nv-tickets__row--selected, .nv-tickets__row--selected:hover { background:var(--tint); }
.nv-tickets__row--selected > td:first-child { box-shadow:inset 3px 0 0 var(--acc-ink); }
.nv-tickets__rowlink { color:var(--ink); font-weight:600; text-decoration:none; overflow-wrap:anywhere; }
.nv-tickets__rowlink::after { content:""; position:absolute; inset:0; }
.nv-tickets__rowlink:focus-visible { outline:none; }
/* Review m3: the focus ring is drawn by the row's cells (inset shadows: top and bottom on every cell, the sides on the
   first and last), which paints in a border-collapse table where an outline on the <tr> does not. */
.nv-tickets__row:has(.nv-tickets__rowlink:focus-visible) > td { box-shadow:inset 0 2px 0 var(--acc-ink), inset 0 -2px 0 var(--acc-ink); }
.nv-tickets__row:has(.nv-tickets__rowlink:focus-visible) > td:first-child { box-shadow:inset 2px 0 0 var(--acc-ink), inset 0 2px 0 var(--acc-ink), inset 0 -2px 0 var(--acc-ink); }
.nv-tickets__row:has(.nv-tickets__rowlink:focus-visible) > td:last-child { box-shadow:inset -2px 0 0 var(--acc-ink), inset 0 2px 0 var(--acc-ink), inset 0 -2px 0 var(--acc-ink); }
/* Second review m-e: a focused selected row keeps its 3px accent (it is the ring's left side). */
.nv-tickets__row--selected:has(.nv-tickets__rowlink:focus-visible) > td:first-child { box-shadow:inset 3px 0 0 var(--acc-ink), inset 0 2px 0 var(--acc-ink), inset 0 -2px 0 var(--acc-ink); }
.nv-tickets__who { display:block; font-size:.8rem; color:var(--soft); overflow-wrap:anywhere; }
.nv-tickets__ref { white-space:nowrap; font-size:.8rem; }
.nv-tickets__duecell, .nv-tickets__assignee { font-size:.85rem; }
.nv-tickets__nodue { color:var(--soft); }
.nv-tickets__rows { margin-top:.25rem; }
.nv-tickets .nv-ld__panel .nv-tickets__card { gap:.65rem; }
/* ---- U5a review M5: the rows turn into cards by the LIST's width (ListDetailLayout's .nv-ld__list is the nv-ld-list
   container), not the viewport's: between 1100px and ~1350px with the panel open the list is narrower than six columns
   need, so it never scrolls sideways — at 720px or less it is the same one-card-per-row layout .nv-cardrows gives a phone. */
@container nv-ld-list (max-width: 720px) {
  .nv-tickets__rows > table { display:block; min-width:0; width:100%; }
  .nv-tickets__rows > table > thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .nv-tickets__rows > table > tbody { display:block; }
  .nv-tickets__rows > table > tbody > tr { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:.25rem .75rem; align-items:baseline; padding:.7rem .25rem; border-bottom:1px solid var(--hair); }
  .nv-tickets__rows > table > tbody > tr > td { display:block; grid-column:1 / -1; position:static; min-width:0; padding:0; border:0; background:none; text-align:left; white-space:normal; overflow-wrap:anywhere; }
  .nv-tickets__rows > table > tbody > tr > td.nv-cr-sub { grid-column:1; order:-6; font-size:.8rem; color:var(--soft); }
  .nv-tickets__rows > table > tbody > tr > td.nv-cr-title { grid-column:1; order:-5; font-weight:600; }
  .nv-tickets__rows > table > tbody > tr > td.nv-cr-meta { order:-3; }
  .nv-tickets__rows > table > tbody > tr > td.nv-cr-status { order:-2; }
  .nv-tickets__rows > table > tbody > tr > td[data-label]::before { content:attr(data-label) " "; color:var(--soft); font-family:var(--sans); font-size:.8rem; font-weight:400; }
  /* Second review MJ2: in card mode every cell is a block, so the table-mode ring (inset shadows per cell) would draw
     stray bars. The ring is the row's outline (the row is a grid box here); the selected accent sits on the row too. */
  .nv-tickets__rows .nv-tickets__row:has(.nv-tickets__rowlink:focus-visible) { outline:2px solid var(--acc-ink); outline-offset:-2px; }
  .nv-tickets__rows .nv-tickets__row:has(.nv-tickets__rowlink:focus-visible) > td:nth-child(n) { box-shadow:none; }
  .nv-tickets__rows .nv-tickets__row--selected { box-shadow:inset 3px 0 0 var(--acc-ink); }
  .nv-tickets__rows .nv-tickets__row--selected > td:nth-child(n) { box-shadow:none; }
}
/* The same card-mode ring on a phone, where .nv-cardrows (≤600px) makes the cards. */
@media (max-width: 600px) {
  .nv-tickets__rows .nv-tickets__row:has(.nv-tickets__rowlink:focus-visible) { outline:2px solid var(--acc-ink); outline-offset:-2px; }
  .nv-tickets__rows .nv-tickets__row:has(.nv-tickets__rowlink:focus-visible) > td:nth-child(n) { box-shadow:none; }
  .nv-tickets__rows .nv-tickets__row--selected { box-shadow:inset 3px 0 0 var(--acc-ink); }
  .nv-tickets__rows .nv-tickets__row--selected > td:nth-child(n) { box-shadow:none; }
}
/* ---- U5a review M6: the request card inside the panel (the nv-ld-panel container, 320–400px wide on a desktop) gets the
   card's phone layout by the PANEL's width: the action rows wrap one per line, the visit inputs stack, selects fill the
   row and the primary buttons are full-width 44px targets. (The phone's show/hide swaps stay viewport rules.) */
@container nv-ld-panel (max-width: 560px) {
  .nv-tickets__cardhead, .nv-tickets__actions, .nv-tickets__replyrow { align-items:stretch; flex-direction:column; }
  .nv-tickets__status, .nv-tickets__priorityset { max-width:none; width:100%; }
  .nv-tickets__actions .nv-tickets__control { flex:auto; width:100%; }
  .nv-tickets__due > * { flex:1 1 100%; }
  .nv-tickets__primary > .nv-btn { flex:1 1 100%; justify-content:center; min-height:44px; }
  .nv-tickets__editor .nv-tickets__control, .nv-tickets__editor .nv-tickets__due, .nv-tickets__editor .nv-tickets__due label { flex:1 1 100%; }
  .nv-tickets__assignonly .nv-tickets__control { flex:1 1 100%; }
}
/* ---- UI redesign U5b (Task 18): Pagos — three tabs (the .nv-tabs set), the month stepper, rows + panel on
   ListDetailLayout. A row is one link (its ::after covers the row), as on Solicitudes; on a phone the table is .nv-cardrows
   cards, in a narrow list (panel open, 1100–1350px) the nv-ld-list container query gives the same cards, and the panel is
   the sheet below 1100px. The explanations that were open callouts are tooltips on the title and the USD column. ---- */
.nv-pagos__titlerow { display:flex; align-items:center; gap:.35rem; }
.nv-pagos__tiptitle { display:block; margin-bottom:.25rem; }
.nv-pagos__tabs { flex-wrap:wrap; margin-block:.25rem 1rem; }
.nv-pagos__tab { display:inline-flex; align-items:center; min-height:44px; }
.nv-pagos__tabcount { background:var(--acc-strong); color:var(--acc-contrast); }
.nv-pagos__toolbar { display:grid; gap:.6rem; }
.nv-pagos__month { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.nv-pagos__monthprev, .nv-pagos__monthnext { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; padding:0; font-size:1.25rem; }
.nv-pagos__monthlabel { min-width:9.5rem; text-align:center; font-weight:600; }
.nv-pagos__allmonths { min-height:44px; }
.nv-pagos__allmonths[aria-pressed="true"] { background:var(--ink); color:var(--card); border-color:var(--ink); }
.nv-pagos__row { position:relative; }
.nv-pagos__row:hover > td { background:var(--hov); }
.nv-pagos__row--selected > td, .nv-pagos__row--selected:hover > td { background:var(--tint); }
.nv-pagos__row--selected > td:first-child { box-shadow:inset 3px 0 0 var(--acc-ink); }
.nv-pagos__rowlink { color:var(--ink); font-weight:600; text-decoration:none; overflow-wrap:anywhere; }
.nv-pagos__rowlink::after { content:""; position:absolute; inset:0; }
.nv-pagos__rowlink:focus-visible { outline:none; }
/* The focus ring is drawn by the row's cells (inset shadows), which paints in a border-collapse table (U5a review m3). */
.nv-pagos__row:has(.nv-pagos__rowlink:focus-visible) > td { box-shadow:inset 0 2px 0 var(--acc-ink), inset 0 -2px 0 var(--acc-ink); }
.nv-pagos__row:has(.nv-pagos__rowlink:focus-visible) > td:first-child { box-shadow:inset 3px 0 0 var(--acc-ink), inset 0 2px 0 var(--acc-ink), inset 0 -2px 0 var(--acc-ink); }
.nv-pagos__row:has(.nv-pagos__rowlink:focus-visible) > td:last-child { box-shadow:inset -2px 0 0 var(--acc-ink), inset 0 2px 0 var(--acc-ink), inset 0 -2px 0 var(--acc-ink); }
.nv-pagos__rows { margin-block:.25rem .75rem; }
@container nv-ld-list (max-width: 720px) {
  .nv-pagos__phonehelp { display:block; }
  .nv-pagos__rows > table { display:block; min-width:0; width:100%; }
  .nv-pagos__rows > table > thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .nv-pagos__rows > table > thead .nv-tip { visibility:hidden; }
  .nv-pagos__rows > table > tbody { display:block; }
  .nv-pagos__rows > table > tbody > tr { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:.25rem .75rem; align-items:baseline; padding:.7rem .25rem; border-bottom:1px solid var(--hair); }
  .nv-pagos__rows > table > tbody > tr > td { display:block; grid-column:1 / -1; position:static; min-width:0; padding:0; border:0; background:none; text-align:left; white-space:normal; overflow-wrap:anywhere; }
  .nv-pagos__rows > table > tbody > tr > td.nv-cr-sub { grid-column:1; order:-6; font-size:.8rem; color:var(--soft); }
  .nv-pagos__rows > table > tbody > tr > td.nv-cr-title { grid-column:1; order:-5; font-weight:600; }
  .nv-pagos__rows > table > tbody > tr > td.nv-cr-amount { grid-column:2; order:-5; text-align:right; white-space:nowrap; font-weight:600; }
  .nv-pagos__rows > table > tbody > tr > td.nv-cr-amount2 { grid-column:2; order:-4; text-align:right; white-space:nowrap; font-size:.85rem; color:var(--soft); }
  .nv-pagos__rows > table > tbody > tr > td.nv-cr-meta { order:-3; }
  .nv-pagos__rows > table > tbody > tr > td.nv-cr-status { order:-2; }
  .nv-pagos__rows .nv-pagos__row:has(.nv-pagos__rowlink:focus-visible) { outline:2px solid var(--acc-ink); outline-offset:-2px; }
  .nv-pagos__rows .nv-pagos__row:has(.nv-pagos__rowlink:focus-visible) > td:nth-child(n) { box-shadow:none; }
  .nv-pagos__rows .nv-pagos__row--selected { box-shadow:inset 3px 0 0 var(--acc-ink); }
  .nv-pagos__rows .nv-pagos__row--selected > td:nth-child(n) { box-shadow:none; }
}
@media (max-width: 600px) {
  .nv-pagos__rows .nv-pagos__row:has(.nv-pagos__rowlink:focus-visible) { outline:2px solid var(--acc-ink); outline-offset:-2px; }
  .nv-pagos__rows .nv-pagos__row:has(.nv-pagos__rowlink:focus-visible) > td:nth-child(n) { box-shadow:none; }
  .nv-pagos__rows .nv-pagos__row--selected { box-shadow:inset 3px 0 0 var(--acc-ink); }
  .nv-pagos__rows .nv-pagos__row--selected > td:nth-child(n) { box-shadow:none; }
}
/* The panel: the payment's facts as label/value pairs, then the reversal links and Revertir. */
.nv-pagos__facts { display:grid; gap:.55rem; margin:0 0 1rem; }
.nv-pagos__facts > div { display:grid; grid-template-columns:minmax(6.5rem, 38%) minmax(0, 1fr); gap:.5rem; align-items:baseline; }
.nv-pagos__facts dt { color:var(--soft); font-size:.85rem; }
.nv-pagos__facts dd { margin:0; overflow-wrap:anywhere; }
.nv-pagos__detail .nv-pagos__fxwhy, .nv-pagos__detailrate, .nv-pagos__detailreconcilednote { display:block; max-width:none; margin:.25rem 0 0; font-size:.8rem; text-align:left; }
.nv-pagos__detaillink { margin:.25rem 0; }
.nv-pagos__detaillink .nv-linkbtn { display:inline-flex; align-items:center; min-height:44px; }
.nv-pagos__reverse { min-height:44px; margin-top:.5rem; }
/* U5a review M1: the page behind the open sheet stops scrolling (js novaraListDetail.modal toggles the class). */
html.nv-ld-locked, html.nv-ld-locked body { overflow:hidden; }
/* Second review m-e: a page printed while a sheet is open is never cut off. */
@media print { html.nv-ld-locked, html.nv-ld-locked body { overflow:visible; } }
@media (max-width: 560px) {
  /* The first row starts near the top: the filters wait behind "Buscar y filtrar", and an active card's editor waits
     behind "Más opciones" (ux-residents-005, ux-staff-005/015, j-g1-requests-staff-025). U5a: the view chips that replaced
     the tiles wrap onto as many lines as they need — nothing scrolls sideways or cuts a label (ux2-staff-014). */
  .nv-tickets__views { gap:.4rem; }
  .nv-tickets__view { padding:.3rem .75rem; }
  .nv-tickets__average { display:none; }
  .nv-tickets__filtertoggle { display:inline-flex; min-height:44px; margin:0 0 .75rem; }
  .nv-tickets__filterbox--closed { display:none; }
  .nv-tickets__managebtn--phone { display:inline-flex; }
  .nv-tickets__editor--ondemand { display:none; }
  /* ux2-staff-005: an unassigned request the viewer may take offers "Asignármela" where "Marcar como resuelta" was; resolve
     waits under "Más opciones" (the editor's status) until someone owns it, and the editor's own copy of the take button goes. */
  .nv-tickets__primary > .nv-tickets__takenow { display:inline-flex; }
  .nv-tickets__primary > .nv-tickets__resolvebtn--untaken, .nv-tickets__editor .nv-tickets__takeit { display:none; }
  .nv-tickets__newbtn { width:100%; justify-content:center; }
  .nv-tickets__primary > .nv-btn { flex:1 1 100%; justify-content:center; min-height:44px; }
  .nv-tickets__editor .nv-tickets__control, .nv-tickets__editor .nv-tickets__due, .nv-tickets__editor .nv-tickets__due label { flex:1 1 100%; }
  .nv-tickets__assignonly .nv-tickets__control { flex:1 1 100%; }
}
/* ==== end UX wave B.5a ==== */

/* ==== UX wave B.6 — money pages and the Reservas phone layout. One self-contained block. ==== */
/* Pagos (ux-admin-money-005): the pending rate's reason and its in-place update. */
.nv-pagos__fxwhy { display: block; max-width: 16rem; margin: .25rem 0 0 auto; font-size: .8rem; text-align: right; white-space: normal; }
.nv-pagos__fxrefresh { min-height: 44px; }
/* Morosidad (ux-admin-money-010): the days-late header's grace note. */
.nv-th-note { display: block; font-size: .65rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--soft); }
/* Gastos (ux-residents-028): the month row carries its export after the arrows. */
.nv-gastos__month .nv-gastos__export { margin-left: auto; min-height: 44px; }
/* Reservas (j-g3-residents-comite-015): the form comes first in the reading order; on a wide screen it is the right
   column beside the resident's bookings and the areas, on a phone the column stacks in that order. */
.nv-reservas__layout--resident { grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); }
.nv-reservas__layout--resident > .nv-reservas__form { grid-column: 2; grid-row: 1; }
.nv-reservas__layout--resident > .nv-reservas__main { grid-column: 1; grid-row: 1; min-width: 0; }
.nv-reservas__main > .nv-reservas__list:first-child, .nv-reservas__main > .nv-reservas__toolbar:first-child { margin-top: 0; }
.nv-reservas__selectedrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem .75rem; }
.nv-reservas__changearea { min-height: 44px; }
@media (max-width: 820px) {
  .nv-reservas__layout--resident > .nv-reservas__form, .nv-reservas__layout--resident > .nv-reservas__main { grid-column: 1; grid-row: auto; }
}
/* Reservas (j-g3-residents-comite-014): starts grouped by hour, all visible — no small clipped box. */
.nv-reservas__slots { display: grid; gap: .45rem; }
.nv-reservas__slothour { display: grid; grid-template-columns: 3.25rem 1fr; gap: .5rem; align-items: start; }
.nv-reservas__slothour-label { padding-top: .7rem; font-family: var(--mono); font-size: .8rem; color: var(--soft); }
.nv-reservas__slothour-starts { display: flex; flex-wrap: wrap; gap: .4rem; }
.nv-reservas__slothour-starts .nv-btn { min-height: 44px; }
/* Reservas (j-g3-residents-comite-018): every area card puts the approval label under the name. */
.nv-reservas__amenity .nv-reservas__amenity-head { flex-direction: column; align-items: flex-start; gap: .35rem; }
.nv-reservas__amenity .nv-reservas__amenity-head h3 { overflow-wrap: anywhere; }
/* ==== end UX wave B.6 ==== */

/* ---- WP4: account recovery + Google sign-in (login card additions, Mi perfil email form) ---- */
.nv-login__forgot { margin: 0.9rem 0 0; text-align: center; font-size: .9375rem; }
.nv-login__or { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--soft); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.nv-login__or::before, .nv-login__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.nv-btn--google { width: 100%; border: 1px solid var(--line); justify-content: center; }
.nv-mi-perfil__email form { display: flex; flex-direction: column; gap: .9rem; max-width: 36rem; }

/* Gastos (7a) */
/* Neutral category pill for expense categories (user-named, so no per-category colour). */
.nv-cat--gasto { background: var(--tint); color: var(--soft); }

/* Presupuesto vs. real (7b) — TargetMeter reuses the .nv-meter track/fill. Signal fills use the
   Amanecer status tokens only (--good / --warn-ink / --bad, both themes); the signal is also
   written out in text, whose colours are the same tokens already AA-checked as text on card/bg
   (--warn-ink 5.9:1 and --bad 5.10:1 on white in Día; the brighter Noche values ≥ 4.5:1). The
   elapsed tick is --ink, which stands out against the track and every fill. */
.nv-target { margin-top: 0; }
.nv-target__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .6rem; margin-bottom: .3rem; }
.nv-target__label { overflow-wrap: anywhere; }
.nv-meter__amounts { color: var(--soft); font-size: .8rem; }
.nv-meter__fill--ok { background: var(--good); }
.nv-meter__fill--amber { background: var(--warn-ink); }
.nv-meter__fill--red { background: var(--bad); }
.nv-target__track { position: relative; }
.nv-meter__tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.nv-meter__signal { font-size: .8rem; }
.nv-meter__signal--ok { color: var(--soft); }
.nv-meter__signal--amber { color: var(--warn-ink); font-weight: 600; }
.nv-meter__signal--red { color: var(--bad); font-weight: 600; }

/* Committee report (UX audit A3): the three basis tiles sit in one row and wrap on a phone. */
.nv-committee__tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(13rem,1fr));gap:.75rem;margin:.75rem 0}

/* RoleGate (UX audit A4): the honest "this section is for…" notice that replaces a page the viewer's role cannot use. */
.nv-rolegate{max-width:40rem}
/* UX audit II (ux2-residents-012): the notice's title is the page's h1, at the card's scale. */
.nv-rolegate h1{margin:0 0 .7rem;font-size:1.5rem}
.nv-rolegate__actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}

/* ==== UX wave B.5b: feedback, empty states, error recovery. One self-contained block (merges cleanly with other waves). ==== */
/* ux-admin-community-014: a disabled link-button looked exactly like a live link. Inert = soft text, no underline, no
   pointer. --soft is the AA-checked secondary text token on --card in both themes (disabled controls are exempt from
   1.4.3, but the label stays readable). */
.nv-linkbtn:disabled, .nv-linkbtn[aria-disabled="true"] { color: var(--soft); text-decoration: none; cursor: default; }
/* An empty state's next step sits under its sentence. */
.nv-messages__empty { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
/* ==== end UX wave B.5b ==== */

/* ==== UX wave C1 — navigation and shell polish ==== */
/* ux-admin-community-003: the page eyebrow IS the sidebar group the page sits in (PageEyebrow), so it wears the
   sidebar group label's own type: small, bold, spaced capitals in --soft. Scoped to PageEyebrow's own class: other
   eyebrows (a schedule name, a balance label, the join pages) keep their look. */
.nv-page-eyebrow { margin: 0 0 0.25rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
/* ux-admin-community-004: Ayuda and Mi perfil live in the topbar, so the topbar entry of the open one carries the
   "you are here": a hover-tint fill plus a 2px --acc-ink underline (a 3:1+ UI mark on the topbar in both themes). */
.nv-topbar__link--on { background: var(--hov); color: var(--ink); box-shadow: inset 0 -2px 0 var(--acc-ink); }
/* ux-admin-community-010: every anonymous card ends with the same footer — the way back on the left, the language
   switch pinned to the right edge, alone or after a wrap on a phone. */
.nv-login__links--footer { justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.nv-login__lang { margin-left: auto; }
/* ux-admin-community-027: the category colour key under the Avisos calendar is a plain list (a key, not controls). */
.nv-avisos__legend { list-style: none; margin: 0; padding: 0; }
/* ==== end UX wave C1 ==== */

/* ==== UX wave C2 — content, copy and small UI polish ==== */
/* Miembros (j-g2-admin-backoffice-037): one person's access panel under their row, behind "Cambiar acceso". */
.nv-member-access { margin: 0.25rem 0; padding: 1rem; display: grid; gap: 0.75rem; }
.nv-member-access__title { margin: 0; }
.nv-member-access__grid { display: grid; grid-template-columns: minmax(12rem, 20rem) 1fr; gap: 1rem; align-items: start; }
.nv-member-access__grid .nv-field { margin-bottom: 0; }
.nv-member-access .nv-member-role { min-width: 0; width: 100%; }
@media (max-width: 700px) { .nv-member-access__grid { grid-template-columns: 1fr; } }
.nv-member-noname { font-size: 0.85em; }
/* ux-admin-money-031: FilePickButton — a labelled button over a hidden file input, the chosen name beside it. */
.nv-filepick { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.nv-filepick__btn { cursor: pointer; }
/* Hosts that lay their own <label>s out as grids (.nv-tickets label) must not restyle the picker's label-button. */
.nv-filepick .nv-filepick__btn { display: inline-flex; gap: 0.4rem; }
.nv-filepick__btn:has(input:disabled) { opacity: 0.55; cursor: default; }
.nv-filepick__name { margin: 0; overflow-wrap: anywhere; }
/* B.5b: MissingList — what a pressed button still needs, beside it. */
.nv-missing p { margin: 0 0 0.2rem; }
.nv-missing ul { margin: 0; padding-left: 1.2rem; }
/* Review: the ring shows for keyboard focus only (label.nv-btn:focus-within also fires on a mouse click). */
label.nv-filepick__btn:focus-within { outline: none; }
label.nv-filepick__btn:has(input:focus-visible) { outline: 2px solid var(--acc-ink); outline-offset: 3px; }
/* ==== end UX wave C2 ==== */

/* ux-staff-012: who is on shift at the front desk's shared lobby login, on every page — "En turno: Ana · Cambiar". */
.nv-shift-chip {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 1rem;
  padding: .45rem .5rem .45rem .9rem; border-radius: 9px; background: var(--acc-tint); color: var(--ink);
}
.nv-shift-chip strong { font-weight: 700; }
.nv-shift-chip__change { min-height: 44px; }

/* ==== The topbar search (Andrew, 2026-10-22) ==== */
/* One box between the brand and the actions on the desktop; on a phone (≤700px) the magnifier opens the same box as a
   full-screen sheet. The results panel is a listbox under the box; every option is a 44 px row. */
.nv-search { position: relative; display: flex; align-items: center; min-width: 0; flex: 1 1 auto; justify-content: center; }
.nv-topbar .nv-search__open { display: none; }
.nv-search__box { position: relative; min-width: 0; }
.nv-search__field { position: relative; display: flex; align-items: center; gap: .4rem; }
.nv-search__input { width: clamp(13rem, 26vw, 22rem); padding-left: 2.1rem; padding-right: 3.6rem; min-height: 38px; }
.nv-search__input::-webkit-search-decoration, .nv-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.nv-search__glyph { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--soft); pointer-events: none; }
.nv-search__kbd {
  position: absolute; right: .55rem; top: 50%; transform: translateY(-50%); pointer-events: none;
  font: 600 10.5px/1 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em;
  color: var(--soft); background: var(--card); border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px;
}
.nv-search__panel {
  position: absolute; top: calc(100% + 6px); left: 0; width: min(34rem, calc(100vw - 2rem)); max-height: min(70vh, 34rem);
  overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); padding: .4rem; z-index: 80;
}
.nv-search__groupname { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); padding: .55rem .65rem .25rem; }
.nv-search__opt {
  display: flex; flex-direction: column; justify-content: center; gap: .1rem; min-height: 44px; padding: .45rem .65rem;
  border-radius: 8px; color: var(--ink); text-decoration: none; cursor: pointer;
}
.nv-search__opt--active, .nv-search__opt:hover { background: var(--hov); box-shadow: inset 3px 0 0 var(--acc-ink); }
.nv-search__title { font-weight: 600; overflow-wrap: anywhere; }
.nv-search__sub { font-size: 12.5px; color: var(--soft); overflow-wrap: anywhere; }
.nv-search__note, .nv-search__empty { padding: .6rem .7rem; margin: 0; }
.nv-search__empty p { margin: 0 0 .3rem; }
.nv-search__none { font-weight: 600; }
@media (max-width: 1100px) { .nv-search__input { width: clamp(10rem, 20vw, 16rem); } }
@media (max-width: 700px) {
  .nv-search { flex: 0 0 auto; }
  .nv-topbar .nv-search__open { display: inline-flex; }
  .nv-search:not(.nv-search--sheet) .nv-search__box { display: none; }
  .nv-search--sheet .nv-search__box {
    position: fixed; inset: 0; z-index: 90; background: var(--card); padding: .75rem; display: flex; flex-direction: column; gap: .5rem;
  }
  .nv-search--sheet .nv-search__field { gap: .5rem; }
  .nv-search--sheet .nv-search__input { flex: 1; width: auto; min-height: 44px; padding-right: .75rem; }
  .nv-search--sheet .nv-search__kbd { display: none; }
  .nv-search--sheet .nv-search__close { min-height: 44px; }
  .nv-search--sheet .nv-search__panel { position: static; width: auto; max-height: none; flex: 1; border: 0; box-shadow: none; padding: 0; }
}
/* ==== end topbar search ==== */
/* ==== Top bar: one row on a phone (UX audit II, ux2-residents-019 / ux2-staff-014) and one account menu at every width
   (UI redesign U2, Task 5). The bar holds the search, "+ Nuevo", the bell and the avatar; the avatar opens name and role,
   Mi perfil, Cambiar de asociación, Idioma, Tema, Ayuda and Cerrar sesión as a panel under it. Lint: TopbarLayoutTests. ==== */
.nv-topbar__account { position: relative; display: inline-flex; }
.nv-topbar .nv-topbar__menubtn { display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 999px; min-width: 44px; min-height: 44px; }
.nv-topbar__menubtn .nv-topbar__avatar { width: 32px; height: 32px; }
.nv-topbar__tools { display: none; }
.nv-topbar__tools.nv-topbar__tools--open {
  display: flex; flex-direction: column; align-items: stretch; gap: .2rem;
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 80; width: min(18rem, calc(100vw - 1rem));
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: .5rem;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
}
.nv-topbar__toolsbackdrop { position: fixed; inset: 0; z-index: 79; }
.nv-topbar__who { display: grid; gap: .1rem; padding: .35rem .6rem .55rem; border-bottom: 1px solid var(--hair); margin-bottom: .2rem; }
.nv-topbar__name { font-weight: 700; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.nv-topbar__role { color: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.nv-topbar__item {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 44px; padding: .35rem .6rem;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-weight: 600;
  text-align: left; text-decoration: none; cursor: pointer;
}
.nv-topbar__item:hover { background: var(--hov); }
/* Mi perfil in the account menu (QA fix-wave item 2 gave the profile link its own rule; it is a menu item since U2). */
.nv-topbar__profile { color: var(--ink); }
.nv-topbar__item:focus-visible, .nv-topbar__segment:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.nv-topbar__item[disabled] { cursor: progress; opacity: .7; }
/* Installable app (G3): the iPhone "how to install" line under the menu entry; empty (and gone) until it is opened. */
.nv-topbar__installhow { margin: 0; padding: .1rem .6rem .45rem; color: var(--soft); font-size: 14px; }
.nv-topbar__installhow:empty { display: none; }
/* Competitor-gap plan G4: "Notificaciones en este dispositivo" in the notification preferences (PushDeviceSwitch). */
.nv-push { display: grid; gap: .45rem; padding: .2rem 0 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--hair); }
.nv-push__title { margin: 0; font-size: 1rem; }
.nv-push__row { display: flex; align-items: center; gap: .8rem; min-height: 44px; }
.nv-push__status { margin: 0; line-height: 1.5; }
.nv-push__status--plain { color: var(--soft); }
.nv-push__help, .nv-push__others, .nv-push__error { margin: 0; }
.nv-push__switch { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border: 1px solid var(--soft); border-radius: 999px; background: transparent; cursor: pointer; }
.nv-push__switch::before { content: ""; position: absolute; inset: -7px 0; } /* a 44px touch target around a 32px track */
.nv-push__knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); transition: transform .15s ease; }
.nv-push__switch[aria-checked="true"] { background: var(--acc); border-color: var(--acc); }
.nv-push__switch[aria-checked="true"] .nv-push__knob { transform: translateX(20px); background: var(--acc-contrast); }
.nv-push__switch:disabled { opacity: .6; cursor: progress; }
.nv-push__switch:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .nv-push__knob { transition: none; } }
.nv-topbar__switch { display: grid; gap: .1rem; padding-bottom: .2rem; border-bottom: 1px solid var(--hair); margin-bottom: .2rem; }
.nv-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 44px; padding: .2rem .6rem; }
.nv-topbar__rowlabel { color: var(--soft); font-size: 13px; font-weight: 600; }
.nv-topbar__switch .nv-topbar__rowlabel { padding: .35rem .6rem 0; }
.nv-topbar__segments { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.nv-topbar__segment {
  min-width: 44px; min-height: 44px; padding: 0 .65rem; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.nv-topbar__segment[aria-pressed="true"] { background: var(--acc-tint); color: var(--acc-ink); }
.nv-topbar__signout { border-top: 1px solid var(--hair); border-radius: 0 0 8px 8px; margin-top: .2rem; }
/* "+ Nuevo" (U2, Task 6): a menu button whose list opens under it. */
.nv-newmenu { position: relative; display: inline-flex; }
.nv-newmenu__button { min-height: 44px; gap: .35rem; }
.nv-newmenu__backdrop { position: fixed; inset: 0; z-index: 79; }
.nv-newmenu__list {
  position: absolute; top: calc(100% + .4rem); right: 0; z-index: 80; display: flex; flex-direction: column; gap: .15rem;
  width: max-content; min-width: 14rem; max-width: calc(100vw - 1rem); padding: .4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
}
.nv-newmenu__item {
  display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: .35rem .65rem; border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nv-newmenu__item:hover, .nv-newmenu__item:focus { background: var(--hov); }
.nv-newmenu__item:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.nv-newmenu__item .nv-side__icon { color: var(--acc-ink); }
@media (max-width: 700px) {
  .nv-topbar { flex-wrap: nowrap; min-height: 56px; gap: .3rem; }
  .nv-topbar__left { margin-right: auto; }
  .nv-topbar__actions { flex-wrap: nowrap; }
  /* The phone row keeps "+" alone; the word "Nuevo" is the button's name and returns in the open list's context. */
  .nv-newmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nv-newmenu__button { min-width: 44px; justify-content: center; }
  .nv-newmenu__list { position: fixed; top: 3.6rem; right: .5rem; }
  .nv-topbar__tools.nv-topbar__tools--open { position: fixed; top: 3.6rem; right: .5rem; }
}
/* ==== end phone top bar ==== */
/* Pagos: the row the topbar search opened (?pago=) wears the accent bar the active search option wears. */
.nv-payrow--linked > td { background: var(--hov); }
.nv-payrow--linked > td:first-child { box-shadow: inset 3px 0 0 var(--acc-ink); }

/* Accountant exports (production readiness P6): FinanceExportMenu's inline panel. */
.nv-fexport { position: relative; display: inline-block; }
.nv-fexport__panel { position: absolute; right: 0; z-index: 20; margin-top: .4rem; padding: 1rem; min-width: 18rem; max-width: calc(100vw - 32px);
    background: var(--card, #fff); border: 1px solid var(--line, #ddd); border-radius: 12px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.nv-fexport__title { margin: 0 0 .6rem; font-weight: 600; display: flex; align-items: center; gap: .25rem; }
.nv-fexport__range { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.nv-fexport__nav { display: flex; justify-content: flex-end; margin-top: .6rem; }
@media (max-width: 600px) { .nv-fexport__panel { position: fixed; left: 16px; right: 16px; min-width: 0; } .nv-fexport__range { grid-template-columns: 1fr; } }
.nv-page__head--actions { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.nv-fexport__group { display: flex; flex-wrap: wrap; gap: .5rem; }

/* UI redesign U1 (Task 3): Administración › Configuración, a links-only hub of setup screens. */
.nv-config__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.nv-config__card {
  display: flex; align-items: flex-start; gap: 0.75rem; min-height: 44px; height: 100%;
  text-decoration: none; color: var(--ink);
}
.nv-config__card:hover { border-color: var(--acc); }
.nv-config__card:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.nv-config__card .nv-side__icon { margin-top: 0.15rem; color: var(--acc-ink); }
.nv-config__text { display: grid; gap: 0.2rem; min-width: 0; }
.nv-config__title { font-weight: 700; }
.nv-config__line { color: var(--soft); font-size: 0.92rem; }

/* UI redesign U6 (Task 21): a resident's bottom tab bar on a phone — five equal tabs, labels always shown, 44px+ targets,
   fixed to the bottom above the home indicator (safe-area inset); the page keeps matching room so nothing hides under
   it, and "Más" stands in for the hamburger. Hidden at desktop widths and in print. */
.nv-tabbar { display: none; }
@media (max-width: 900px) {
  .nv-tabbar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--card); border-top: 1px solid var(--line);
  }
  .nv-tabbar__tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 44px; min-height: 52px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent;
    color: var(--soft); font: inherit; font-size: 0.72rem; font-weight: 600; line-height: 1.15; text-align: center;
    text-decoration: none; cursor: pointer; overflow-wrap: anywhere;
  }
  .nv-tabbar__tab .nv-side__icon { width: 22px; height: 22px; }
  .nv-tabbar__tab--on { color: var(--acc-ink); }
  .nv-tabbar__tab:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }
  .nv-shell--tabbar .nv-topbar .nv-hamburger { display: none; }
  .nv-shell--tabbar .nv-main { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}
/* U6 review (M1): below 600px the help bubble sits fixed 16px above the viewport's bottom — under the tab bar. With the
   bar on screen it rises by the bar's room (the page's own bottom padding). A bubble placed by script keeps its place. */
@media (max-width: 600px) {
  .nv-shell--tabbar .nv-tip__bub:not(.nv-tip__bub--placed) { bottom: calc(16px + 76px + env(safe-area-inset-bottom, 0px)); }
}
@media print {
  .nv-tabbar { display: none !important; }
  .nv-shell--tabbar .nv-main { padding-bottom: 0; }
}

/* UI redesign U6 (Task 19): the owner's balance hero — status, amount and one line on the left; "Cómo pagar", the
   reference, the CLABE and the statement on the right; below each other on a phone. The instructions open under both. */
.nv-owner-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 0.5rem 1.5rem; align-items: start; }
.nv-owner-hero > .nv-owner-unit__howtopay, .nv-owner-hero > .nv-role-actions { grid-column: 1 / -1; }
.nv-owner-hero__main, .nv-owner-hero__side { min-width: 0; }
.nv-owner-hero__status { margin: 0 0 0.4rem; }
.nv-owner-hero__line { margin: 0.2rem 0 0; }
.nv-owner-hero__side { display: grid; gap: 0.4rem; align-content: start; }
.nv-owner-hero__side > p { margin: 0; }
.nv-owner-hero__howbtn { width: 100%; min-height: 44px; justify-content: center; }
.nv-owner-hero .nv-owner-unit__ref { margin: 0; }
/* Competitor-gap G6: "Cómo pagar por transferencia", the CLABE and the reference with their Copiar and one sentence. */
.nv-owner-transfer { display: grid; gap: 0.4rem; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.nv-owner-transfer__title { margin: 0; font-size: 0.95rem; }
.nv-owner-transfer__why, .nv-owner-transfer__numberwhy, .nv-owner-transfer .nv-owner-unit__noref { margin: 0; }
.nv-owner-hero .nv-owner-unit__statement { margin-top: 0; }
@media (max-width: 700px) { .nv-owner-hero { grid-template-columns: minmax(0, 1fr); } }
