/* Pappitas Cash — módulo del panel (#page-cash) */
#cash-root { max-width: 1200px; }
.pc-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-h h1 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; margin: 0; color: var(--text-primary, #17112b); }
.pc-ins { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: #0b0618; color: #86efac; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; }
.pc-ins i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.pc-sub { margin: 6px 0 0; color: var(--text-secondary, #6b6585); font-size: 15px; }
.pc-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.pc-left { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pc-left .pc-stats { margin-top: 0; }
.pc-hero { border-radius: 26px; padding: 26px; color: #fff; position: relative; overflow: hidden; background: radial-gradient(140% 140% at 100% 0%, #3b0764 0%, #14092b 55%, #0b0618 100%); box-shadow: 0 24px 50px -30px rgba(20,9,43,.7); }
.pc-k { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: rgba(255,255,255,.55); }
.pc-amt { font-size: 60px; font-weight: 800; letter-spacing: -.045em; color: #4ade80; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-amt small { font-size: 21px; color: rgba(255,255,255,.55); font-weight: 700; letter-spacing: 0; margin-left: 8px; }
.pc-prog { margin-top: 20px; }
.pc-prog-t { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.85); }
.pc-prog-t b { color: #86efac; }
.pc-bar { height: 12px; border-radius: 12px; background: rgba(255,255,255,.12); margin-top: 10px; overflow: hidden; }
.pc-bar i { display: block; height: 100%; border-radius: 12px; background: linear-gradient(90deg, #22c55e, #86efac); box-shadow: 0 0 18px rgba(74,222,128,.6); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.pc-hb { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.pc-btn { height: 50px; padding: 0 22px; border-radius: 15px; border: 0; font: inherit; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pc-btn:active { transform: scale(.98); }
.pc-bw { background: #fff; color: #14092b; }
.pc-bg { background: rgba(255,255,255,.12); color: #fff; }
.pc-bg[disabled] { color: rgba(255,255,255,.45); cursor: not-allowed; transform: none; }
.pc-ok { margin-top: 16px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; color: #86efac; }
.pc-ok.no { color: #fcd34d; }
.pc-ok i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.pc-box { border-radius: 26px; background: var(--bg-card, #fff); padding: 22px; box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 18px 40px -30px rgba(40,20,90,.4); border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 6%, transparent); }
.pc-box h3 { font-size: 16px; font-weight: 800; margin: 0; color: var(--text-primary, #17112b); }
.pc-box > p { font-size: 13px; color: var(--text-secondary, #6b6585); margin: 3px 0 0; }
.pc-cardwrap { margin-top: 14px; display: flex; justify-content: center; }
.pc-cardwrap canvas { width: 100%; max-width: 260px; aspect-ratio: 9 / 16; height: auto; border-radius: 22px; display: block; box-shadow: 0 20px 40px -24px rgba(40,20,90,.5); cursor: pointer; background: #f5f3ff; }
.pc-sh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.pc-so { height: 46px; border-radius: 14px; border: 0; display: flex; align-items: center; justify-content: center; font: inherit; font-size: 13px; font-weight: 800; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pc-so:active { transform: scale(.97); }
.pc-row-btns { display: flex; gap: 8px; margin-top: 8px; }
.pc-row-btns button { flex: 1; height: 42px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 12%, transparent); background: transparent; color: var(--text-primary, #17112b); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.pc-st { border-radius: 22px; background: var(--bg-card, #fff); padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 6%, transparent); box-shadow: 0 14px 30px -26px rgba(40,20,90,.4); }
.pc-st span { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--text-muted, #9a94b3); text-transform: uppercase; }
.pc-st b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; color: var(--text-primary, #17112b); }
.pc-st em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--text-muted, #9a94b3); }
.pc-row2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 20px; }
.pc-ref { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--text-primary, #111827) 6%, transparent); }
.pc-ref:first-of-type { border-top: 0; }
.pc-av { width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; flex: none; }
.pc-ref .n { flex: 1; min-width: 0; }
.pc-ref .n b { display: block; font-size: 14px; color: var(--text-primary, #17112b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-ref .n span { font-size: 12.5px; color: var(--text-muted, #9a94b3); font-weight: 600; }
.pc-pill { height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.pc-p1 { background: #dcfce7; color: #15803d; } .pc-p2 { background: #fef3c7; color: #a16207; } .pc-p3 { background: #f1f5f9; color: #94a3b8; }
.pc-empty { padding: 18px 0 6px; font-size: 14px; color: var(--text-secondary, #6b6585); }
.pc-step { display: flex; gap: 14px; padding: 10px 0; }
.pc-step i { width: 32px; height: 32px; border-radius: 11px; background: color-mix(in srgb, #7c3aed 12%, transparent); color: #7c3aed; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.pc-step b { display: block; font-size: 14px; color: var(--text-primary, #17112b); }
.pc-step span { font-size: 13px; color: var(--text-secondary, #6b6585); line-height: 1.4; }
.pc-plans { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pc-plan { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 10%, transparent); }
.pc-plan b { font-size: 14px; color: var(--text-primary, #17112b); }
.pc-plan span { font-size: 13px; color: var(--text-secondary, #6b6585); font-weight: 700; }
.pc-plan button { height: 36px; padding: 0 14px; border-radius: 11px; border: 0; background: #16a34a; color: #fff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
.pc-plan button[disabled] { background: color-mix(in srgb, var(--text-primary, #111827) 10%, transparent); color: var(--text-muted, #9a94b3); cursor: not-allowed; }
.pc-master { margin-top: 20px; }
.pc-master .f { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 14px; align-items: end; }
.pc-master label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-secondary, #6b6585); }
.pc-master input { height: 46px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 14%, transparent); background: var(--bg-card, #fff); color: var(--text-primary, #17112b); padding: 0 12px; font: inherit; font-size: 16px; font-weight: 700; min-width: 0; }
.pc-master .sw { flex-direction: row; align-items: center; gap: 8px; height: 46px; }
.pc-master .sw input { width: 20px; height: 20px; }
/* grabando video */
.pc-rec { position: fixed; inset: 0; z-index: 3000; background: rgba(15,10,30,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pc-rec-in { width: 100%; max-width: 340px; border-radius: 26px; background: var(--bg-card, #fff); padding: 18px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.pc-rec-in canvas { width: 100%; aspect-ratio: 9 / 16; height: auto; border-radius: 18px; display: block; }
.pc-rec-in b { display: block; margin-top: 14px; font-size: 15px; color: var(--text-primary, #17112b); }
.pc-rec-bar { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--text-primary, #111827) 8%, transparent); margin-top: 10px; overflow: hidden; }
.pc-rec-bar i { display: block; height: 100%; width: 0; background: #16a34a; border-radius: 8px; }
.pc-rec-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pc-rec-act button { height: 46px; border-radius: 14px; border: 0; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.pc-rec-act .a { background: #16a34a; color: #fff; }
.pc-rec-act .b { background: color-mix(in srgb, var(--text-primary, #111827) 8%, transparent); color: var(--text-primary, #17112b); }
@media (max-width: 900px) {
  .pc-grid, .pc-row2 { grid-template-columns: 1fr; }
  .pc-master .f { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pc-h h1 { font-size: 26px; }
  .pc-hero { padding: 22px; border-radius: 24px; }
  .pc-amt { font-size: 50px; }
  .pc-hb .pc-btn { flex: 1; padding: 0 10px; font-size: 14px; }
  .pc-stats { gap: 8px; }
  .pc-st { padding: 12px; border-radius: 18px; }
  .pc-st b { font-size: 22px; }
  .pc-st span { font-size: 10px; }
  .pc-st em { display: none; }
  .pc-sh { grid-template-columns: repeat(2, 1fr); }
}

/* KPI en flujo: Registrados → En espera → Activos */
.pc-flow { display: flex; align-items: center; gap: 6px; padding: 16px 18px; border-radius: 22px; background: var(--bg-card, #fff); border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 6%, transparent); box-shadow: 0 14px 30px -26px rgba(40,20,90,.4); }
.pc-fl { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.pc-fi { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.pc-fi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc-fl b { font-size: 26px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; color: var(--text-primary, #17112b); font-variant-numeric: tabular-nums; }
.pc-fl > span:last-child { font-size: 12.5px; font-weight: 700; color: var(--text-muted, #9a94b3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-arr { width: 18px; height: 18px; flex: none; opacity: .35; background: currentColor; color: var(--text-primary, #17112b); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.pc-ok.no { color: #fff; }
.pc-ok.no i { background: #fcd34d; }
/* opciones de compartir en computadora */
.pc-rec-more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.pc-rec-more[hidden] { display: none; }
.pc-rec-more button { height: 42px; border-radius: 13px; border: 0; color: #fff; font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.pc-rec-more button.lt { background: color-mix(in srgb, var(--text-primary, #111827) 8%, transparent); color: var(--text-primary, #17112b); }
/* MASTER: referidos de la plataforma */
.pc-tbl { margin-top: 12px; display: flex; flex-direction: column; }
.pc-tr { display: grid; grid-template-columns: 1.3fr 1.3fr .7fr .8fr; gap: 12px; align-items: center; padding: 11px 4px; border-top: 1px solid color-mix(in srgb, var(--text-primary, #111827) 6%, transparent); font-size: 13.5px; color: var(--text-primary, #17112b); }
.pc-tr b { font-weight: 800; }
.pc-tr em { display: block; font-style: normal; font-size: 12px; color: var(--text-muted, #9a94b3); font-weight: 600; }
.pc-th { border-top: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted, #9a94b3); }
@media (max-width: 640px) {
  .pc-flow { padding: 14px 12px; gap: 2px; }
  .pc-fl { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 6px; }
  .pc-fi { grid-row: auto; width: 36px; height: 36px; border-radius: 12px; }
  .pc-fl b { font-size: 22px; }
  .pc-fl > span:last-child { font-size: 11px; }
  .pc-arr { width: 14px; height: 14px; }
  .pc-th { display: none; }
  .pc-tr { grid-template-columns: 1fr 1fr; }
}

/* KPIs limpios: punto de color + número, sin íconos */
.pc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 22px; background: var(--bg-card, #fff); border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 6%, transparent); box-shadow: 0 14px 30px -26px rgba(40,20,90,.4); }
.pc-kp { padding: 16px 20px; min-width: 0; }
.pc-kp + .pc-kp { border-left: 1px solid color-mix(in srgb, var(--text-primary, #111827) 7%, transparent); }
.pc-kp span { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-secondary, #6b6585); }
.pc-kp span i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pc-kp b { display: block; margin-top: 6px; font-size: 32px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--text-primary, #17112b); font-variant-numeric: tabular-nums; }
.pc-kp b.g { color: #16a34a; }
.pc-kp em { display: block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-muted, #9a94b3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* elegir la tienda de la tarjeta */
.pc-stsel { margin-top: 14px; }
.pc-stsel > span { font-size: 12px; font-weight: 700; color: var(--text-muted, #9a94b3); }
.pc-stsel-l { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.pc-stchip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text-primary, #111827) 11%, transparent); background: transparent; color: var(--text-secondary, #6b6585); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 100%; -webkit-tap-highlight-color: transparent; }
.pc-stchip img, .pc-stchip i { width: 22px; height: 22px; border-radius: 50%; object-fit: contain; flex: none; font-style: normal; color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pc-stchip.on { border-color: #16a34a; color: var(--text-primary, #17112b); font-weight: 800; box-shadow: inset 0 0 0 1px #16a34a; }
.pc-rec-note { min-height: 18px; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #16a34a; }
.pc-rec-act button[disabled] { opacity: .85; cursor: default; }
@media (max-width: 640px) {
  .pc-kp { padding: 13px 12px; }
  .pc-kp b { font-size: 24px; }
  .pc-kp span { font-size: 11px; }
  .pc-kp em { font-size: 10.5px; }
}

/* Móvil: las reglas en una columna, sin desbordes */
.pc-master .f > label { min-width: 0; }
@media (max-width: 640px) {
  .pc-box { padding: 18px; border-radius: 22px; }
  .pc-master .f { grid-template-columns: 1fr; gap: 10px; }
  .pc-master label { font-size: 12.5px; }
  .pc-tbl { overflow-x: auto; }
  .pc-tr { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
}
