/* Limpio & Nuevo · estilos. Pensado primero para el móvil; crece a tablet y ordenador. */
@font-face { font-family: 'Figtree'; src: url('/vendor/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
:root {
  --bg: #f1f5f2; --surface: #fff; --surface-2: #f7faf8; --ink: #13241f; --muted: #586b64; --line: #dbe4df; --line-strong: #c3d0ca;
  --brand: #0a6e55; --brand-press: #085a46; --brand-dark: #0e2c26; --brand-soft: #e2f2eb; --brand-ink: #fff;
  --ok: #0f7350; --ok-soft: #dcf3e6; --warn: #96560a; --warn-soft: #fdf0d8; --warn-line: #f0d19a; --danger: #b3261e; --danger-soft: #fbe8e6; --blue-soft: #e4eefb; --blue: #1d5fa8; --purple-soft: #efe8fb; --purple: #6941b5;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(16, 40, 33, .06), 0 4px 16px rgba(16, 40, 33, .06); --shadow-lg: 0 12px 40px rgba(12, 30, 25, .22);
  --tap: 48px; --nav-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.45; color: var(--ink); -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -.01em; }
h3 { font-size: 1rem; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
a { color: var(--brand); }
strong, b { font-weight: 700; }
.icon { flex: none; }
:focus-visible { outline: 3px solid #1c8fd6; outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; }
.pos { color: var(--ok); } .neg { color: var(--danger); }
.num, strong, .stat strong { font-variant-numeric: tabular-nums; }
#print-area { display: none; }

/* ---------- Botones y campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background .12s, transform .06s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.primary:hover:not(:disabled) { background: var(--brand-press); }
.btn.secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost:hover:not(:disabled) { background: rgba(16, 40, 33, .06); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger-text { color: var(--danger); }
.btn.big { min-height: 60px; font-size: 1.15rem; padding: 0 26px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 12px; border: 0; background: transparent; color: var(--muted); flex: none; }
.icon-btn:hover:not(:disabled) { background: rgba(16, 40, 33, .07); }
.icon-btn:disabled { opacity: .35; }
.link { background: none; border: 0; padding: 8px 0; color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-align: left; }
.link.danger { color: var(--danger); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; flex: none; }
.spinner.dark { border-color: rgba(10, 110, 85, .2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-weight: 700; font-size: .95rem; }
.field small { color: var(--muted); font-size: .85rem; }
.field small.err, .form-error { color: var(--danger); font-weight: 600; }
input:not([type=checkbox]):not([type=file]), select, textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; font-size: 1rem; }
textarea { resize: vertical; min-height: 72px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10, 110, 85, .18); }
input[type=date] { min-width: 150px; }
.money-input { position: relative; }
.money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; }
.money-input input { padding-left: 32px !important; font-weight: 700; font-size: 1.1rem !important; font-variant-numeric: tabular-nums; }
.password { display: flex; gap: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.check span { font-weight: 600; } .check small { display: block; font-weight: 400; color: var(--muted); font-size: .875rem; }
.form { display: grid; gap: 16px; }
.form.cols { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: start; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.form-error { display: flex; gap: 8px; align-items: center; background: var(--danger-soft); padding: 10px 12px; border-radius: 10px; }
fieldset.group { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
fieldset.group legend { font-weight: 800; padding: 0 6px; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--ink); }
.stepper button:active:not(:disabled) { background: var(--brand-soft); }
.stepper button:disabled { opacity: .3; }
.stepper input { width: 56px !important; min-height: 44px !important; border: 0 !important; border-radius: 0 !important; text-align: center; padding: 0 !important; font-weight: 800; font-size: 1.1rem !important; box-shadow: none !important; font-variant-numeric: tabular-nums; }
.stepper.big button { width: 54px; height: 54px; } .stepper.big input { width: 68px !important; min-height: 54px !important; font-size: 1.3rem !important; }

.segmented { display: inline-flex; background: #e4ebe7; border-radius: 12px; padding: 4px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { border: 0; background: transparent; padding: 0 14px; min-height: 42px; border-radius: 9px; font-weight: 700; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.segmented button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.segmented.wide { display: flex; } .segmented.wide button { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips button, .chip-toggle { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 0 16px; min-height: 42px; font-weight: 700; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.chips button.on, .chip-toggle.on { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.badge { background: #f2b53c; color: #3d2600; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: .8rem; font-weight: 800; display: inline-grid; place-items: center; }
.badge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 800; background: #e8eeeb; color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--danger-soft); color: var(--danger); }

/* ---------- Acceso ---------- */
.access { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 10% -10%, #cfe9de 0, transparent 60%), var(--bg); }
.access-card { width: min(440px, 100%); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px 24px; display: grid; gap: 16px; }
.access-card h1 { font-size: 1.5rem; letter-spacing: -.02em; }
.brand { display: flex; align-items: center; gap: 12px; }
.brandmark { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; position: relative; flex: none; }
.brandmark i { position: absolute; top: 3px; right: 6px; font-style: normal; font-size: .9rem; color: #bff0dc; }
.brand b { display: block; font-size: 1.1rem; letter-spacing: -.01em; } .brand small { letter-spacing: .14em; font-size: .68rem; color: var(--muted); font-weight: 700; }
.brand.small .brandmark { width: 36px; height: 36px; font-size: 1.2rem; border-radius: 10px; } .brand.small small { display: none; } .brand.small b { font-size: 1rem; }

/* ---------- Estructura ---------- */
.app { min-height: 100dvh; display: flex; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(241, 245, 242, .92); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); min-height: 60px; }
.topbar-title { font-size: 1.1rem; display: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.who { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--muted); font-size: .95rem; max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 16px; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); width: 100%; max-width: 1160px; margin: 0 auto; }
.stack { display: grid; gap: 16px; min-width: 0; }
.mode-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: #f6c25b; color: #3a2500; font-size: .95rem; }
.mode-bar > span { flex: 1; } .mode-bar button { border: 1.5px solid #3a2500; background: transparent; border-radius: 10px; min-height: 38px; padding: 0 12px; font-weight: 800; color: inherit; white-space: nowrap; }
.mode-bar.offline { background: var(--danger); color: #fff; } .mode-bar.update { background: var(--blue); color: #fff; } .mode-bar.update button { border-color: #fff; }
.app.practice .topbar { border-bottom-color: #f6c25b; }

.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); box-shadow: 0 -4px 20px rgba(16, 40, 33, .07); }
.bottom-nav button { border: 0; background: none; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.bottom-nav button.on { color: var(--brand); }
.bn-icon { position: relative; display: grid; place-items: center; width: 56px; height: 32px; border-radius: 999px; }
.bottom-nav button.on .bn-icon { background: var(--brand-soft); }
.bn-icon .badge { position: absolute; top: -4px; right: 2px; }
.app.selling .bottom-nav, .app.selling .topbar { display: none; }
.menu-list { display: grid; gap: 8px; }
.menu-list button { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 700; font-size: 1.05rem; text-align: left; }
.menu-list button span { flex: 1; }

@media (min-width: 900px) {
  .sidebar { display: flex; flex-direction: column; width: 236px; flex: none; background: var(--brand-dark); color: #d9ebe4; padding: 20px 12px; position: sticky; top: 0; height: 100dvh; gap: 20px; }
  .sidebar .brand { padding: 0 8px; } .sidebar .brand b { color: #fff; } .sidebar .brand small { color: #8fb5a8; }
  .sidebar nav { display: grid; gap: 4px; }
  .nav-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: #c5dcd3; font-weight: 700; font-size: 1rem; text-align: left; }
  .nav-item span { flex: 1; } .nav-item:hover { background: rgba(255, 255, 255, .07); }
  .nav-item.on { background: #1f4a40; color: #fff; box-shadow: inset 3px 0 0 #6fdcb4; }
  .sidebar-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .sidebar-foot b { display: block; color: #fff; font-size: .95rem; } .sidebar-foot small { color: #8fb5a8; }
  .bottom-nav { display: none; }
  .topbar .brand { display: none; } .topbar-title { display: block; } .topbar { padding: 12px 28px; }
  .content { padding: 24px 28px 48px; }
  .app.practice .sidebar { background: #33280f; }
}

/* ---------- Bloques ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 12px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sub { margin-top: 10px; }
.hero { background: linear-gradient(135deg, var(--brand-dark), #14503f); color: #fff; border-radius: 20px; padding: 22px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.hero h2 { font-size: 1.6rem; letter-spacing: -.02em; } .hero p { color: #bcd9cf; } .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; color: #8fd9bd !important; margin-bottom: 4px; }
.hero .hero-btn { background: #fff; color: var(--brand-dark); min-height: 68px; font-size: 1.3rem; width: 100%; }
.hero .hero-btn:hover:not(:disabled) { background: #e9f7f1; }
@media (min-width: 700px) { .hero { grid-template-columns: 1fr auto; align-items: center; padding: 28px; } .hero .hero-btn { width: auto; min-width: 260px; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-align: left; box-shadow: var(--shadow); min-width: 0; }
button.stat:hover { border-color: var(--brand); }
.stat-label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: .9rem; }
.stat strong { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; } .stat small { color: var(--muted); font-size: .85rem; }
.stat.warn { background: var(--warn-soft); border-color: var(--warn-line); } .stat.warn .stat-label, .stat.warn small { color: var(--warn); }
.stat.good strong { color: var(--ok); } .stat.warn strong { color: #6b3d04; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid #c6d9f3; flex-wrap: wrap; }
.notice > div { flex: 1; min-width: 200px; } .notice p { color: var(--muted); margin-top: 2px; } .notice > .icon { margin-top: 2px; color: var(--blue); }
.notice.warn { background: var(--warn-soft); border-color: var(--warn-line); } .notice.warn > .icon { color: var(--warn); }
.row { display: flex; gap: 8px; align-items: center; } .row.wrap, .toolbar.wrap { flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; align-items: flex-end; } .grow { flex: 1; min-width: 0; }
.toolbar > p { align-self: center; }
.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 44px !important; border-radius: 999px !important; }
.empty { text-align: center; padding: 32px 16px; color: var(--muted); display: grid; gap: 6px; justify-items: center; } .empty h3 { color: var(--ink); }
.loading { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 40px; color: var(--muted); font-weight: 600; }
.lead { font-size: 1.05rem; }

.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; text-decoration: none; color: inherit; flex-wrap: wrap; min-width: 0; width: 100%; }
button.list-row:hover, a.list-row:hover { border-color: var(--brand); }
.list-main { flex: 1; min-width: 150px; display: grid; gap: 1px; } .list-main small { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.list-row > strong { font-size: 1.05rem; white-space: nowrap; }
.list-row.voided { background: #f6f3f2; } .list-row.voided > strong, .list-row.voided .list-main b { text-decoration: line-through; color: var(--muted); }
.list.compact .list-row { padding: 9px 12px; border-width: 0 0 1px; border-radius: 0; } .list.compact .list-row:last-child { border-bottom: 0; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions .btn { min-height: 42px; padding: 0 12px; font-size: .92rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); } th { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } td.num, th.num { text-align: right; white-space: nowrap; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 170px) 1fr auto; gap: 10px; align-items: center; font-size: .95rem; } .bar-row small { grid-column: 3; color: var(--muted); text-align: right; margin-top: -8px; font-size: .8rem; }
.bar { height: 12px; background: #e6eee9; border-radius: 99px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.checklist { display: grid; gap: 8px; }
.checklist button { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; }
.checklist small { display: block; color: var(--muted); } .check-dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); flex: none; }
.checklist .done .check-dot { background: var(--ok-soft); color: var(--ok); } .checklist .done b { color: var(--muted); }
.account { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .account > div { flex: 1; min-width: 160px; } .account small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.attach { display: flex; gap: 8px; flex-wrap: wrap; }
.summary-rows { display: grid; gap: 8px; } .summary-rows div { display: flex; justify-content: space-between; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; font-size: 1.1rem; }

/* ---------- Ventanas ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(9, 24, 20, .5); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--surface); width: 100%; max-height: 94dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: up .2s cubic-bezier(.2, .8, .3, 1); }
.sheet.full { height: 94dvh; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.sheet-head > div { flex: 1; } .sheet-head h2 { font-size: 1.3rem; } .sheet-head p { color: var(--muted); margin-top: 2px; font-size: .95rem; }
.sheet-body { padding: 18px 20px; overflow-y: auto; display: grid; gap: 16px; align-content: start; flex: 1; overscroll-behavior: contain; }
.sheet-foot { padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; background: var(--surface); border-radius: 0; }
.sheet-foot .btn { flex: 1; min-width: 130px; }
@keyframes fade { from { opacity: 0; } } @keyframes up { from { transform: translateY(40px); opacity: .6; } }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; padding: 24px; }
  .sheet { width: min(540px, 100%); border-radius: 20px; max-height: min(92dvh, 900px); } .sheet.wide { width: min(780px, 100%); } .sheet.full { width: min(780px, 100%); height: auto; }
  .sheet-foot { border-radius: 0 0 20px 20px; } .sheet-foot .btn { flex: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.toasts { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 100; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; background: var(--brand-dark); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: 520px; animation: up .2s; }
.toast.error { background: var(--danger); }

/* ---------- Venta ---------- */
.sale-screen { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; }
.sale-head { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sale-head h1 { font-size: 1.2rem; } .sale-head .search { grid-column: 1 / -1; } .sale-head .btn { padding: 0 10px; }
.sale-body { flex: 1; display: flex; min-height: 0; }
.sale-products { flex: 1; overflow-y: auto; padding: 12px 12px calc(96px + var(--safe-b)); display: grid; gap: 12px; align-content: start; }
.sale-cart { display: none; }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; min-width: 0; }
.pcard.selected { border-color: var(--brand); background: #f3fbf7; box-shadow: 0 0 0 3px rgba(10, 110, 85, .14); }
.pcard.off { opacity: .55; }
.pcard-main { border: 0; background: none; padding: 12px; display: grid; gap: 4px; text-align: left; justify-items: start; flex: 1; border-radius: 14px; min-height: 132px; align-content: start; }
.pcard-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.pcard-icon.resale { background: var(--warn-soft); color: var(--warn); } .pcard-icon.raw { background: var(--purple-soft); color: var(--purple); }
.pcard-name { font-weight: 800; font-size: 1.02rem; line-height: 1.2; margin-top: 4px; }
.pcard-price { font-weight: 800; color: var(--brand); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.pcard-stock { font-size: .82rem; color: var(--muted); font-weight: 600; } .pcard-stock.low { color: var(--warn); } .pcard-stock.out { color: var(--danger); font-weight: 800; }
.pcard-count { position: absolute; top: -8px; right: -6px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 900; font-size: 1.05rem; display: grid; place-items: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); border: 2px solid #fff; }
.pcard-count.static { position: static; border: 0; box-shadow: none; }
.pcard-step { padding: 0 8px 10px; } .pcard-step .stepper { width: 100%; justify-content: space-between; } .pcard-step .stepper input { flex: 1; width: auto !important; min-width: 0; }
.pcard-edit { margin: 0 8px 10px; min-height: 44px; border: 1.5px solid var(--brand); color: var(--brand); background: #fff; border-radius: 12px; font-weight: 800; }
.sale-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px; padding: 10px 12px calc(10px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(16, 40, 33, .12); }
.sale-bar .btn.big { flex: 1; }
.sale-bar-view { display: flex; align-items: center; gap: 8px; white-space: nowrap; border: 1.5px solid var(--line-strong); background: #fff; border-radius: 14px; padding: 0 14px; font-weight: 800; min-height: 60px; } .sale-bar-view:disabled { opacity: .45; }
.cart { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.cart-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); } .cart-head h2 { color: var(--ink); }
.cart-lines { display: grid; gap: 10px; }
.cart-empty { display: grid; justify-items: center; gap: 8px; padding: 28px 8px; text-align: center; color: var(--muted); border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.cart-line { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; background: #fff; }
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; } .cart-line-top span { display: block; color: var(--muted); font-size: .88rem; } .cart-line-top strong { white-space: nowrap; font-size: 1.1rem; }
.cart-line-actions { display: flex; justify-content: space-between; align-items: center; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 1.1rem; } .cart-total strong { font-size: 1.9rem; letter-spacing: -.02em; }
.add-free { justify-self: start; }
@media (min-width: 600px) { .pgrid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); } }
@media (min-width: 900px) {
  .sale-head { grid-template-columns: auto auto 1fr; padding: 12px 20px; } .sale-head .search { grid-column: auto; max-width: 460px; justify-self: end; width: 100%; }
  .sale-products { padding: 20px; } .sale-bar { display: none; }
  .sale-cart { display: flex; flex-direction: column; width: 400px; flex: none; background: var(--surface); border-left: 1px solid var(--line); padding: 20px; overflow: hidden; }
  .sale-cart .cart { flex: 1; min-height: 0; } .sale-cart .cart-lines { flex: 1; align-content: start; overflow-y: auto; min-height: 0; padding-right: 4px; }
}
.chooser { display: grid; gap: 10px; }
.chooser-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; }
.chooser-row.on { border-color: var(--brand); background: #f3fbf7; }
.chooser-row b { display: block; font-size: 1.15rem; } .chooser-row span { color: var(--brand); font-weight: 800; }
.pay { display: grid; gap: 16px; }
.pay-summary { display: grid; gap: 10px; }
.pay-total, .pay-received { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .pay-total span, .pay-received span { color: var(--muted); font-weight: 700; }
.pay-total strong { font-size: 2rem; letter-spacing: -.02em; } .pay-received strong { font-size: 1.6rem; padding: 6px 14px; border: 2px solid var(--brand); border-radius: 12px; min-width: 150px; text-align: right; background: #fff; } .pay-received strong.placeholder { color: #a9b8b2; border-color: var(--line-strong); }
.pay-change { border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 800; min-height: 72px; }
.pay-change.idle { background: #eaf0ed; color: var(--muted); font-weight: 600; } .pay-change.ok { background: var(--ok-soft); color: var(--ok); } .pay-change.bad { background: var(--danger-soft); color: var(--danger); }
.pay-change strong { font-size: 2rem; letter-spacing: -.02em; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 10px; }
.quick button { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font-weight: 800; font-size: 1.02rem; } .quick button.on { background: var(--brand); color: #fff; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.keypad button { min-height: 58px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 1.5rem; font-weight: 700; display: grid; place-items: center; } .keypad button:active { background: var(--brand-soft); }
@media (min-width: 700px) { .pay { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (max-height: 700px) { .keypad button { min-height: 48px; } .pay-total strong, .pay-change strong { font-size: 1.6rem; } .pay-change { min-height: 56px; padding: 10px 14px; } }
.change-banner { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; background: var(--ok-soft); color: var(--ok); border-radius: 14px; padding: 10px 16px; font-weight: 800; } .change-banner strong { font-size: 1.7rem; }
.ticket-paper { background: #ecefe9; border-radius: 14px; padding: 16px; display: grid; place-items: center; }
.ticket { width: min(302px, 100%); background: #fff; color: #000; padding: 18px 16px; font: 13px/1.6 'Courier New', ui-monospace, monospace; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.ticket h2 { text-align: center; font: 700 18px/1.3 'Courier New', monospace; } .ticket p { margin: 2px 0; } .ticket hr { border: 0; border-top: 1px dashed #777; margin: 10px 0; }
.t-center { text-align: center; } .t-flag { font-weight: 700; } .t-small { font-size: 10.5px; } .t-row { display: flex; justify-content: space-between; gap: 8px; } .t-row span:last-child { white-space: nowrap; } .t-line { margin-bottom: 6px; } .t-total { font-size: 17px; font-weight: 700; }

/* ---------- Dinero ---------- */
.balances { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.balance { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.balance-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.balance span { color: var(--muted); font-weight: 700; } .balance strong { display: block; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.2; } .balance small { color: var(--muted); }
.total-line { margin-top: -6px; }
.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.action { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 16px; padding: 16px; min-height: 108px; display: grid; gap: 2px; justify-items: start; align-content: center; text-align: left; box-shadow: var(--shadow); }
.action b { font-size: 1.1rem; } .action small { color: var(--muted); } .action .icon { color: var(--brand); margin-bottom: 4px; }
.action.primary { background: var(--brand); border-color: var(--brand); color: #fff; } .action.primary small { color: #c8ebde; } .action.primary .icon { color: #fff; }
.action:active { transform: scale(.98); }
@media (min-width: 800px) { .actions { grid-template-columns: repeat(4, 1fr); } }
.den-group { display: grid; gap: 8px; } .den-group h3 { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.den-row { display: grid; grid-template-columns: minmax(92px, 1fr) auto minmax(86px, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 14px; }
.den-row.on { border-color: var(--brand); background: #f3fbf7; }
.den-tag { justify-self: start; font-weight: 900; font-size: 1.15rem; padding: 8px 12px; border-radius: 8px; background: #dcefe4; color: #0d4a39; border: 1px solid #b5d9c7; min-width: 88px; text-align: center; font-variant-numeric: tabular-nums; }
.den-tag.moneda { border-radius: 999px; background: #f6ead0; color: #6a4a08; border-color: #e6cf9c; }
.den-sub { text-align: right; white-space: nowrap; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.count-result { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; flex: 1; min-width: 0; }
.count-result strong { display: block; font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.15; } .count-result span { font-size: .92rem; font-weight: 600; }
.count-result.ok { background: var(--ok-soft); color: var(--ok); } .count-result.short { background: var(--danger-soft); color: var(--danger); } .count-result.over { background: var(--warn-soft); color: var(--warn); }
.count-foot { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; width: 100%; } .count-foot .btn { flex: 1; min-width: 180px; }
.foot-total { flex: 1; display: grid; } .foot-total span { color: var(--muted); font-weight: 700; font-size: .9rem; } .foot-total strong { font-size: 1.6rem; }
.count-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; background: #fff; } .count-card.old { opacity: .6; }
.count-card-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .count-card-head span { color: var(--muted); font-size: .88rem; }
.count-card-body { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .count-card-body .pill { font-size: .95rem; padding: 5px 12px; }
.move-dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #e8eeeb; color: var(--muted); }
.move-dot.in { background: var(--ok-soft); color: var(--ok); } .move-dot.out { background: var(--danger-soft); color: var(--danger); } .move-dot.adj { background: var(--warn-soft); color: var(--warn); }

/* ---------- Productos y compras ---------- */
.product-list { display: grid; gap: 10px; }
.product-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.product-row.low { border-color: var(--warn-line); }
.product-info { min-width: 0; display: grid; } .product-info small { color: var(--muted); } .product-price { font-weight: 700; color: var(--brand); font-size: .95rem; } .product-price.missing { color: var(--danger); }
.product-stock { text-align: right; display: grid; justify-items: end; gap: 2px; } .product-stock strong { font-size: 1.1rem; white-space: nowrap; } .product-stock small { color: var(--muted); font-size: .82rem; max-width: 110px; }
.product-row .row-actions { grid-column: 1 / -1; padding-top: 8px; border-top: 1px dashed var(--line); }
@media (min-width: 1000px) { .product-row { grid-template-columns: auto minmax(0, 1fr) 130px auto; } .product-row .row-actions { grid-column: auto; padding: 0; border: 0; } }
.pres-row { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr auto; gap: 8px; align-items: end; }
.line-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 12px; background: var(--surface-2); border-radius: 12px; position: relative; }
.line-row .icon-btn { justify-self: end; }
@media (min-width: 700px) { .line-row { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; } .line-row.two { grid-template-columns: 1.6fr 1fr auto; } }
@media (max-width: 520px) { .pres-row { grid-template-columns: 1fr 1fr; } .pres-row .field:nth-child(3) { grid-column: 1; } .pres-row .icon-btn { justify-self: end; } }

/* ---------- Impresión del ticket ---------- */
@media print {
  @page { margin: 6mm; }
  html, body { background: #fff !important; }
  #app, .toasts { display: none !important; }
  #print-area { display: block !important; }
  #print-area .ticket { width: 72mm; max-width: 100%; margin: 0 auto; box-shadow: none; padding: 0; }
}

/* ---------- Ajustes finos para pantallas pequeñas ---------- */
.sheet-foot .btn.ghost { flex: 0 0 auto; min-width: 0; }
.toolbar > p.grow { flex-basis: 240px; }
@media (max-width: 599px) {
  .segmented button { padding: 0 10px; font-size: .93rem; }
  .segmented.wide button .icon { display: none; }
  .count-foot { flex-direction: column; } .count-foot .btn { min-width: 0; flex: none; }
  .count-foot .count-result { padding: 10px 14px; } .count-foot .count-result strong { font-size: 1.3rem; } .count-foot .count-result .icon { width: 28px; height: 28px; }
  .mode-bar { font-size: .88rem; padding: 8px 12px; } .mode-bar .extra { display: none; }
  .sheet-foot { padding-left: 14px; padding-right: 14px; } .sheet-foot .btn { padding: 0 12px; }
  .den-row { grid-template-columns: auto auto 1fr; gap: 8px; padding: 6px 8px; } .den-tag { min-width: 82px; padding: 8px 6px; font-size: 1.05rem; } .den-sub { font-size: .92rem; }
}

/* ---------- Versión 1.1: sin conexión, menú de usuario, precios rápidos, letra grande ---------- */
:root.big-text { font-size: 18.5px; }
.head { position: sticky; top: 0; z-index: 20; }
.head .topbar { position: static; }
.app.selling .head { display: none; }
.mode-bar.sync { background: #1d5fa8; color: #fff; } .mode-bar.sync button, .mode-bar.offline button { border-color: #fff; }
.who { border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: 999px; min-height: 42px; padding: 0 12px; }
.who span { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; }
button.sidebar-foot { background: transparent; border: 0; border-top: 1px solid rgba(255, 255, 255, .12); color: inherit; text-align: left; width: 100%; border-radius: 0 0 12px 12px; }
button.sidebar-foot div { flex: 1; } button.sidebar-foot:hover { background: rgba(255, 255, 255, .07); }
.menu-list button span small, .menu-note span { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.menu-list button.danger { color: var(--danger); border-color: #efc9c5; }
.menu-note { display: flex; gap: 14px; padding: 12px 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); align-items: center; }
.switch { width: 50px; height: 30px; border-radius: 999px; background: #c9d4cf; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch.on { background: var(--brand); } .switch.on::after { transform: translateX(20px); }
.pending-panel { border-color: var(--warn-line); background: #fffaf0; }
.list-main small.err { color: var(--danger); font-weight: 600; }
.change-banner.pending { background: var(--warn-soft); color: #6b3d04; font-weight: 600; }
.price-list { display: grid; gap: 10px; }
.price-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.price-row > b { font-size: 1.05rem; }
.price-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.price-fields .field-label { font-weight: 600; color: var(--muted); font-size: .88rem; }
@media (min-width: 900px) { .price-row { grid-template-columns: 200px 1fr; align-items: center; } }

/* ---------- Versión 1.2: recetas y costes, bandeja de facturas, banco, combos, cierre del día ---------- */
.pcard-icon.combo { background: var(--purple-soft); color: var(--purple); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: var(--brand-soft); border-radius: 12px; font-size: .92rem; }
.suggest span { color: var(--muted); font-weight: 600; flex-basis: 100%; }
.suggest button { border: 1.5px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; min-height: 40px; padding: 0 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.goal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.goal-text { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .goal-text span { color: var(--muted); }
.goal .bar { height: 14px; }
.close-day { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); min-height: 68px; }
.close-day span { flex: 1; } .close-day small { display: block; color: var(--muted); } .close-day > .icon:first-child { color: var(--brand); }
.summary-rows div span { font-size: 1rem; } .summary-rows .strong { background: var(--brand-soft); font-weight: 800; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: var(--muted); }
.inbox-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.inbox-row .row-actions { grid-column: 1 / -1; }
.inbox-row.registrada, .inbox-row.descartada { opacity: .65; }
.inbox-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; color: var(--muted); flex: none; }
.inbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.subiendo { opacity: .6; pointer-events: none; }

.margin-table td, .margin-table th { padding: 9px 8px; }
.margin-table tr.low td { background: #fff6f5; }
.margin-table .missing { color: var(--warn); font-weight: 600; font-size: .88rem; }
@media (min-width: 700px) { .inbox-row { grid-template-columns: auto 1fr auto; } .inbox-row .row-actions { grid-column: auto; } }
@media (max-width: 520px) { .pres-row { grid-template-columns: 1fr 1fr; } .pres-row .field:nth-child(3), .pres-row .field:nth-child(4) { grid-column: auto; } }
.stack > *, .toolbar > *, .panel > * { min-width: 0; max-width: 100%; }
.content { overflow-x: clip; }

/* ---------- Versión 1.3: facturas automáticas, historia y reglas aprendidas ---------- */
.why { display: grid; gap: 3px; margin-top: 4px; } .why > span { display: block; font-size: .88rem; color: #6b3d04; background: var(--warn-soft); padding: 5px 8px; border-radius: 8px; } .why .icon { vertical-align: -2px; margin-right: 5px; }
.checks { display: grid; gap: 6px; } .checks > div { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; } .checks small { display: block; color: inherit; opacity: .85; }
.checks .ok { background: var(--ok-soft); color: var(--ok); } .checks .bad { background: var(--danger-soft); color: var(--danger); }
.timeline { display: grid; gap: 0; } .timeline > div { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.timeline > div::before { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 2px; background: var(--line); } .timeline > div:last-child::before { display: none; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); margin-top: 4px; z-index: 1; } .timeline small { display: block; color: var(--muted); } .timeline p { color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.panel.soft { background: var(--surface-2); box-shadow: none; } ul.plain { margin: 0; padding-left: 20px; color: var(--muted); }
details.raw summary { cursor: pointer; color: var(--brand); font-weight: 700; min-height: 40px; }
details.raw pre, pre.context { background: #10231e; color: #d7efe6; padding: 12px; border-radius: 10px; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 50vh; overflow: auto; margin: 0; }
.secret-key { font: 700 1.25rem/1.6 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; background: var(--ok-soft); color: var(--ok); padding: 14px; border-radius: 12px; text-align: center; overflow-wrap: anywhere; user-select: all; margin: 10px 0; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; } .codes span { font: 700 1.05rem ui-monospace, Menlo, Consolas, monospace; padding: 10px; border-radius: 10px; background: #f1f4f2; text-align: center; user-select: all; }
.menu-list a { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 700; font-size: 1.05rem; text-align: left; color: inherit; text-decoration: none; }
.menu-list a span { flex: 1; } .menu-list a span small { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.chg { white-space: nowrap; text-align: right; color: var(--muted); } .chg strong { color: var(--ink, #16241f); }

.points { display: grid; justify-items: end; line-height: 1.1; } .points strong { font-size: 1.25rem; color: var(--ok); } .points small { color: var(--muted); font-size: .8rem; }
.points-card { background: var(--ok-soft); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 6px; } .points-card div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .points-card span { font-weight: 700; } .points-card strong { font-size: 2.2rem; color: var(--ok); line-height: 1; } .points-card small { color: var(--muted); }
.pay-customer { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px; margin-bottom: 12px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.pay-customer.on { border-style: solid; border-color: var(--ok); background: var(--ok-soft); } .pay-customer span { flex: 1; min-width: 0; } .pay-customer small { display: block; color: var(--muted); font-size: .88rem; } .pay-customer .link { flex: none; }
strong.neg { color: var(--bad, #b3261e); } strong.pos { color: var(--ok); }
