/* CRPOS — estilos.
 * Medidas, colores y jerarquía tomados de los recursos decodificados con REA del APK
 * de Square POS 7.28 (checkout_*, navigation_bar_*, money_keypad, tab_container).
 * Hoja original: no usa fuentes, íconos ni imágenes de Square. */
:root {
  --ink: #101010; --ink2: #666666; --title: #323A42; --body: #66717A;
  --fill: #F0F0F0; --tabbg: #F2F2F2; --sec: #F2F4F5; --press: #D5D7D9;
  --div: #D5D7D9; --row-div: #E6E6E6; --gray: #909AA1;
  --crit: #CC0023; --ok: #00B23B; --warn: #FF9F40;
  --backdrop: rgba(0, 0, 0, .7);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* teléfono (values/) */
  --row: 56px; --bar: 56px; --head: 64px; --pad: 16px; --nav: 66px;
  --t-display: 44px; --t-display2: 32px; --t-heading: 24px; --t-heading2: 18px;
  --t-body: 16px; --t-body2: 14px; --t-label: 16px; --t-label2: 14px;
  --key: 26px; --tile-abbr: 37px;
}
.app.tab, .tab-ov {
  /* tablet (values-sw600dp/) */
  --row: 64px; --bar: 72px; --head: 72px; --pad: 24px; --nav: 56px;
  --t-display: 48px; --t-display2: 40px; --t-heading: 26px; --t-heading2: 22px;
  --t-body: 18px; --t-body2: 16px; --t-label: 18px; --t-label2: 16px;
  --key: 34px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: #fff; color: var(--ink); font: 400 var(--t-body)/1.4 var(--font); }
body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
input, select { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.f { fill: currentColor; stroke: none; }

/* ---------- Esqueleto: cuerpo + barra de navegación (navigation_bar_container) ---------- */
.app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.nbody { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #fff; }
.navbar { flex: none; display: flex; height: calc(var(--nav) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--div); background: #fff; }
.navbar .ni { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 0 10px; color: var(--ink2); font-size: 10px; font-weight: 500; }
.navbar .ni.on { color: var(--ink); }
.navbar .ni .bdg { position: absolute; transform: translate(12px, -10px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--crit); color: #fff; font-size: 10px; line-height: 16px; text-align: center; }
.navbar .ni .ic { position: relative; display: flex; }
.app.tab .navbar { justify-content: center; }
.app.tab .navbar .ni { flex: 0 1 auto; flex-direction: row; gap: 8px; padding: 0 20px; font-size: 14px; }
.app.tab .navbar .me { margin-left: auto; margin-right: 24px; align-self: center; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; flex: none; }
.avatar.lg { width: 48px; height: 48px; font-size: 18px; }
.offline { flex: none; padding: 8px var(--pad); background: var(--sec); color: var(--title); font-size: var(--t-body2); text-align: center; border-bottom: 1px solid var(--div); }

/* ---------- Proceso de pago ---------- */
.co { position: absolute; inset: 0; display: flex; flex-direction: column; }
.co.tabl { flex-direction: row; }
.co-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.co-content { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.vdiv { width: 1px; background: var(--div); flex: none; }
.cartp { width: 320px; flex: none; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.co-buttons { flex: none; background: #fff; padding: 8px var(--pad) var(--pad); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--row-div); }

/* Segmentado Teclado / Surtido / Favoritos (tab_container: 40dp, radio 7/6, relleno 2) */
.segw { flex: none; padding: 12px 16px; display: flex; justify-content: center; }
.seg { display: flex; width: 100%; max-width: 500px; height: 40px; padding: 2px; border-radius: 7px; background: var(--tabbg); }
.seg button { flex: 1; border-radius: 6px; color: var(--body); font-size: var(--t-label2); font-weight: 500; text-align: center; transition: background .15s, color .15s; }
.seg button.on { background: #fff; color: var(--title); box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 0 1px rgba(0, 0, 0, .12); }

/* Botones (checkout_button: alto = fila, título label medium, subtítulo body_2) */
.cb { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: var(--row); padding: 0 var(--pad); border-radius: 6px; font-size: var(--t-label); font-weight: 500; line-height: 1.2; text-align: center; }
.cb small { font-size: var(--t-body2); font-weight: 400; opacity: .8; margin-top: 2px; }
.cb.pri { background: var(--ink); color: #fff; }
.cb.pri:active { background: #333; }
.cb.sec { background: var(--sec); color: var(--ink); }
.cb.sec:active { background: var(--press); }
.cb.ghost { color: var(--ink); }
.cb.crit { color: var(--crit); background: var(--sec); }
.cb[disabled] { background: var(--sec); color: var(--gray); cursor: default; }
.cbrow { display: flex; gap: 8px; }
.cbrow .cb { flex: 1; }

/* Teclado (money_keypad = amount_field + common_keypad) */
.kp { height: 100%; display: flex; flex-direction: column; }
.kp-amt { flex: none; padding: 8px var(--pad) 0; text-align: right; }
.kp-val { font-size: var(--t-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-val.zero { color: var(--gray); }
.kp-notebtn { flex: none; display: block; width: 100%; padding: 6px var(--pad) 12px; text-align: right; color: var(--ink2); font-size: var(--t-body2); }
.kp-notebtn b { font-weight: 500; color: var(--ink); }
.kp-grid { flex: 1; min-height: 216px; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; border-top: 1px solid var(--row-div); }
.kp-grid button { display: flex; align-items: center; justify-content: center; font-size: var(--key); font-weight: 400; border-right: 1px solid var(--row-div); border-bottom: 1px solid var(--row-div); }
.kp-grid button:nth-child(3n) { border-right: 0; }
.kp-grid button:active { background: var(--fill); }
.kp-grid button.fn { font-size: calc(var(--key) * .8); color: var(--ink); }

/* Filas (checkout_list_row: 56/64, miniatura cuadrada, divisor desde el texto) */
.list { display: flex; flex-direction: column; }
.row { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; min-height: var(--row); padding: 0 var(--pad); text-align: left; }
.row:active, .row.hl { background: var(--fill); }
.row::after { content: ""; position: absolute; left: var(--pad); right: 0; bottom: 0; height: 1px; background: var(--row-div); }
.row.thumbed::after { left: calc(var(--pad) + var(--row) + 16px); }
.row .thumb { width: var(--row); height: var(--row); margin-left: calc(var(--pad) * -1); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: var(--t-heading); font-weight: 600; }
.row .thumb.lt { background: var(--fill); color: var(--ink); }
.row .rt { flex: 1; min-width: 0; font-size: var(--t-body); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rt small { display: block; font-size: var(--t-body2); color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rv { flex: none; font-size: var(--t-body); color: var(--ink2); text-align: right; }
.row .rv.ink { color: var(--ink); }
.row .acc { flex: none; color: var(--gray); display: flex; }
.row .lead { flex: none; display: flex; color: var(--ink); }
.row .acc svg.i { width: 20px; height: 20px; }
.row.crit .rt { color: var(--crit); }
.row.dis { opacity: .45; pointer-events: none; }
.grp { padding: 20px var(--pad) 8px; font-size: var(--t-body2); font-weight: 600; color: var(--ink); }
.rowhead { display: flex; align-items: center; gap: 8px; min-height: var(--row); padding: 0 var(--pad) 0 4px; border-bottom: 1px solid var(--row-div); font-size: var(--t-heading2); font-weight: 600; }
.ib { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink); flex: none; }
.ib:active { background: var(--fill); }

/* Búsqueda */
.search { display: flex; align-items: center; gap: 12px; margin: 0 var(--pad) 8px; padding: 0 12px; height: 48px; border-radius: 6px; background: var(--sec); color: var(--ink2); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: var(--t-body); }
.search input::placeholder { color: var(--ink2); }

/* Favoritos (grid tile: tarjeta con elevación, abreviatura 37 sp, etiqueta 40 dp) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 8px 8px; }
.app.tab .tiles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; padding: 0 16px 16px; }
.tile { display: flex; flex-direction: column; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 3px rgba(0, 0, 0, .22), 0 0 1px rgba(0, 0, 0, .14); }
.tile:active { transform: scale(.98); }
.tile .tp { aspect-ratio: 1 / .78; display: flex; align-items: center; justify-content: center; color: #fff; font-size: var(--tile-abbr); font-weight: 700; letter-spacing: -.01em; }
.tile .tl { height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 4px; color: var(--title); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tl span { overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 48px var(--pad); text-align: center; color: var(--ink2); font-size: var(--t-body); }
.empty b { display: block; color: var(--ink); font-size: var(--t-heading2); font-weight: 600; margin-bottom: 4px; }

/* ---------- Venta actual (cart_header + filas) ---------- */
.cart { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.cart-h { position: relative; flex: none; display: flex; align-items: center; gap: 4px; min-height: var(--head); padding: 0 4px 0 var(--pad); border-bottom: 1px solid var(--row-div); }
.cart-h.x { padding-left: 4px; }
.cart-h h2 { flex: 1; margin: 0; font-size: var(--t-heading2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-h h2 small { display: block; font-size: var(--t-body2); font-weight: 400; color: var(--ink2); }
.cart-b { flex: 1; min-height: 0; overflow: auto; }
.cl { position: relative; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; width: 100%; padding: 14px var(--pad); text-align: left; }
.cl::after { content: ""; position: absolute; left: var(--pad); right: 0; bottom: 0; height: 1px; background: var(--row-div); }
.cl:active { background: var(--fill); }
.cl .n { font-size: var(--t-body); color: var(--ink); }
.cl .n i { font-style: normal; color: var(--ink2); margin-left: 6px; }
.cl .v { font-size: var(--t-body); color: var(--ink); text-align: right; }
.cl .s { grid-column: 1 / -1; font-size: var(--t-body2); color: var(--ink2); margin-top: 2px; }
.tot { padding: 8px 0; }
.tot .tr { display: flex; justify-content: space-between; gap: 12px; padding: 6px var(--pad); font-size: var(--t-body2); color: var(--ink2); }
.tot .tr.big { padding-top: 10px; font-size: var(--t-heading2); font-weight: 600; color: var(--ink); }
.tot .tr.paid { color: var(--ok); }
.cart-f { flex: none; padding: 12px var(--pad) var(--pad); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--row-div); }
.menu { position: absolute; top: calc(var(--head) - 8px); right: 8px; z-index: 5; min-width: 240px; padding: 8px 0; background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, .18), 0 0 1px rgba(0, 0, 0, .2); }
.menu button { display: block; width: 100%; min-height: 48px; padding: 0 16px; white-space: nowrap; font-size: var(--t-body); text-align: left; }
.menu button:active { background: var(--fill); }
.menu button.crit { color: var(--crit); }
.menu-catch { position: fixed; inset: 0; z-index: 4; }

/* Hoja inferior del teléfono (checkout_sheet_container + backdrop 70 %) */
.backdrop { position: absolute; inset: 0; background: var(--backdrop); z-index: 6; }
.sheet { position: absolute; inset: 0; z-index: 7; background: #fff; display: flex; flex-direction: column; }
.sheet.anim { animation: up .22s cubic-bezier(.2, .8, .2, 1); }
.backdrop.anim { animation: fade .22s; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Secciones: Transacciones, Notificaciones, Más ---------- */
.pg { position: absolute; inset: 0; display: flex; flex-direction: column; }
.pg-h { flex: none; display: flex; align-items: center; min-height: var(--bar); padding: 0 var(--pad); border-bottom: 1px solid var(--row-div); }
.pg-h h1 { margin: 0; font-size: var(--t-heading); font-weight: 600; }
.pg-b { flex: 1; min-height: 0; overflow: auto; }
.md { flex: 1; min-height: 0; display: flex; }
.md > .ml { width: 380px; flex: none; overflow: auto; border-right: 1px solid var(--div); }
.md > .mr { flex: 1; min-width: 0; overflow: auto; }
.mecard { display: flex; align-items: center; gap: 16px; padding: 20px var(--pad); border-bottom: 1px solid var(--row-div); }
.mecard div { flex: 1; min-width: 0; }
.mecard b { display: block; font-size: var(--t-heading2); font-weight: 600; }
.mecard small { color: var(--ink2); font-size: var(--t-body2); }
.mecard .cb { width: auto; min-height: 40px; font-size: var(--t-body2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gray); margin-right: 8px; vertical-align: middle; }
.dot.on { background: var(--ok); }

/* ---------- Pantallas superpuestas ---------- */
.ov-bg { position: fixed; inset: 0; z-index: 20; background: #fff; display: flex; }
.ov-bg.center { background: var(--backdrop); align-items: center; justify-content: center; padding: 24px; }
.ov { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #fff; }
.ov-bg.center .ov { flex: none; width: 100%; max-width: 560px; max-height: 100%; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, .3); }
.ov-bg.center .ov.wide { max-width: 820px; height: 100%; }
.ov-bg.anim .ov { animation: up .22s cubic-bezier(.2, .8, .2, 1); }
.ov-bg.center.anim .ov { animation: pop .18s ease-out; }
.ov-bg.center.anim { animation: fade .18s; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.tb { flex: none; display: grid; grid-template-columns: 56px 1fr auto; align-items: center; min-height: var(--bar); padding-right: 8px; border-bottom: 1px solid var(--row-div); }
.tb h1 { margin: 0; text-align: center; font-size: var(--t-heading2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb .ib { margin-left: 4px; }
.tb .end { min-width: 48px; min-height: 48px; padding: 0 8px; font-size: var(--t-label); font-weight: 500; color: var(--ink); text-align: right; }
.tb .end[disabled] { color: var(--gray); }
.tb .sp { width: 48px; }
.ov-b { flex: 1; min-height: 0; overflow: auto; }
.ov-f { flex: none; padding: 12px var(--pad) calc(var(--pad) + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--row-div); }
.sh { padding: 24px var(--pad) 8px; display: flex; justify-content: space-between; align-items: baseline; font-size: var(--t-body); font-weight: 600; }
.sh small { font-size: var(--t-body2); font-weight: 400; color: var(--ink2); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gray); flex: none; position: relative; }
.radio.on { border-color: var(--ink); }
.radio.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.check { width: 22px; height: 22px; border-radius: 4px; border: 2px solid var(--gray); flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.check.on { background: var(--ink); border-color: var(--ink); }
.check svg.i { width: 16px; height: 16px; stroke-width: 3; }
.stepper { display: inline-flex; align-items: center; border-radius: 6px; background: var(--sec); }
.stepper button { width: 48px; height: 44px; font-size: 22px; text-align: center; }
.stepper span { min-width: 40px; text-align: center; font-size: var(--t-body); font-weight: 500; }
.field { display: block; padding: 16px var(--pad) 0; }
.field > span { display: block; margin-bottom: 6px; font-size: var(--t-body2); color: var(--ink2); }
.field input, .field select { width: 100%; height: var(--row); padding: 0 14px; border: 1px solid var(--div); border-radius: 6px; background: #fff; font-size: var(--t-body); outline: 0; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.field input.big { font-size: var(--t-display2); font-weight: 500; text-align: right; }

/* Cobro: forma de pago, efectivo, tarjeta */
.tdh { padding: 32px var(--pad) 24px; text-align: center; border-bottom: 1px solid var(--row-div); }
.tdh .a { font-size: var(--t-display); font-weight: 500; line-height: 1.1; }
.tdh .s { margin-top: 6px; color: var(--ink2); font-size: var(--t-body2); }
.tdh .paidl { margin-top: 10px; font-size: var(--t-body2); color: var(--ok); }
.reader { margin: 36px auto 20px; width: 132px; height: 132px; border-radius: 50%; background: var(--sec); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.reader svg.i { width: 56px; height: 56px; stroke-width: 1.4; }
.reader.spin { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.94); opacity: .7; } }
.cardmsg { text-align: center; padding: 0 var(--pad); }
.cardmsg b { display: block; font-size: var(--t-heading2); font-weight: 600; }
.cardmsg span { display: block; margin-top: 6px; color: var(--ink2); font-size: var(--t-body2); }
.demo-note { margin: 12px var(--pad); padding: 10px 12px; border-radius: 6px; background: var(--sec); color: var(--title); font-size: 13px; text-align: center; }

/* Recibo (receipt_selection_view) */
.rc { max-width: 480px; margin: 0 auto; padding: 40px var(--pad) 24px; text-align: center; }
.rc .okc { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.rc .okc svg.i { width: 32px; height: 32px; stroke-width: 2.4; }
.rc h1 { margin: 0; font-size: var(--t-display2); font-weight: 600; line-height: 1.15; }
.rc .of { margin-top: 6px; color: var(--ink2); font-size: var(--t-body); }
.rc .q { margin: 36px 0 12px; font-size: var(--t-body); font-weight: 500; }
.rc .stack { display: flex; flex-direction: column; gap: 8px; }
.rc .field { padding: 0 0 12px; text-align: left; }
.tab-ov .rc { max-width: 680px; }
.tab-ov .rc .stack, .tab-ov .rc .field, .tab-ov .rc .demo-note { max-width: 432px; margin-left: auto; margin-right: auto; }

/* Inicio de sesión (código de acceso) */
.login { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; overflow: auto; }
.login .mark { width: 56px; height: 56px; border-radius: 12px; }
.login .bn { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--ink2); }
.login h1 { margin: 22px 0 0; font-size: var(--t-heading); font-weight: 600; text-align: center; }
.login .pins { display: flex; gap: 16px; margin: 24px 0 10px; }
.login .pd { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); }
.login .pd.on { background: var(--ink); }
.login .msg { min-height: 22px; font-size: var(--t-body2); color: var(--ink2); }
.login .msg.err { color: var(--crit); }
.login .pad { display: grid; grid-template-columns: repeat(3, 80px); gap: 12px 28px; margin-top: 18px; }
.login .pad button { width: 80px; height: 64px; border-radius: 8px; font-size: 28px; text-align: center; }
.login .pad button:active { background: var(--fill); }

/* Detalle de transacción */
.txd .tdh { border-bottom: 0; padding-bottom: 8px; }
.txd .meta { padding: 0 var(--pad) 16px; text-align: center; color: var(--ink2); font-size: var(--t-body2); border-bottom: 1px solid var(--row-div); }
.txd .acts { padding: 16px var(--pad); }

/* Toast oscuro (snackbar) */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav) + 150px); transform: translate(-50%, 12px); z-index: 60; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#root.tab ~ .toast { bottom: 72px; }

/* ---------- Panel del dueño (admin.js) en clave Square ---------- */
.ov-admin .atabs { display: none; }
.apane { padding: 8px var(--pad) 24px; font-size: var(--t-body2); }
.apane h4 { margin: 24px 0 8px; font-size: var(--t-body); font-weight: 600; }
.apane .muted { color: var(--ink2); }
.apane .kicker { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink2); }
.apane .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 6px; background: var(--sec); font-size: var(--t-body2); font-weight: 500; }
.apane .btn.primary { background: var(--ink); color: #fff; }
.apane .btn.block { display: flex; width: 100%; margin-top: 12px; min-height: var(--row); font-size: var(--t-label); }
.apane .btn[disabled] { color: var(--gray); background: var(--sec); }
.apane .link { color: var(--ink); text-decoration: underline; font-size: var(--t-body2); }
.apane .kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); border-top: 1px solid var(--row-div); border-left: 1px solid var(--row-div); margin-top: 8px; }
.apane .kpi { padding: 14px; border-right: 1px solid var(--row-div); border-bottom: 1px solid var(--row-div); }
.apane .kpi span { display: block; color: var(--ink2); font-size: 13px; }
.apane .kpi b { display: block; margin-top: 4px; font-size: var(--t-heading2); font-weight: 600; }
.apane .tbl { width: 100%; border-collapse: collapse; }
.apane .tbl th { padding: 8px 6px; border-bottom: 1px solid var(--div); color: var(--ink2); font-weight: 500; font-size: 13px; text-align: left; }
.apane .tbl td { padding: 10px 6px; border-bottom: 1px solid var(--row-div); }
.apane .tbl td:last-child, .apane .tbl th:last-child { text-align: right; }
.apane .bar { display: grid; grid-template-columns: 52px 1fr 92px; gap: 8px; align-items: center; padding: 4px 0; }
.apane .bl { color: var(--ink2); font-size: 13px; }
.apane .bt { height: 10px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.apane .bt i { display: block; height: 100%; background: var(--ink); }
.apane .bv { text-align: right; }
.apane .field { padding: 12px 0 0; }
.apane .field label { display: block; margin-bottom: 6px; color: var(--ink2); }
.apane .field input, .apane .newp input, .apane .newp select, .apane .prow input, .apane .prow select, .apane .ask input { height: 48px; padding: 0 12px; border: 1px solid var(--div); border-radius: 6px; background: #fff; font-size: var(--t-body2); outline: 0; min-width: 0; }
.apane .field input { width: 100%; }
.apane input:focus, .apane select:focus { border-color: var(--ink); }
.apane .status { margin: 12px 0 0; font-weight: 500; }
.apane .status.ok { color: var(--ok); }
.apane .status.bad { color: var(--crit); }
.apane .rule { border: 0; border-top: 1px solid var(--row-div); margin: 20px 0; }
.apane .prow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--row-div); }
.apane .prow.off { opacity: .5; }
.apane .prow .pname { flex: 1 1 160px; }
.apane .pvar { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-size: 13px; }
.apane .pvar input { width: 96px; }
@media (max-width: 599px) {
  .apane .prow .pname { flex: 1 1 100%; }
  .apane .pvar { flex: 1 1 calc(50% - 8px); }
  .apane .pvar { min-width: 0; }
  .apane .pvar input { flex: 1; width: 0; }
  .apane .prow .link { margin-left: auto; }
}
.apane .newp { display: grid; grid-template-columns: 1fr; gap: 8px; }
.apane .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.apane .quick button { min-height: 40px; padding: 0 14px; border-radius: 6px; background: var(--sec); font-size: 14px; }
.apane .ins { margin: 8px 0 0; padding-left: 18px; }
.apane .ins li { margin: 6px 0; }
.apane .qa { margin: 10px 0; }
.apane .qa .q { font-weight: 500; }
.apane .qa .a { color: var(--ink2); margin-top: 2px; }
.apane .ask { display: flex; gap: 8px; }
.apane .ask input { flex: 1; }
.app.tab ~ #layer .apane .newp, .tab-ov .apane .newp { grid-template-columns: 2fr 1fr 1fr auto; }

/* Recibo impreso */
.print-receipt { display: none; }
@media print {
  body { overflow: visible; }
  body > *:not(#printArea) { display: none !important; }
  .print-receipt { display: block; width: 72mm; margin: 0 auto; font: 12px/1.35 ui-monospace, Menlo, Consolas, monospace; color: #000; }
  .print-receipt .c { text-align: center; }
  .print-receipt .r { display: flex; justify-content: space-between; gap: 8px; }
  .print-receipt hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
  .print-receipt b { font-weight: 700; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- v4: calce con capturas de Square en el Pixel (REA, 13-oct-2026) ---------- */
.app.phone .kp-amt { text-align: left; padding: 24px var(--pad) 0; }
.app.phone .kp-val { font-size: 56px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.kp-nw { padding: 12px var(--pad) 20px; }
.kp-nw .kp-notebtn { display: inline-block; width: auto; padding: 8px 16px; border: 1px solid var(--div); border-radius: 999px; color: var(--ink); font-size: var(--t-body2); font-weight: 500; text-align: left; }
.app.phone .kp-grid { margin: 0 var(--pad); border: 1px solid var(--div); border-radius: 8px; overflow: hidden; }
.app.phone .kp-grid button { font-size: 28px; font-weight: 500; border-color: var(--div); }
.app.phone .kp-grid button:nth-last-child(-n+3) { border-bottom: 0; }
.app.phone .kp-grid button.fn:last-child { color: var(--gray); }
.app.phone .co-buttons { border-top: 0; padding-top: 12px; }
.cb.pill { border-radius: 999px; background: var(--ink); color: #fff; }
.cb.pill[disabled] { background: var(--fill); color: var(--gray); }
.cb.link { min-height: 36px; color: var(--ink); font-size: var(--t-body2); }
.row .thumb { background: #666; color: #fff; }
.row .thumb svg.i { width: 28px; height: 28px; }
.row .thumb.ab { background: #E5E5E5; color: var(--ink2); font-size: 18px; font-weight: 600; }
.app.phone .search { background: none; margin: 0; border-radius: 0; height: var(--row); border-bottom: 1px solid var(--row-div); padding: 0 var(--pad); }
.newitem { display: block; padding: 20px var(--pad); color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tile { box-shadow: none; background: var(--fill); border-radius: 8px; }
.tile .tp { background: none; color: var(--ink); }
.tile .tl { color: var(--ink); }
.tile.ghost { aspect-ratio: 1 / 1; }
.fav-empty { padding: 32px var(--pad); text-align: center; color: var(--ink2); }
.fav-empty > svg.i { width: 40px; height: 40px; color: var(--ink); }
.fav-empty b { display: block; margin: 12px 0 4px; color: var(--ink); font-size: var(--t-heading2); }
.fav-empty p { margin: 0 auto 24px; max-width: 300px; font-size: var(--t-body2); }
.fav-empty .tiles { padding: 0; }
.app.phone .navbar { border-top: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
.app.phone .navbar .ni { margin: 0 2px; border-radius: 12px; font-size: 10px; line-height: 1.15; text-align: center; padding: 6px 0; }
.app.phone .navbar .ni.on { background: var(--fill); color: var(--ink); }
.app.phone .seg button.on { box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.app.phone .kp-amt { padding-top: 64px; }
.app.phone .kp-nw { padding: 40px var(--pad) 16px; }
.app.phone .kp-nw .kp-notebtn { display: block; width: 100%; text-align: center; border-radius: 6px; padding: 12px; }
.app.phone .kp-grid button { font-size: 22px; }
.app.phone .navbar .ni span:last-child { max-width: 100%; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
/* ---------- v5: medidas en dp sacadas de la comparación REA (compare-web-screenshots) ---------- */
.app.phone .kp { display: flex; flex-direction: column; height: 100%; }
.app.phone .kp-amt { flex: 1; display: flex; align-items: center; padding: 0 var(--pad); }
.app.phone .kp-val { font-size: 72px; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.app.phone .kp-nw { flex: none; padding: 0 var(--pad) 16px; }
.app.phone .kp-nw .kp-notebtn { height: 48px; padding: 0 12px; border-color: #ececec; font-size: 16px; }
.app.phone .kp-grid { flex: none; min-height: 0; grid-auto-rows: 78px; border-color: #ececec; }
.app.phone .kp-grid button { border-color: #ececec; font-size: 24px; font-weight: 500; }
.app.phone .co-buttons { padding: 17px var(--pad) 16px; }
.app.phone .cb.pill { min-height: 56px; border-radius: 999px; font-size: 16px; font-weight: 600; }
.app.phone .cb.pill[disabled] { background: #f0f0f0; color: var(--ink); }
.app.phone .navbar { height: 85px; padding: 5px 2px 6px; }
.app.phone .navbar .ni { margin: 0 1px; padding: 0; gap: 6px; border-radius: 6px; color: var(--ink); }
.app.phone .navbar .ni.on { background: #efefef; }
.app.phone .navbar .ni span:last-child { font-size: 11px; font-weight: 500; color: var(--ink); }
.app.phone .navbar .ni svg.i { width: 26px; height: 26px; }
.app.phone .segw { padding: 13px var(--pad) 0; }
.app.phone .seg { max-width: none; height: 38px; }
.app.phone .navbar { border-top: 1px solid #ececec; }
.app.phone .navbar .ni { flex: 1 1 0; min-width: 0; }
.app.phone .cb.pill { font-weight: 500; }
.app.phone .segw { padding-bottom: 13px; }
.app.phone .search { height: 60px; gap: 16px; border-top: 1px solid #ededed; border-bottom: 1px solid #ededed; color: #6a6a6a; font-size: 16px; }
.app.phone .search svg.i { width: 26px; height: 26px; color: var(--ink); stroke-width: 2.4; }
.row.thumbed::after { left: var(--row); background: #d5d7d9; }
.row .rt { font-weight: 500; }
.row .acc { color: var(--ink); }
.row .thumb.ab { background: #9da2a6; color: #fff; font-size: 22px; font-weight: 400; }
.libroot { min-height: 100%; background: #f2f4f5; }
.libroot .list { background: #fff; }
.libroot .list + .list { margin-top: 16px; }
.libroot .newitem { text-align: center; text-decoration: none; font-weight: 500; }
.co-main { position: relative; }
.gtip { position: absolute; left: 16px; right: 16px; bottom: 105px; z-index: 5; display: flex; align-items: flex-start; gap: 14px; padding: 16px 12px 16px 12px; border-radius: 8px; background: #232323; color: #fff; font-size: 16px; line-height: 1.32; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.gtip > svg.i { flex: none; width: 24px; height: 24px; margin-top: 3px; }
.gtip span { flex: 1; }
.gtip .ib { flex: none; width: 32px; height: 32px; margin: -2px 0 0; color: #fff; }
.app.tab .gtip { left: auto; right: 24px; width: 380px; bottom: 24px; }
.app.phone .navbar .ni span:last-child { font-size: 10.5px; letter-spacing: -.02em; }
/* ---------- v5b: Transacciones y Más medidos contra Square (REA s07/s08) ---------- */
.tx-h { border-bottom: 0; min-height: 0; padding-top: 22px; padding-bottom: 14px; }
.tx-h h1 { font-size: 28px; font-weight: 700; letter-spacing: -.01em; }
.txsearch { flex: none; display: flex; align-items: center; gap: 12px; height: 50px; margin: 6px var(--pad) 12px; padding: 0 16px; border: 1px solid #d0d0d0; border-radius: 999px; }
.txsearch svg.i { width: 24px; height: 24px; color: var(--ink); stroke-width: 2.2; }
.txsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.txday { margin: 0 var(--pad); padding: 12px 0 10px; border-bottom: 1px solid #8f8f8f; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.txlist .txr { min-height: 100px; margin: 0 var(--pad); padding: 0; width: calc(100% - 2 * var(--pad)); border-bottom: 1px solid #ececec; }
.txlist .txr:first-of-type, .txlist .txr.hl { margin: 0 4px; width: calc(100% - 8px); padding: 0 12px; border-radius: 8px; }
.txlist .txr .lead { width: 70px; justify-content: flex-start; padding-left: 12px; }
.txlist .txr .lead svg.i { width: 32px; height: 32px; }
.txlist .txr .rt b { display: block; font-size: 19px; font-weight: 600; }
.txlist .txr .rt small { color: var(--ink); font-size: 16px; }
.txlist .txr .rv { color: var(--ink); font-size: 18px; }
.app.phone .txlist .txr:first-of-type { background: #f6f6f6; }
.mpage { position: relative; padding-bottom: 260px; }
.mhead { display: flex; align-items: flex-start; gap: 16px; padding: 20px var(--pad) 0; }
.mhead > div { flex: 1; }
.mhead h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.mhead p { margin: 26px 0 0; font-size: 18px; }
.mav { flex: none; width: 60px; height: 60px; border: 0; border-radius: 50%; background: #f0f0f0; display: grid; place-items: center; }
.mav .avatar { width: 40px; height: 40px; font-size: 15px; }
.minfo { display: flex; gap: 14px; margin: 26px var(--pad) 0; padding: 18px 16px 22px; border: 1px solid #d6d6d6; border-radius: 12px; background: #f0f0f0; font-size: 17px; line-height: 1.55; }
.minfo > svg.i { flex: none; width: 26px; height: 26px; }
.minfo b { display: block; font-weight: 600; }
.minfo a { display: block; margin-top: 14px; color: var(--ink); font-weight: 600; text-decoration: underline; }
.mmode { display: flex; align-items: center; gap: 14px; width: calc(100% - 2 * var(--pad)); margin: 12px var(--pad) 0; padding: 16px; border: 0; border-radius: 12px; background: #f0f0f0; text-align: left; font: inherit; color: var(--ink); }
.mmode .mmi { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; background: #fff; }
.mmode .rt { flex: 1; font-size: 16px; font-weight: 600; }
.mmode .rt small { display: block; color: var(--ink2); font-size: 14px; font-weight: 400; }
.mlist { margin-top: 12px; }
.mpromo { position: sticky; bottom: 8px; display: block; margin: 16px var(--pad) 0; padding: 20px 20px 22px; border-radius: 4px; background: #000; color: #fff; font-size: 17px; }
.mpromo b { display: block; max-width: 80%; font-size: 21px; line-height: 1.6; }
.mpromo span { display: block; margin-top: 6px; color: #c8c8c8; line-height: 1.5; }
.mpromo .ib { position: absolute; top: 12px; right: 12px; color: #fff; }
.mpromo .cb { display: flex; align-items: center; justify-content: center; min-height: 60px; margin-top: 16px; border-radius: 999px; background: #fff; color: #000; text-decoration: none; font-weight: 600; }
.mpg { position: relative; }
.mpage { padding-bottom: 290px; }
.mpromo { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 4; margin: 0 var(--pad); }
.mpromo b { font-size: 19px; line-height: 1.55; font-weight: 600; }
.mpromo span { font-size: 16px; }
.mhead h1 { font-size: 23px; font-weight: 600; line-height: 1.5; }
.mhead p { margin-top: 18px; font-size: 16px; }
.mav { background: #f0f0f0; }
.mav .avatar { background: none; color: var(--ink); font-size: 18px; }
.minfo { font-size: 16px; line-height: 1.6; }
.minfo b { font-size: 16px; }
.mmode .rt { font-size: 15px; }
.mmode .rt small { font-size: 13.5px; }
.app.tab .mpromo { left: auto; width: 420px; right: 24px; }
.mpg { height: 100%; min-height: 0; overflow: hidden; }
.mhead h1 { max-width: 280px; }
.minfo { line-height: 1.5; padding-bottom: 18px; }
.minfo a { margin-top: 10px; }
.mmode { padding: 12px 16px; }
.mpromo { bottom: 18px; }
