/* ════════════════════════════════════════════════════════════════════
   NV Streaming — Clientes v5.1 (nv-clientes-510.css)
   Ficha · Lote · Tarjetas · Mapa · Pausa · Recibo · Deshacer ·
   Vacíos · Esqueletos · Colores por plataforma
   ────────────────────────────────────────────────────────────────────
   Todo cuelga de clases .nvcl-* que pone js/nv-clientes-510.js.
   Solo usa los tokens del tema (--accent, --bg*, --text*, …). El color
   de cada plataforma llega como --nvcl-pc / --nvcl-pc-rgb.
   ════════════════════════════════════════════════════════════════════ */
:root { --nvcl-ease: cubic-bezier(.2,.8,.2,1); }
.nv-clientes { --nvcl-r: 14px; }

/* ── Piezas comunes ─────────────────────────────────────────────── */
.nvcl-lbl { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin: 18px 0 8px; }
.nvcl-mut { font-size: 12.5px; color: var(--text3); margin: 0; line-height: 1.5; }
.nvcl-hint { display: block; font-size: 11.5px; color: var(--text3); margin: 6px 0 0; line-height: 1.45; }
.nvcl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text); font: 700 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; transition: background .15s, border-color .15s, transform .15s var(--nvcl-ease); white-space: nowrap; }
.nvcl-btn:hover { background: var(--bg4); border-color: var(--accent); }
.nvcl-btn:active { transform: scale(.97); }
.nvcl-btn.p { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.nvcl-btn.p:hover { filter: brightness(1.08); }
.nvcl-btn.s { min-height: 30px; padding: 0 10px; font-size: 11.5px; }
.nvcl-btn:focus-visible, .nvcl-ix:focus-visible, .nvcl-nm:focus-visible, .nvcl-sq:focus-visible, .nvcl-lote button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nvcl-ix { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; flex-shrink: 0; }
.nvcl-ix:hover { color: var(--text); border-color: var(--border2); }
.nvcl-av { display: inline-grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; }
.nvcl-av.lg { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; }
.nvcl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nvcl-pc, var(--accent)); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(var(--nvcl-pc-rgb, var(--nv-accent-rgb)), .18); }
.nvcl-pchip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 800; color: var(--text); background: rgba(var(--nvcl-pc-rgb, var(--nv-accent-rgb)), .14); border: 1px solid rgba(var(--nvcl-pc-rgb, var(--nv-accent-rgb)), .32); white-space: nowrap; }
.nvcl-pchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--nvcl-pc, var(--accent)); }
.nvcl-pchip em { font-style: normal; color: var(--text3); font-weight: 700; }
.nvcl-st { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--bg4); color: var(--text2); white-space: nowrap; }
.nvcl-st.ok { background: rgba(61,220,151,.12); color: var(--green, #3ddc97); }
.nvcl-st.pronto, .nvcl-st.hoy { background: rgba(247,185,85,.14); color: var(--amber, #f7b955); }
.nvcl-st.venc, .nvcl-st.caida { background: rgba(255,107,122,.13); color: var(--red, #ff6b7a); }
.nvcl-ok { color: var(--green, #3ddc97); font-style: normal; font-weight: 700; }

/* ── 60 · Colores por plataforma ───────────────────────────────── */
.nvcl-sec { position: relative; }
.nvcl-sec > .table-wrap { border-left: 3px solid var(--nvcl-pc, var(--accent)) !important; }
.nvcl-ai { border-left: 3px solid var(--nvcl-pc, var(--accent)) !important; }
.nvcl-apb { position: relative; overflow: hidden; }
.nvcl-apb::after { content: ''; position: absolute; left: 18%; right: 18%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--nvcl-pc); opacity: .85; }
#modal-client.nvcl-pcm .mc-modal, #modal-client.nvcl-pcm .modal { box-shadow: inset 0 3px 0 var(--nvcl-pc), var(--shadow-lg, 0 24px 64px rgba(0,0,0,.55)); }
#modal-client.nvcl-pcm .nvc-seat:not(:disabled):hover { border-color: var(--nvcl-pc); }
.nvcl-mcard { border-left: 3px solid var(--nvcl-pc, var(--accent)) !important; }
.nvcl-sec .nvcl-mcard { border-left-color: var(--nvcl-pc) !important; }
.clients-mobile-only .nvcl-mcard, .nvcl-sec .clients-mobile-only > div { border-left: 3px solid var(--nvcl-pc, var(--accent)); }

/* ── Nombre clicable (abre la ficha) ───────────────────────────── */
.nvcl-nm { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s, color .15s; }
.nvcl-nm:hover { text-decoration-color: var(--accent2); color: var(--accent2) !important; }

/* ── Casillas ──────────────────────────────────────────────────── */
.nvcl-ck { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; flex-shrink: 0; cursor: pointer; margin-right: 2px; }
.nvcl-ck input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nvcl-ck span { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid var(--border2); background: var(--bg2); transition: background .15s, border-color .15s; display: grid; place-items: center; }
.nvcl-ck input:checked + span { background: var(--accent); border-color: var(--accent); }
.nvcl-ck input:checked + span::after { content: ''; width: 8px; height: 4px; border: 2px solid var(--bg); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.nvcl-ck input:indeterminate + span { background: var(--accent); border-color: var(--accent); }
.nvcl-ck input:indeterminate + span::after { content: ''; width: 8px; height: 2px; background: var(--bg); border-radius: 2px; }
.nvcl-ck input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
th .nvcl-ck-all { vertical-align: middle; margin-right: 8px; }
tr.nvcl-sel > td { background: rgba(var(--nv-accent-rgb), .07) !important; }
.nvcl-mcard.nvcl-sel, .nvcl-card.nvcl-sel { box-shadow: 0 0 0 1.5px var(--accent) inset; }

/* ── 9 · Selector de vista ─────────────────────────────────────── */
.nvcl-vista { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--bg3); border: 1px solid var(--border); flex-shrink: 0; }
.nvcl-vista button { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text3); font: 700 12px/1 var(--nv-font-ui, inherit); cursor: pointer; transition: background .15s, color .15s; }
.nvcl-vista button.on { background: var(--bg4); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.nvcl-sec.nvcl-modo-tarjetas > .table-wrap, .nvcl-sec.nvcl-modo-tarjetas > .clients-mobile-only { display: none !important; }
.nvcl-sec.nvcl-vacio > .table-wrap, .nvcl-sec.nvcl-vacio > .clients-mobile-only, .nvcl-sec.nvcl-vacio > .nvcl-cards { display: none !important; }

.nvcl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nvcl-card { position: relative; display: flex; flex-direction: column; border-radius: var(--nvcl-r); background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--nvcl-pc, var(--accent)); overflow: hidden; animation: nvclIn .22s var(--nvcl-ease) both; transition: border-color .15s, transform .15s var(--nvcl-ease); }
.nvcl-card:hover { border-color: var(--border2); border-left-color: var(--nvcl-pc, var(--accent)); }
.nvcl-card header { display: flex; align-items: center; gap: 9px; padding: 12px 12px 8px; min-width: 0; }
.nvcl-card header .nvcl-nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.nvcl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; padding: 4px 14px 12px; font-size: 12px; }
.nvcl-card dt { color: var(--text3); font-weight: 700; }
.nvcl-card dd { margin: 0; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); font-variant-numeric: tabular-nums; }
.nvcl-card dd em { color: var(--text3); }
.nvcl-card footer { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); margin-top: auto; }
.nvcl-card footer button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 46px; border: 0; background: transparent; color: var(--text2); font: 700 10px/1 var(--nv-font-ui, inherit); cursor: pointer; transition: background .15s, color .15s; }
.nvcl-card footer button + button { border-left: 1px solid var(--border); }
.nvcl-card footer button:hover { background: var(--bg3); color: var(--accent2); }
.nvcl-card footer button.d:hover { color: var(--red, #ff6b7a); }

/* ── 57 · Estados vacíos ───────────────────────────────────────── */
.nvcl-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 18px; border-radius: var(--nvcl-r); border: 1px dashed var(--border2); background: var(--bg2); animation: nvclIn .25s var(--nvcl-ease) both; }
.nvcl-empty-i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; margin-bottom: 6px; color: var(--nvcl-pc, var(--accent2)); background: rgba(var(--nvcl-pc-rgb, var(--nv-accent-rgb)), .12); border: 1px solid rgba(var(--nvcl-pc-rgb, var(--nv-accent-rgb)), .25); }
.nvcl-empty b { font-size: 15px; color: var(--text); font-family: var(--nv-font-display, inherit); }
.nvcl-empty p { margin: 0; max-width: 380px; font-size: 12.5px; line-height: 1.5; color: var(--text3); }
.nvcl-empty p b { font-size: inherit; color: var(--text2); font-family: inherit; }
.nvcl-empty-a { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.nvcl-empty-host { margin-bottom: 12px; }
.nvcl-span { grid-column: 1 / -1; }

/* ── 58 · Esqueletos ───────────────────────────────────────────── */
.nvcl-sk-wrap { display: grid; gap: 10px; }
.nvcl-sk-grid { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.nvcl-sk-stat { grid-column: 1 / -1; }
.nvcl-sk-wrap.nvcl-sk-stat { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.nvcl-sk { position: relative; overflow: hidden; border-radius: var(--nvcl-r); background: var(--bg2); border: 1px solid var(--border); }
.nvcl-sk-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; min-height: 130px; }
.nvcl-sk-stat { display: flex; flex-direction: column; gap: 12px; padding: 18px; min-height: 96px; }
.nvcl-sk-row { display: flex; align-items: center; gap: 12px; padding: 14px; }
.nvcl-sk-row > span { flex: 1; display: grid; gap: 8px; }
.nvcl-sk-b { display: block; height: 10px; border-radius: 6px; background: var(--bg4); }
.nvcl-sk-b.r { width: 52px; height: 52px; border-radius: 15px; }
.nvcl-sk-b.c { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.nvcl-sk-b.big { height: 22px; }
.nvcl-sk-b.w20 { width: 20%; } .nvcl-sk-b.w30 { width: 30%; } .nvcl-sk-b.w40 { width: 40%; } .nvcl-sk-b.w50 { width: 50%; } .nvcl-sk-b.w60 { width: 60%; } .nvcl-sk-b.w70 { width: 70%; }
.nvcl-sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.05), transparent); animation: nvclShimmer 1.2s ease-in-out infinite; }
@keyframes nvclShimmer { to { transform: translateX(100%); } }

/* ── 5 · Barra flotante de lote ────────────────────────────────── */
.nvcl-lote { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 950; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--border2); box-shadow: 0 18px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(var(--nv-accent-rgb), .15); transform: translate(-50%, 140%); opacity: 0; transition: transform .24s var(--nvcl-ease), opacity .2s; max-width: calc(100vw - 24px); }
.nvcl-lote.show { transform: translate(-50%, 0); opacity: 1; }
.nvcl-lote-n { padding: 0 10px 0 8px; font-size: 12.5px; color: var(--text2); white-space: nowrap; }
.nvcl-lote-n b { color: var(--accent2); font-family: var(--nv-font-num, inherit); font-size: 14px; }
.nvcl-lote button { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: var(--text); font: 700 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.nvcl-lote button:hover { background: var(--bg4); color: var(--accent2); }
.nvcl-lote button.x { width: 38px; padding: 0; justify-content: center; color: var(--text3); }

/* ── Ventana propia ────────────────────────────────────────────── */
.nvcl-mov { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(4,4,12,.62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: nvclFade .18s ease both; }
.nvcl-mbox { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 18px; background: var(--bg2); border: 1px solid var(--border2); box-shadow: var(--shadow-lg, 0 24px 64px rgba(0,0,0,.55)); animation: nvclPop .22s var(--nvcl-ease) both; overflow: hidden; }
.nvcl-mbox > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.nvcl-mbox > header b { font: 800 15px/1.2 var(--nv-font-display, inherit); color: var(--text); }
.nvcl-mbody { padding: 4px 16px 16px; overflow: auto; }
.nvcl-mbody > .nvcl-lbl:first-child { margin-top: 14px; }
.nvcl-mbox > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--bg); }
.nvcl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nvcl-chips button { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text2); font: 700 12px/1 var(--nv-font-ui, inherit); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.nvcl-chips button.on { background: rgba(var(--nv-accent-rgb), .16); border-color: var(--accent); color: var(--text); }
.nvcl-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.nvcl-list li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--nvcl-pc, var(--accent)); font-size: 12.5px; }
.nvcl-li-n { flex: 1; min-width: 0; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvcl-li-n small { display: block; font-weight: 600; color: var(--text3); font-size: 11px; margin-top: 1px; }
.nvcl-li-d { color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 12px; }
.nvcl-li-d b { color: var(--green, #3ddc97); }
.nvcl-done { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.28); color: var(--green, #3ddc97); }
.nvcl-done b { color: var(--text); font-size: 14px; }
.nvcl-ta { width: 100%; box-sizing: border-box; margin-top: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border2); background: var(--bg); color: var(--text); font: 500 13px/1.5 var(--nv-font-ui, inherit); resize: vertical; }
.nvcl-ta:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--nv-accent-rgb), .2); }
.nvcl-step { margin-top: 14px; padding: 12px; border-radius: 13px; background: var(--bg3); border: 1px solid var(--border); }
.nvcl-step-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; }
.nvcl-step-h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvcl-step-n { font-size: 11px; font-weight: 800; color: var(--text3); font-family: var(--nv-font-num, inherit); }
.nvcl-bub { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; color: var(--text2); padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--bg); border: 1px solid var(--border); max-height: 170px; overflow: auto; }
.nvcl-bub b { color: var(--text); }

/* ── 23 · Recibo ───────────────────────────────────────────────── */
.nvcl-mov-rec .nvcl-mbox { max-width: 440px; }
.nvcl-rec { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.nvcl-rec canvas { display: block; width: 100%; height: auto; aspect-ratio: 720 / 960; }
.nvcl-rec-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.nvcl-rec-f label { display: grid; gap: 5px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); }
.nvcl-rec-f input { height: 38px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--border2); background: var(--bg); color: var(--text); font: 700 14px/1 var(--nv-font-num, inherit); }
.nvcl-rec-f input:focus { outline: none; border-color: var(--accent); }
.nvcl-rec-btn { width: 100%; margin-top: 2px; }

/* ── 56 · Toasts (Deshacer) ────────────────────────────────────── */
.nvcl-toasts { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 20000; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.nvcl-toast { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--bg4); color: var(--text); border: 1px solid var(--border2); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: 13px; font-weight: 600; overflow: hidden; animation: nvclUp .22s var(--nvcl-ease) both; max-width: 100%; }
.nvcl-toast.out { animation: nvclDown .18s ease both; }
.nvcl-toast-t { min-width: 0; line-height: 1.35; }
.nvcl-toast-b { height: 34px; padding: 0 12px; border-radius: 10px; border: 0; background: rgba(var(--nv-accent-rgb), .18); color: var(--accent2); font: 800 12.5px/1 var(--nv-font-ui, inherit); cursor: pointer; white-space: nowrap; }
.nvcl-toast-b:hover { background: rgba(var(--nv-accent-rgb), .3); }
.nvcl-toast-x { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: var(--text3); cursor: pointer; flex-shrink: 0; }
.nvcl-toast-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; animation: nvclBar linear both; }
.nvcl-toast.ok .nvcl-toast-bar { background: var(--green, #3ddc97); }
.nvcl-toast.undo { border-color: rgba(var(--nv-accent-rgb), .35); }
@keyframes nvclBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ── 1 · Ficha del cliente ─────────────────────────────────────── */
.nvcl-ficha-scrim { position: fixed; inset: 0; z-index: 940; background: rgba(4,4,12,.45); opacity: 0; pointer-events: none; transition: opacity .2s; }
.nvcl-ficha-scrim.open { opacity: 1; pointer-events: auto; }
.nvcl-ficha { position: fixed; top: 0; right: 0; bottom: 0; z-index: 945; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--bg2); border-left: 1px solid var(--border2); box-shadow: -24px 0 60px rgba(0,0,0,.45); transform: translateX(104%); transition: transform .26s var(--nvcl-ease); visibility: hidden; }
.nvcl-ficha.open { transform: none; visibility: visible; }
.nvcl-fh { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(var(--nvcl-pc-rgb, var(--nv-accent-rgb)), .1), transparent); }
.nvcl-fh-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.nvcl-fh-t small { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.nvcl-fh-t b { font: 800 18px/1.2 var(--nv-font-display, inherit); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nvcl-fh-t span { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nvcl-fb { flex: 1; overflow: auto; padding: 4px 16px 28px; overscroll-behavior: contain; }
.nvcl-fct { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nvcl-cbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border2); background: var(--bg3); color: var(--text); font: 700 12px/1 var(--nv-font-ui, inherit); cursor: pointer; text-decoration: none; transition: border-color .15s, background .15s; }
.nvcl-cbtn:hover { background: var(--bg4); border-color: var(--accent); }
.nvcl-cbtn.whatsapp svg { color: #25d366; } .nvcl-cbtn.telegram svg { color: #29b6f6; } .nvcl-cbtn.email svg { color: var(--blue, #5cc8ff); }
.nvcl-fkpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.nvcl-fkpi > div { padding: 10px 12px; border-radius: 12px; background: var(--bg3); border: 1px solid var(--border); min-width: 0; }
.nvcl-fkpi small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcl-fkpi b { display: block; margin-top: 4px; font: 800 15px/1.1 var(--nv-font-num, inherit); color: var(--text); }
.nvcl-fperf { display: grid; gap: 10px; }
.nvcl-fp { border-radius: 14px; background: var(--bg3); border: 1px solid var(--border); border-left: 3px solid var(--nvcl-pc, var(--accent)); padding: 12px; animation: nvclIn .22s var(--nvcl-ease) both; }
.nvcl-fp-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nvcl-fp dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 10px 0 0; font-size: 12px; }
.nvcl-fp dt { color: var(--text3); font-weight: 700; }
.nvcl-fp dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; color: var(--text2); font-variant-numeric: tabular-nums; }
.nvcl-fp dd em { color: var(--text3); }
.nvcl-fp-a { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.nvcl-fp-a button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; height: 32px; padding: 0 6px; border-radius: 9px; border: 1px solid var(--border2); background: var(--bg2); color: var(--text); font: 700 11.5px/1 var(--nv-font-ui, inherit); cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.nvcl-fp-a button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent2); }
.nvcl-fp-a button.d:hover { border-color: var(--red, #ff6b7a); color: var(--red, #ff6b7a); }
.nvcl-fp-a button:disabled { opacity: .5; cursor: default; }
.nvcl-fp.st-caida { border-color: rgba(255,107,122,.35); border-left-color: var(--nvcl-pc); }
.nvcl-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: grid; gap: 10px; }
.nvcl-tl li { position: relative; font-size: 12.5px; color: var(--text); line-height: 1.4; }
.nvcl-tl li::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--text3); }
.nvcl-tl li.ok::before { border-color: var(--green, #3ddc97); }
.nvcl-tl li.cash::before { border-color: var(--amber, #f7b955); }
.nvcl-tl.bad li::before { border-color: var(--red, #ff6b7a); }
.nvcl-tl small { display: block; color: var(--text3); font-size: 11px; margin-top: 1px; }

/* ── 18 · Cuentas en pausa ─────────────────────────────────────── */
.nvcl-pausada > td { opacity: .5; filter: grayscale(.8); transition: opacity .2s, filter .2s; }
.nvcl-pausada > td:last-child { opacity: 1; filter: none; }
div.nvcl-pausada > :not(:last-child) { opacity: .55; filter: grayscale(.8); transition: opacity .2s; }
div.nvcl-pausada:hover > :not(:last-child) { opacity: .8; }
.nvcl-pbadge { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; padding: 2px 7px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .02em; color: var(--text2); background: var(--bg4); border: 1px solid var(--border2); white-space: nowrap; vertical-align: middle; }
.tbl-btn.nvcl-pbtn { background: rgba(var(--nv-accent-rgb), .1); color: var(--text2); border: 0; }
.tbl-btn.nvcl-pbtn span { display: none; }
.tbl-btn.nvcl-pbtn:hover { color: var(--text); background: rgba(var(--nv-accent-rgb), .18); }
.tbl-btn.nvcl-pbtn.on { color: var(--amber, #f7b955); background: rgba(247,185,85,.12); }
.nvcl-pbtn-m { height: 32px; display: flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-right: 1px solid var(--border); background: var(--bg3); color: var(--text2); font-size: 11px; font-weight: 600; cursor: pointer; }
.nvcl-pbtn-m.on { color: var(--amber, #f7b955); }

/* ── 11 · Mapa de ocupación ────────────────────────────────────── */
.nvcl-mapa { margin: 0 0 16px; border-radius: var(--nvcl-r); background: var(--bg2); border: 1px solid var(--border); border-top: 3px solid var(--nvcl-pc, var(--accent)); overflow: hidden; }
.nvcl-mapa > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; }
.nvcl-mapa > header > button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text); cursor: pointer; padding: 4px; font: inherit; border-radius: 8px; }
.nvcl-mapa > header > button b { font: 800 13.5px/1 var(--nv-font-display, inherit); }
.nvcl-mpct { font-size: 11px; font-weight: 800; color: var(--text3); font-family: var(--nv-font-num, inherit); }
.nvcl-chev { display: inline-grid; color: var(--text3); transition: transform .2s var(--nvcl-ease); }
.nvcl-mapa.cerrado .nvcl-chev { transform: rotate(-90deg); }
.nvcl-leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-left: auto; font-size: 11px; color: var(--text3); }
.nvcl-leg span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nvcl-leg b { color: var(--text2); font-family: var(--nv-font-num, inherit); }
.nvcl-leg i { width: 10px; height: 10px; border-radius: 3px; }
.nvcl-mbody2 { display: grid; gap: 8px; padding: 2px 12px 14px; }
.nvcl-mrow { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; align-items: center; gap: 12px; }
.nvcl-mrow.pausa .nvcl-mlab { color: var(--text3); }
.nvcl-mlab { font-size: 12px; font-weight: 700; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nvcl-mlab .nvcl-pbadge { margin: 0 0 0 4px; }
.nvcl-sqs { display: flex; flex-wrap: wrap; gap: 5px; }
.nvcl-sq { width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid transparent; font: 800 11px/1 var(--nv-font-num, inherit); color: var(--bg); cursor: pointer; transition: transform .15s var(--nvcl-ease), box-shadow .15s; padding: 0; }
.nvcl-sq:hover { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.nvcl-sq.ocupado, .nvcl-leg .ocupado i { background: var(--nvcl-pc, var(--accent)); }
.nvcl-sq.ocupado { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.nvcl-sq.libre, .nvcl-leg .libre i { background: transparent; border: 1.5px dashed var(--border2); }
.nvcl-sq.libre { color: var(--text3); }
.nvcl-sq.libre:hover { border-color: var(--nvcl-pc, var(--accent)); color: var(--text); }
.nvcl-sq.pronto, .nvcl-leg .pronto i { background: var(--amber, #f7b955); }
.nvcl-sq.caida, .nvcl-leg .caida i { background: var(--red, #ff6b7a); }
.nvcl-sq.pausa, .nvcl-leg .pausa i { background: repeating-linear-gradient(135deg, var(--bg4) 0 4px, var(--border2) 4px 8px); }
.nvcl-sq.pausa { color: var(--text3); }
.nvcl-mapa .nvcl-empty { margin: 0 12px 12px; padding: 22px 14px; }

/* ── Animaciones ───────────────────────────────────────────────── */
@keyframes nvclIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes nvclFade { from { opacity: 0; } }
@keyframes nvclPop { from { opacity: 0; transform: scale(.96) translateY(6px); } }
@keyframes nvclUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes nvclDown { to { opacity: 0; transform: translateY(8px); } }

/* ── Móvil ─────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nvcl-vista button span { display: none; }
  .nvcl-vista button { padding: 0 9px; }
  .nvcl-cards { grid-template-columns: 1fr; }
  .nvcl-lote { left: 12px; right: 12px; transform: translateY(140%); flex-wrap: wrap; justify-content: space-between; }
  .nvcl-lote.show { transform: none; }
  .nvcl-lote { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2px; }
  .nvcl-lote-n { order: 0; grid-column: 1 / 4; padding: 4px 8px 0; align-self: center; }
  .nvcl-lote button { order: 2; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; height: 52px; padding: 0 2px; font-size: 10px; white-space: normal; text-align: center; line-height: 1.1; }
  .nvcl-lote button.x { order: 1; grid-column: 4; justify-self: end; width: 34px; height: 34px; }

  .nvcl-toasts { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  .nvcl-mrow { grid-template-columns: 1fr; gap: 6px; }
  .nvcl-leg { margin-left: 0; }
  .nvcl-sq { width: 34px; height: 34px; }
  .nvcl-fp-a { grid-template-columns: repeat(2, 1fr); }
  .nvcl-mov { align-items: flex-end; padding: 0; }
  .nvcl-mbox { max-width: none !important; border-radius: 18px 18px 0 0; max-height: 92vh; }
  .nvcl-fkpi b { font-size: 13px; }
}
@media (max-width: 768px) {
  .cli-action-bar.nvcl-bar { grid-template-columns: auto 1fr !important; }
  .cli-action-bar.nvcl-bar .cli-search-wrap { grid-column: 1 / -1; width: 100%; }
  .cli-action-bar.nvcl-bar .cli-search-wrap input.search-bar { width: 100% !important; max-width: none !important; }
  .cli-action-bar.nvcl-bar .nvcl-vista { height: 100%; box-sizing: border-box; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .nvcl-card, .nvcl-empty, .nvcl-fp, .nvcl-toast, .nvcl-mov, .nvcl-mbox { animation: none !important; }
  .nvcl-ficha, .nvcl-lote, .nvcl-sq, .nvcl-chev { transition: none !important; }
  .nvcl-sk::after { animation: none; }
  .nvcl-toast-bar { animation-name: nvclBar !important; }
}

/* Integración v5.1: con la barra inferior del panel (#nvp-bnav) en móvil,
   la barra de selección y los toasts suben para no taparla */
@media (max-width: 768px) {
  html.nvp-has-bnav .nvcl-lote { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  html.nvp-has-bnav .nvcl-lote:not(.show) { pointer-events: none; visibility: hidden; transition: transform .24s var(--nvcl-ease), opacity .2s, visibility 0s linear .24s; }
  html.nvp-has-bnav .nvcl-toasts { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  html.nvp-has-bnav body:has(.nvcl-lote.show) .nvcl-toasts { bottom: calc(200px + env(safe-area-inset-bottom, 0px)); }
}

/* v5.1: pestañas de la página de plataforma también en PC (main.css solo las
   estilizaba hasta 768 px y en PC salían como texto apilado) */
html.nv-on .tabs { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
html.nv-on .tab { padding: 10px 18px; font-size: 13px; font-weight: 600; color: var(--text3); cursor: pointer; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .18s, border-color .18s; }
html.nv-on .tab:hover { color: var(--text2); }
html.nv-on .tab.active { color: var(--accent2); border-bottom-color: var(--accent); font-weight: 700; }
