/* ═══════════════════════════════════════════════════════════════════
   NV Streaming · Cierre de caja v5.5 (nv-caja-520.css)
   Tarjeta del Panel + ventana hecha desde cero. Solo tokens del tema
   (--bg…, --text…, --accent, --nv-accent-rgb, --green, --amber, --red,
   --nv54-on-accent y las fuentes de cada tema).
   ═══════════════════════════════════════════════════════════════════ */
.nvcj-card, .nvcj-ov {
  --nvcj-spring: cubic-bezier(.34, 1.36, .64, 1);
  --nvcj-ease: cubic-bezier(.2, .8, .2, 1);
  --nvcj-acc: rgb(var(--nv-accent-rgb, 139, 147, 255));
  --nvcj-soft: rgba(var(--nv-accent-rgb, 139, 147, 255), .10);
  --nvcj-line: rgba(var(--nv-accent-rgb, 139, 147, 255), .22);
  --nvcj-on: var(--nv54-on-accent, #fff);
}
.nvcj-num { font-family: var(--nv-font-num, var(--nv-font-display, inherit)); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nvcj-num.nvcj-tick { color: var(--text); }

/* ── Tarjeta del Panel ─────────────────────────────────────────────── */
.nvcj-card { gap: 14px !important; position: relative; overflow: hidden; }
.nvcj-card::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--nv-accent-rgb, 139,147,255), .10), transparent);
}
.nvcj-card > * { position: relative; }
.nvcj-c-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nvcj-c-h > div { flex: 1; min-width: 0; }
.nvcj-c-h small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-c-t { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nvcj-c-t .nvcj-num { font-size: 34px; font-weight: 800; line-height: 1.05; color: var(--text); }
.nvcj-c-t small { font-size: 12px; color: var(--text3); }
.nvcj-card .nvp-btn-full { margin-top: auto; }

.nvcj-pill {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; height: 26px; padding: 0 10px; border-radius: 99px;
  font: 700 11.5px/1 var(--nv-font-ui, inherit); white-space: nowrap;
}
.nvcj-pill.on { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.nvcj-pill.on i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 50%, transparent); animation: nvcjPulse 2.4s ease-out infinite; }
.nvcj-pill.off { color: var(--text2); background: var(--bg3); border: 1px solid var(--border); }
@keyframes nvcjPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

.nvcj-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nvcj-split > div {
  min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 8px;
  padding: 10px 12px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--border);
}
.nvcj-split span { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-split span svg { color: var(--accent2, var(--accent)); flex-shrink: 0; }
.nvcj-split b { font: 800 20px/1.15 var(--nv-font-display, inherit); color: var(--text); font-variant-numeric: tabular-nums; }
.nvcj-split em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--text2); font-family: var(--nv-font-num, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nvcj-split.big > div { padding: 12px 14px; }
.nvcj-split.big b { font-size: 22px; }

.nvcj-after { margin: 0; font-size: 12.5px; color: var(--text2); }
.nvcj-after b { color: var(--amber, var(--accent)); font-variant-numeric: tabular-nums; }

/* ── Ventana ───────────────────────────────────────────────────────── */
.nvcj-ov {
  position: fixed; inset: 0; z-index: 10060; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, .5); backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1);
  font-family: var(--nv-font-ui, inherit); color: var(--text);
  animation: nvcjFade .2s var(--nvcj-ease) both;
}
.nvcj-ov.out { animation: nvcjFade .18s ease-in reverse both; }
.nvcj-ov.out .nvcj-md { animation: nvcjOut .18s ease-in both; }
.nvcj-ov *, .nvcj-ov *::before, .nvcj-ov *::after { box-sizing: border-box; }
@keyframes nvcjFade { from { opacity: 0; } }
@keyframes nvcjPop { from { opacity: 0; transform: translateY(14px) scale(.965); } }
@keyframes nvcjOut { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.nvcj-md {
  width: min(680px, 100%); max-height: min(860px, calc(100vh - 32px)); max-height: min(860px, calc(100dvh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--border2, var(--border)); border-radius: 22px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  animation: nvcjPop .32s var(--nvcj-spring) both;
}
.nvcj-h { display: flex; align-items: center; gap: 12px; padding: 18px 20px 12px; flex-shrink: 0; }
.nvcj-h > div { flex: 1; min-width: 0; }
.nvcj-h h3 { margin: 0; font: 700 17px/1.2 var(--nv-font-display, inherit); letter-spacing: -.01em; color: var(--text); }
.nvcj-h small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 3px; font-size: 12px; color: var(--text3); }
.nvcj-h-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent2, var(--accent)); background: var(--nvcj-soft); border: 1px solid var(--nvcj-line); }
.nvcj-sync { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: var(--bg3); color: var(--text3); font-size: 11px; font-weight: 600; }
.nvcj-sync.err { color: var(--amber); }
.nvcj-x {
  width: 36px; height: 36px; border-radius: 11px; border: 0; background: transparent; color: var(--text3);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: background .16s, color .16s, transform .16s var(--nvcj-spring);
}
.nvcj-x:hover { background: var(--bg3); color: var(--text); }
.nvcj-x:active { transform: scale(.92); }

/* Segmento Hoy | Historial con indicador que se desliza */
.nvcj-seg {
  --x: 0; --n: 2; position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); margin: 0 20px 4px; padding: 3px;
  border-radius: 12px; background: var(--bg3); border: 1px solid var(--border); flex-shrink: 0;
}
.nvcj-seg-i {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 9px;
  background: var(--bg); box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 4px 12px -4px rgba(0,0,0,.3);
  transform: translateX(calc(var(--x) * 100%)); transition: transform .32s var(--nvcj-spring);
}
.nvcj-seg button {
  position: relative; z-index: 1; height: 32px; border: 0; background: transparent; color: var(--text3); cursor: pointer;
  font: 700 13px/1 var(--nv-font-ui, inherit); border-radius: 9px; transition: color .2s;
}
.nvcj-seg button[aria-selected="true"] { color: var(--text); }
.nvcj-seg button:focus-visible, .nvcj-x:focus-visible, .nvcj-btn:focus-visible, .nvcj-day-h:focus-visible, .nvcj-chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nvcj-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.nvcj-b > * { flex-shrink: 0; }
.nvcj-md:focus { outline: none; }
.nvcj-b.nvcj-in { animation: nvcjTab .26s var(--nvcj-ease) both; }
@keyframes nvcjTab { from { opacity: 0; transform: translateY(6px); } }
.nvcj-f {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 20px 16px;
  border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg2) 92%, var(--bg));
}
.nvcj-sp { flex: 1; }
.nvcj-muted { font-size: 12px; color: var(--text3); }
.nvcj-done { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 11px; font-size: 13px; font-weight: 700; color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }

.nvcj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 11px;
  border: 1px solid var(--border2, var(--border)); background: var(--bg3); color: var(--text); cursor: pointer; white-space: nowrap;
  font: 700 13px/1 var(--nv-font-ui, inherit); transition: background .16s, border-color .16s, transform .16s var(--nvcj-spring), box-shadow .16s;
}
.nvcj-btn:hover { background: var(--bg4); }
.nvcj-btn:active { transform: scale(.96); }
.nvcj-btn[disabled] { opacity: .45; cursor: default; }
.nvcj-btn.q { background: transparent; border-color: transparent; color: var(--text2); padding: 0 10px; }
.nvcj-btn.q:hover { background: var(--bg3); color: var(--text); }
.nvcj-btn.pri { background: var(--accent); border-color: transparent; color: var(--nvcj-on); box-shadow: 0 8px 20px -10px var(--nvcj-acc); }
.nvcj-btn.pri:hover { background: var(--accent2, var(--accent)); }

/* Confirmación en línea (sin ventana encima) */
.nvcj-conf { flex: 1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; animation: nvcjTab .24s var(--nvcj-spring) both; }
.nvcj-conf > span { flex: 1 1 220px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.nvcj-conf > span b { font-variant-numeric: tabular-nums; }
.nvcj-conf > span small { display: block; font-weight: 500; font-size: 11.5px; color: var(--text3); }
.nvcj-conf-b { display: flex; gap: 8px; margin-left: auto; }

/* Hoy */
.nvcj-hero {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 18px 16px;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(145deg, rgba(var(--nv-accent-rgb, 139,147,255), .16), rgba(var(--nv-accent-rgb, 139,147,255), .04) 60%, transparent), var(--bg3);
  border: 1px solid var(--nvcj-line);
}
.nvcj-hero .nvcj-num { font-size: 46px; font-weight: 800; line-height: 1.02; color: var(--text); margin-top: 4px; }
.nvcj-hero p { margin: 0; font-size: 12.5px; color: var(--text2); }
.nvcj-hero.cerrada { background: var(--bg3); border-color: var(--border); }

.nvcj-sec { display: flex; flex-direction: column; gap: 8px; }
.nvcj-sec h4, .nvcj-dd h5 { margin: 0; display: flex; align-items: center; gap: 7px; font: 700 12px/1.3 var(--nv-font-ui, inherit); letter-spacing: .06em; text-transform: uppercase; color: var(--text3); }
.nvcj-sec h4 span { font-size: 11px; letter-spacing: 0; padding: 1px 7px; border-radius: 99px; background: var(--bg3); color: var(--text2); }
.nvcj-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text3); }
.nvcj-note b { color: var(--text2); font-variant-numeric: tabular-nums; }

.nvcj-list { list-style: none; margin: 0; padding: 0; border-radius: 14px; border: 1px solid var(--border); overflow: hidden; background: var(--bg2); }
.nvcj-mv {
  display: grid; grid-template-columns: 60px 8px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-top: 1px solid var(--border);
  animation: nvcjRow .26s var(--nvcj-ease) both; animation-delay: calc(var(--i, 0) * 22ms);
}
.nvcj-list > li:first-child { border-top: 0; }
@keyframes nvcjRow { from { opacity: 0; transform: translateY(4px); } }
.nvcj-mv time { font-size: 11.5px; font-weight: 600; color: var(--text3); font-family: var(--nv-font-num, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nvcj-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text, #fff) 22%, transparent); }
.nvcj-mv-t { min-width: 0; }
.nvcj-mv-t b { display: block; font-size: 13.5px; font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-mv-t small { display: block; font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-chip { font-size: 10.5px; font-weight: 800; letter-spacing: .02em; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.nvcj-chip.n { color: var(--accent2, var(--accent)); background: var(--nvcj-soft); }
.nvcj-chip.r { color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); }
.nvcj-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 60px; text-align: right; font-variant-numeric: tabular-nums; }
.nvcj-amt b { font-size: 13.5px; font-weight: 800; color: var(--text); white-space: nowrap; }
.nvcj-amt small { font-size: 10.5px; font-weight: 650; color: var(--text3); white-space: nowrap; }
.nvcj-amt small.pos { color: var(--green); } .nvcj-amt small.neg { color: var(--red); }
.nvcj-mv.hit { background: var(--nvcj-soft); }
.nvcj-div { padding: 7px 12px; border-top: 1px solid var(--border); background: var(--bg3); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); }

.nvcj-bars { display: flex; flex-direction: column; gap: 8px; }
.nvcj-bar { display: grid; grid-template-columns: minmax(70px, 140px) minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.nvcj-bn { font-size: 12.5px; font-weight: 600; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-bt { height: 8px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.nvcj-bt i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text, #fff) 22%, transparent); transform-origin: left; animation: nvcjGrow .42s var(--nvcj-ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
@keyframes nvcjGrow { from { transform: scaleX(0); } }
.nvcj-bv { display: flex; align-items: baseline; gap: 6px; justify-content: flex-end; min-width: 76px; }
.nvcj-bv b { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.nvcj-bv small { font-size: 11px; color: var(--text3); }

.nvcj-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; border-radius: 14px; border: 1px dashed var(--border2, var(--border)); color: var(--text3); }
.nvcj-empty svg { width: 22px; height: 22px; color: var(--text3); }
.nvcj-empty b { font-size: 14px; color: var(--text); }
.nvcj-empty small { font-size: 12.5px; max-width: 320px; }

/* Historial */
.nvcj-fil { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nvcj-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.nvcj-chips button {
  height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--text2);
  font: 700 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; transition: background .16s, color .16s, border-color .16s, transform .16s var(--nvcj-spring);
}
.nvcj-chips button:hover { background: var(--bg3); color: var(--text); }
.nvcj-chips button:active { transform: scale(.95); }
.nvcj-chips button[aria-pressed="true"] { background: var(--nvcj-soft); border-color: var(--nvcj-line); color: var(--accent2, var(--accent)); }
.nvcj-dates { display: flex; gap: 8px; }
.nvcj-dates label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nvcj-dates span { font-size: 10.5px; font-weight: 700; color: var(--text3); letter-spacing: .04em; text-transform: uppercase; }
.nvcj-dates input {
  height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border2, var(--border)); background: var(--bg3); color: var(--text);
  font: 600 12.5px/1 var(--nv-font-ui, inherit); color-scheme: dark light; min-width: 0; width: 140px;
}
.nvcj-dates input:focus { outline: none; border-color: var(--accent); }
.nvcj-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nvcj-sum > div { min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--border); }
.nvcj-sum > div:first-child { background: var(--nvcj-soft); border-color: var(--nvcj-line); }
.nvcj-sum small { display: block; font-size: 11px; font-weight: 700; color: var(--text3); }
.nvcj-sum b { display: block; font: 800 18px/1.25 var(--nv-font-display, inherit); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nvcj-days { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.nvcj-day { border-radius: 14px; border: 1px solid var(--border); background: var(--bg2); overflow: hidden; transition: border-color .2s, background .2s; animation: nvcjRow .26s var(--nvcj-ease) both; animation-delay: calc(var(--i, 0) * 24ms); }
.nvcj-day.on { border-color: var(--nvcj-line); background: var(--bg3); }
.nvcj-day-h { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; padding: 10px 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.nvcj-day-d { width: 44px; height: 44px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg3); line-height: 1; }
.nvcj-day.on .nvcj-day-d { background: var(--bg2); }
.nvcj-day-d b { font: 800 17px/1 var(--nv-font-display, inherit); color: var(--text); }
.nvcj-day-d small { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--text3); margin-top: 3px; }
.nvcj-day-m { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nvcj-day-l { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.nvcj-day-l > b { font-size: 13.5px; color: var(--text); }
.nvcj-day-m > small { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.nvcj-badge svg { width: 11px; height: 11px; }
.nvcj-badge.ok { color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); }
.nvcj-badge.warn { color: var(--amber, var(--accent)); background: color-mix(in srgb, var(--amber, #f7b955) 13%, transparent); }
.nvcj-day-t { font: 800 15px/1 var(--nv-font-display, inherit); font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.nvcj-chev { color: var(--text3); display: grid; place-items: center; transition: transform .28s var(--nvcj-spring); }
.nvcj-day.on .nvcj-chev { transform: rotate(180deg); }
.nvcj-day-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--nvcj-ease); }
.nvcj-day.on .nvcj-day-b { grid-template-rows: 1fr; }
.nvcj-day-b > div { min-height: 0; overflow: hidden; }
.nvcj-dd { display: flex; flex-direction: column; gap: 10px; padding: 2px 12px 14px; }
.nvcj-dd h5 { margin-top: 4px; font-size: 11px; }
.nvcj-dd-a { display: flex; justify-content: flex-end; }

/* ── v5.6 · Caja empresarial ───────────────────────────────────────── */
.nvcj-btn.sm { height: 32px; padding: 0 11px; font-size: 12px; border-radius: 10px; }
.nvcj-x.sm { width: 32px; height: 32px; border-radius: 10px; }
.nvcj-x[disabled] { opacity: .35; cursor: default; }
.nvcj-ov .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nvcj-ov .pos { color: var(--green); } .nvcj-ov .neg { color: var(--red); }
.nvcj-sum.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nvcj-sum > div.pos b { color: var(--green); } .nvcj-sum > div.neg b { color: var(--red); } .nvcj-sum > div.warn b { color: var(--amber, var(--accent)); }
.nvcj-badge.bad { color: var(--red); background: color-mix(in srgb, var(--red) 12%, transparent); }
.nvcj-badge:not(.ok):not(.warn):not(.bad) { color: var(--text2); background: var(--bg2); border: 1px solid var(--border); }
.nvcj-difp { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.nvcj-difp.pos { color: var(--green); } .nvcj-difp.neg { color: var(--red); } .nvcj-difp.ok { color: var(--text2); }
.nvcj-difp svg { width: 14px; height: 14px; flex-shrink: 0; }
.nvcj-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 13px; font-size: 12.5px; line-height: 1.45; color: var(--text2);
  background: color-mix(in srgb, var(--amber, #f7b955) 10%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--amber, #f7b955) 30%, transparent); animation: nvcjTab .26s var(--nvcj-ease) both; }
.nvcj-alert svg { color: var(--amber, var(--accent)); flex-shrink: 0; margin-top: 1px; }
.nvcj-alert b { color: var(--text); }

.nvcj-fondo { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 13px; border: 1px dashed var(--border2, var(--border)); }
.nvcj-fondo > span { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: center; min-width: 0; }
.nvcj-fondo > span svg { grid-row: 1 / span 2; color: var(--text3); }
.nvcj-fondo b { font-size: 13px; color: var(--text); }
.nvcj-fondo small { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-fondo em { font-style: normal; font-weight: 800; font-size: 15px; color: var(--text); }

/* Comprobante tipo recibo */
.nvcj-rec { position: relative; border-radius: 16px; padding: 14px 16px 10px; background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; display: flex; flex-direction: column; gap: 8px; animation: nvcjTab .3s var(--nvcj-spring) both; }
.nvcj-rec::before, .nvcj-rec::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--border); transform: translateY(-50%); }
.nvcj-rec::before { left: -8px; clip-path: inset(0 0 0 50%); } .nvcj-rec::after { right: -8px; clip-path: inset(0 50% 0 0); }
.nvcj-rec header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nvcj-rec header b { font: 800 12px/1 var(--nv-font-ui, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--accent2, var(--accent)); }
.nvcj-rec header small { font-size: 11px; color: var(--text3); }
.nvcj-rec hr { border: 0; border-top: 1px dashed var(--border2, var(--border)); margin: 2px 0; }
.nvcj-rec-g { display: grid; gap: 4px; }
.nvcj-rec-g > div, .nvcj-rec-d, .nvcj-rec-m .mt { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.nvcj-rec-g span, .nvcj-rec-m span { color: var(--text3); }
.nvcj-rec-g b { color: var(--text); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.nvcj-rec-m { display: grid; gap: 4px; }
.nvcj-rec-m .mt small { margin-left: auto; color: var(--text3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.nvcj-rec-m .mt b { min-width: 56px; text-align: right; font-size: 12.5px; color: var(--text2); }
.nvcj-rec-d { padding: 8px 10px; border-radius: 10px; background: var(--bg3); font-weight: 700; }
.nvcj-rec-d.pos b { color: var(--green); } .nvcj-rec-d.neg b { color: var(--red); } .nvcj-rec-d.ok b { color: var(--text); }
.nvcj-rec-n { margin: 0; font-size: 12.5px; font-style: italic; color: var(--text2); }
.nvcj-rec footer { display: flex; justify-content: flex-end; gap: 4px; }

/* Registro de cambios (auditoría) */
.nvcj-aud { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--border); margin-left: 6px; }
.nvcj-aud li { position: relative; display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 6px 4px 6px 14px; font-size: 12px; }
.nvcj-aud li::before { content: ''; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--text3); }
.nvcj-aud li.t-cierre::before, .nvcj-aud li.t-recierre::before { border-color: var(--green); }
.nvcj-aud li.t-ajuste::before, .nvcj-aud li.t-recalculo::before { border-color: var(--accent); }
.nvcj-aud li.t-anulado::before { border-color: var(--red); }
.nvcj-aud time { color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 11.5px; }
.nvcj-aud b { display: block; color: var(--text); font-weight: 650; }
.nvcj-aud small { display: block; color: var(--text3); overflow-wrap: anywhere; }
.nvcj-aud em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sub-vistas: arqueo, fondo, ajuste, recalcular */
.nvcj-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px 0 6px; border: 0; border-radius: 9px; background: transparent; color: var(--text2); font: 700 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; transition: background .16s, color .16s; }
.nvcj-back:hover { background: var(--bg3); color: var(--text); }
.nvcj-aq-h { display: flex; flex-direction: column; gap: 4px; }
.nvcj-aq-h h4 { margin: 0; font: 700 16px/1.25 var(--nv-font-display, inherit); color: var(--text); }
.nvcj-aq { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.nvcj-aq-r { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(70px, 1fr) minmax(90px, 1fr) minmax(64px, .8fr); gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--border); animation: nvcjRow .26s var(--nvcj-ease) both; animation-delay: calc(var(--i, 0) * 26ms); }
.nvcj-aq-r:first-child { border-top: 0; }
.nvcj-aq-r.hd { background: var(--bg3); font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); padding: 7px 12px; animation: none; }
.nvcj-aq-r.hd span:not(:first-child), .nvcj-aq-r .e, .nvcj-aq-r .d { text-align: right; }
.nvcj-aq-r .k { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-aq-r .e { font-size: 13px; color: var(--text2); }
.nvcj-aq-r .d { font-size: 12.5px; font-weight: 800; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nvcj-aq-r .d.pos { color: var(--green); } .nvcj-aq-r .d.neg { color: var(--red); }
.nvcj-aq-r input, .nvcj-field input, .nvcj-field select, .nvcj-field textarea, .nvcj-search input {
  width: 100%; min-width: 0; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border2, var(--border)); background: var(--bg3); color: var(--text);
  font: 650 13px/1 var(--nv-font-ui, inherit); font-variant-numeric: tabular-nums; color-scheme: dark light; transition: border-color .16s, box-shadow .16s;
}
.nvcj-aq-r input { text-align: right; }
.nvcj-field textarea { height: auto; min-height: 60px; padding: 9px 10px; line-height: 1.4; resize: vertical; font-weight: 500; }
.nvcj-aq-r input:focus, .nvcj-field input:focus, .nvcj-field select:focus, .nvcj-field textarea:focus, .nvcj-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--nvcj-soft); }
.nvcj-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nvcj-field > span { font-size: 11.5px; font-weight: 700; color: var(--text3); }
.nvcj-field > span b { color: var(--amber, var(--accent)); }
.nvcj-field.err textarea, .nvcj-field.err input { border-color: var(--red); }
.nvcj-err { color: var(--red); font-size: 12px; font-weight: 600; animation: nvcjShake .32s var(--nvcj-ease); }
@keyframes nvcjShake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.nvcj-aj-g { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 10px; }

/* Búsqueda */
.nvcj-search { position: relative; display: block; }
.nvcj-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text3); pointer-events: none; }
.nvcj-search input { padding-left: 34px; height: 38px; font-weight: 550; }

/* Reportes */
.nvcj-rep-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nvcj-nav { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nvcj-nav b { font-size: 13px; color: var(--text); text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-kp { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 8px; }
.nvcj-kp > div { min-width: 0; padding: 11px 12px; border-radius: 13px; background: var(--bg3); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; animation: nvcjRow .28s var(--nvcj-ease) both; }
.nvcj-kp > div.hero { background: linear-gradient(145deg, rgba(var(--nv-accent-rgb, 139,147,255), .16), transparent), var(--bg3); border-color: var(--nvcj-line); }
.nvcj-kp small { font-size: 11px; font-weight: 700; color: var(--text3); }
.nvcj-kp b { font: 800 18px/1.2 var(--nv-font-display, inherit); color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcj-kp .hero b { font-size: 24px; }
.nvcj-delta { font-size: 11px; font-weight: 800; color: var(--text3); }
.nvcj-delta.up { color: var(--green); } .nvcj-delta.down { color: var(--red); }
.nvcj-chart { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding: 8px 4px 0; border-radius: 12px; background: var(--bg2); border: 1px solid var(--border); }
.nvcj-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.nvcj-col i { display: block; width: 100%; max-width: 22px; height: max(2px, var(--h)); border-radius: 5px 5px 2px 2px; background: var(--accent); transform-origin: bottom; animation: nvcjBar .34s var(--nvcj-spring) both; animation-delay: calc(var(--i, 0) * 5ms); opacity: .9; }
.nvcj-col:hover i { opacity: 1; box-shadow: 0 0 0 2px var(--nvcj-line); }
.nvcj-col.fut i { background: var(--bg3); }
.nvcj-col small { height: 14px; font-size: 9.5px; font-weight: 700; color: var(--text3); white-space: nowrap; }
@keyframes nvcjBar { from { transform: scaleY(0); } }

/* ── Teléfono: hoja inferior ───────────────────────────────────────── */
@media (max-width: 600px) {
  .nvcj-ov { place-items: end stretch; padding: 0; }
  .nvcj-md { width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); animation-name: nvcjUp; }
  .nvcj-ov.out .nvcj-md { animation-name: nvcjDown; }
  @keyframes nvcjUp { from { transform: translateY(40px); opacity: 0; } }
  @keyframes nvcjDown { to { transform: translateY(40px); opacity: 0; } }
  .nvcj-h { padding: 14px 16px 10px; }
  .nvcj-seg { margin: 0 16px 4px; }
  .nvcj-b { padding: 12px 16px 16px; gap: 14px; }
  .nvcj-f { padding: 10px 16px 14px; }
  .nvcj-hero .nvcj-num { font-size: 38px; }
  .nvcj-mv { grid-template-columns: 8px minmax(0, 1fr) auto; row-gap: 2px; }
  .nvcj-mv time { grid-column: 2; grid-row: 2; order: 3; font-size: 11px; }
  .nvcj-mv .nvcj-dot { grid-row: 1 / span 2; }
  .nvcj-mv-t { grid-column: 2; grid-row: 1; }
  .nvcj-mv .nvcj-chip { display: none; }
  .nvcj-mv .nvcj-amt { grid-column: 3; grid-row: 1 / span 2; }
  .nvcj-fil { flex-direction: column; align-items: stretch; }
  .nvcj-dates label { flex: 1; }
  .nvcj-dates input { width: 100%; }
  .nvcj-bar { grid-template-columns: minmax(60px, 96px) minmax(0, 1fr) auto; gap: 8px; }
  .nvcj-bv { min-width: 0; }
  .nvcj-day-h { grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: 10px; padding: 10px; }
  .nvcj-day-d { width: 40px; height: 40px; }
  .nvcj-sum b { font-size: 16px; }
  .nvcj-c-t .nvcj-num { font-size: 30px; }
  .nvcj-conf-b { width: 100%; }
  .nvcj-conf-b .nvcj-btn { flex: 1; }
  .nvcj-sum.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvcj-kp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvcj-kp .hero { grid-column: 1 / -1; }
  .nvcj-aj-g { grid-template-columns: 1fr 1fr; }
  .nvcj-aj-g label:last-child { grid-column: 1 / -1; }
  .nvcj-aq-r { grid-template-columns: minmax(0, 1fr) minmax(84px, 1fr) minmax(56px, auto); row-gap: 2px; padding: 8px 10px; }
  .nvcj-aq-r .k { grid-column: 1; grid-row: 1; }
  .nvcj-aq-r .e { grid-column: 1; grid-row: 2; text-align: left; font-size: 11.5px; color: var(--text3); }
  .nvcj-aq-r .c { grid-column: 2; grid-row: 1 / span 2; }
  .nvcj-aq-r .d { grid-column: 3; grid-row: 1 / span 2; }
  .nvcj-aq-r.hd { display: none; }
  .nvcj-aud li { grid-template-columns: minmax(0, 1fr) auto; }
  .nvcj-aud time { grid-column: 1 / -1; }
  .nvcj-f .nvcj-btn.q span { display: none; }
  .nvcj-f .nvcj-btn.q { padding: 0 10px; }
  .nvcj-fondo small { white-space: normal; }
}
@media (pointer: coarse) {
  .nvcj-btn, .nvcj-x, .nvcj-chips button, .nvcj-back { min-height: 44px; }
  .nvcj-aq-r input, .nvcj-field input, .nvcj-field select, .nvcj-search input { height: 44px; font-size: 16px; }
  .nvcj-seg button { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .nvcj-ov, .nvcj-md, .nvcj-ov.out .nvcj-md, .nvcj-b.nvcj-in, .nvcj-mv, .nvcj-day, .nvcj-bt i, .nvcj-conf, .nvcj-pill.on i, .nvcj-rec, .nvcj-alert, .nvcj-aq-r, .nvcj-kp > div, .nvcj-col i, .nvcj-err { animation: none !important; }
  .nvcj-seg-i, .nvcj-day-b, .nvcj-chev, .nvcj-btn, .nvcj-x { transition: none !important; }
}

/* ═══ v6.2 · quitar de la caja, repetidos, vista de moderador ═══════ */
.nvcj-mv.con-q, .nvcj-qt .nvcj-mv { grid-template-columns: 60px 8px minmax(0, 1fr) auto auto auto; }
.nvcj-mv-q {
  width: 32px; height: 32px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text3);
  display: grid; place-items: center; cursor: pointer; opacity: .55;
  transition: opacity .16s, color .16s, background .16s, border-color .16s, transform .16s var(--nvcj-spring);
}
.nvcj-mv:hover .nvcj-mv-q, .nvcj-mv-q:focus-visible { opacity: 1; }
.nvcj-mv-q:hover { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.nvcj-mv-q:active { transform: scale(.92); }
.nvcj-mv-q:focus-visible { outline: 2px solid var(--nvcj-line); outline-offset: 2px; }
.nvcj-mv.off { opacity: .72; }
.nvcj-mv.off s { color: var(--text3); text-decoration-thickness: 1.5px; }
.nvcj-qt { border: 0; padding: 0; }
.nvcj-qt > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 2px 0 8px; color: var(--text3); }
.nvcj-qt > summary::-webkit-details-marker { display: none; }
.nvcj-qt > summary h4 { margin: 0; }
.nvcj-qt > summary svg { transition: transform .26s var(--nvcj-spring); }
.nvcj-qt[open] > summary svg { transform: rotate(180deg); }
.nvcj-qt[open] .nvcj-list { animation: nvcjTab .24s var(--nvcj-ease) both; }
.nvcj-btn.danger { background: var(--red); color: #fff; box-shadow: 0 8px 20px -10px var(--red); }
.nvcj-btn.danger:hover { background: color-mix(in srgb, var(--red) 86%, #000); }
.nvcj-limp {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px;
  background: var(--nvcj-soft); border: 1px solid var(--nvcj-line); color: var(--text2); animation: nvcjTab .3s var(--nvcj-spring) both;
}
.nvcj-limp > svg { color: var(--accent2, var(--accent)); flex-shrink: 0; }
.nvcj-limp > div { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.nvcj-limp b { color: var(--text); font-size: 13px; }
.nvcj-limp small { font-size: 12px; line-height: 1.45; color: var(--text3); }
.nvcj-limp-a { display: flex; gap: 8px; flex-wrap: wrap; }
.nvcj-md { position: relative; }
.nvcj-snack {
  position: absolute; left: 50%; bottom: 76px; z-index: 5; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600;
  box-shadow: 0 14px 34px -14px rgba(0,0,0,.55); opacity: 0; pointer-events: none;
  transform: translate(-50%, 12px) scale(.98); transition: opacity .2s var(--nvcj-ease), transform .28s var(--nvcj-spring);
}
.nvcj-snack.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.nvcj-snack > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvcj-snack button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; border: 0; cursor: pointer; background: color-mix(in srgb, var(--bg) 16%, transparent); color: inherit; font: 700 12.5px/1 var(--nv-font-ui, inherit); flex-shrink: 0; }
.nvcj-snack button:hover { background: color-mix(in srgb, var(--bg) 26%, transparent); }
.nvcj-cnt { font-family: var(--nv-font-num, var(--nv-font-display, inherit)); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-size: 34px; line-height: 1.05; }
.nvcj-hero.mod .nvcj-cnt { font-size: 44px; }
@media (max-width: 600px) {
  .nvcj-mv.con-q, .nvcj-qt .nvcj-mv { grid-template-columns: 8px minmax(0, 1fr) auto auto; }
  .nvcj-mv.con-q .nvcj-mv-q, .nvcj-qt .nvcj-mv > .nvcj-btn { grid-column: 4; grid-row: 1 / span 2; }
  .nvcj-mv-q { opacity: .8; width: 36px; height: 36px; }
  .nvcj-qt .nvcj-mv > .nvcj-btn span { display: none; }
  .nvcj-snack { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .nvcj-limp, .nvcj-qt[open] .nvcj-list { animation: none !important; }
  .nvcj-snack, .nvcj-mv-q, .nvcj-qt > summary svg { transition: none !important; }
}
.nvcj-seg[style*="--n:1;"], .nvcj-seg[style$="--n:1"] { display: none; }
