/* Ribera · Bar — demo */
:root {
  --ink: #18201c;
  --ink-2: #3a4540;
  --muted: #6c7570;
  --line: #e5e0d6;
  --bg: #f6f3ec;
  --surface: #ffffff;
  --brand: #173b30;
  --brand-2: #23584a;
  --brand-soft: #e2ece7;
  --accent: #e3a33b;
  --accent-soft: #fbefd8;
  --ok: #2e7d4f;
  --ok-soft: #e3f2e8;
  --warn: #93600f;
  --warn-soft: #fbf0d9;
  --danger: #b4372b;
  --danger-soft: #f8e3e0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(24, 32, 28, .06), 0 6px 20px rgba(24, 32, 28, .06);
  --v-black: #08080a;
  --v-orange: #ff7028;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-size: 14px; line-height: 1.45; }
body[data-rol="cocina"] { background: #101513; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--brand); }

/* ---------- Barra de la demo (Varyon) ---------- */
.demobar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 18px; background: var(--v-black); color: #fff; font-size: 13px; }
.demobar .tag { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.demobar .tag b { color: var(--v-orange); }
.demobar .tag span.hide-sm { color: #b9b9c0; font-weight: 500; }
.demobar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v-orange); }
.demobar .spacer { flex: 1; }
.roleswitch { display: inline-flex; background: #1c1c20; border-radius: 999px; padding: 3px; }
.roleswitch button { border: 0; background: transparent; color: #c9c9cf; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.roleswitch button[aria-pressed="true"] { background: #fff; color: var(--v-black); }
.demobar .dbtn { border: 1px solid #34343a; background: transparent; color: #fff; padding: 6px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; }
.demobar .dbtn:hover { border-color: var(--v-orange); color: var(--v-orange); }
.demobar .dbtn.hot { background: var(--v-orange); border-color: var(--v-orange); color: #111; font-weight: 700; }
.net { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.net svg { width: 16px; height: 16px; }
.net.off { color: #ffb48a; }
.net.sync { color: #9fe0b6; }
.net.sync i { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.offline-strip { display: flex; gap: 8px; align-items: center; background: #3a2a12; color: #ffd9a8; padding: 8px 14px; font-size: 12px; font-weight: 600; }
.offline-strip svg { width: 16px; height: 16px; flex: none; }

/* ---------- Base ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { border: 0; background: none; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: inherit; font-weight: 600; }
.iconbtn { border: 0; background: transparent; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; font-size: 22px; color: var(--ink-2); }
.iconbtn:hover { background: var(--bg); }
.iconbtn svg { width: 20px; height: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card + .card { margin-top: 12px; }
.card h3 { font-size: 15px; }
.card h3.mt { margin-top: 16px; margin-bottom: 4px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.hint { font-size: 12px; color: var(--muted); }
.hint.warn { color: var(--warn); }
.center { text-align: center; margin-top: 12px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 12px; }
.muted { color: var(--muted); }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }
.empty.big { padding: 46px 16px; }
.empty.big svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 8px; }
.empty.big p + p { margin-top: 6px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; }
.kv.sm { padding: 3px 0; font-size: 13px; color: var(--ink-2); }
.kv.sep { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.kv.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.ok-t { color: var(--ok); }
.bad-t { color: var(--danger); }
.warn-t { color: var(--warn); }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 10px; background: var(--brand-soft); color: #173b30; }
.alert.warn { background: var(--warn-soft); color: #6c470c; }
.alert.ok { background: var(--ok-soft); color: #1f5a38; }
.alert.danger { background: var(--danger-soft); color: #7d241c; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--bg); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.field { display: flex; flex-direction: column; gap: 5px; margin: 10px 0; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field-row input { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); padding: 10px 12px; width: 100%; }
input:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 12px; }
.chips.sticky { position: sticky; top: -14px; background: var(--bg); padding-top: 4px; z-index: 2; margin-top: -4px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--line); background: #fff; padding: 7px 11px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.av.xs { width: 20px; height: 20px; vertical-align: -5px; }
.av.lg { width: 52px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .bn { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.brand .bs { font-size: 11px; color: var(--muted); }
.brand.big svg { width: 54px; height: 54px; }
.brand.big .bn { font-size: 24px; }
.brand.dark .bn { color: #fff; }
.brand.dark .bs { color: #9fb0a8; }

/* ---------- Mozo: teléfono ---------- */
.stage { display: flex; gap: 32px; justify-content: center; align-items: flex-start; padding: 28px 16px 60px; }
.phone { width: 390px; max-width: 100%; height: 800px; background: var(--bg); border-radius: 38px; border: 10px solid #1b1b1f; box-shadow: 0 30px 60px rgba(0,0,0,.18); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.pt-left { display: flex; align-items: center; gap: 4px; min-width: 0; }
.phone-top h2 { font-size: 19px; white-space: nowrap; }
.me-chip { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 11px 3px 3px; cursor: pointer; font-weight: 600; font-size: 13px; }
.me-chip .av { width: 28px; height: 28px; }
.phone-body { flex: 1; overflow-y: auto; padding: 14px; }
.tabbar { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border-top: 1px solid var(--line); }
.tabbar button { position: relative; border: 0; background: transparent; padding: 10px 0 12px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; color: var(--muted); font-size: 12px; font-weight: 600; }
.tabbar svg { width: 21px; height: 21px; }
.tabbar button[aria-pressed="true"] { color: var(--brand); }
.tabbar em { position: absolute; top: 5px; left: calc(50% + 6px); font-style: normal; background: var(--accent); color: #2b1a00; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 0 6px; }
.actionbar { display: flex; gap: 8px; padding: 10px 12px 14px; background: var(--surface); border-top: 1px solid var(--line); }

.login { flex: 1; padding: 34px 22px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #fff 0%, var(--bg) 60%); }
.login h2 { font-size: 22px; margin-top: 26px; }
.who-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.who-btn { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 14px; cursor: pointer; }
.who-btn:hover { border-color: var(--brand); }
.who-btn b { display: block; font-size: 15px; }
.who-btn small { color: var(--muted); }

.mesas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mesas.wide { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.mesa { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 92px; padding: 10px 11px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-align: left; }
.mesa .mn { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.mesa .mt { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.mesa .ms { font-size: 11px; color: var(--muted); font-weight: 600; }
.mesa .av { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border: 2px solid #fff; }
.mesa.st-ocupada { background: var(--brand-soft); border-color: #b6cec3; }
.mesa.st-lista { background: #e3f2e8; border-color: var(--ok); }
.mesa.st-lista .ms { color: var(--ok); }
.mesa.st-cuenta { background: var(--accent-soft); border-color: var(--accent); }
.mesa.st-cuenta .ms { color: var(--warn); }
.mesa.ajena { opacity: .5; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 11px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; border: 1px solid var(--line); }
.lg-libre { background: #fff; }
.lg-ocupada { background: var(--brand-soft); }
.lg-lista { background: #e3f2e8; border-color: var(--ok) !important; }
.lg-cuenta { background: var(--accent-soft); border-color: var(--accent) !important; }

.mesa-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 12px; }
.mh-mozo { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.line { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.line:last-child { border-bottom: 0; }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.line .grow { flex: 1; min-width: 0; }
.line .t { font-weight: 700; }
.line .s { font-size: 12px; color: var(--muted); }
.nota { background: var(--accent-soft); color: #6c470c; padding: 0 6px; border-radius: 6px; font-weight: 600; }
.est { font-weight: 600; }
.est-enviado { color: var(--warn); }
.est-listo { color: var(--ok); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 17px; font-weight: 700; }
.qty span { min-width: 16px; text-align: center; font-weight: 700; }

.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 14px; overflow: hidden; cursor: pointer; }
.prod:active { transform: scale(.98); }
.prod img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.prod .pn { font-weight: 700; font-size: 13px; padding: 8px 10px 0; line-height: 1.25; }
.prod .pp { font-size: 12px; color: var(--muted); padding: 2px 10px 10px; }
.badge-n { position: absolute; top: 8px; right: 8px; background: var(--brand); color: #fff; border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; font-weight: 800; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }

.aviso { border-color: var(--ok); }
.mini-line { padding: 4px 0; font-weight: 600; }
.aviso .btn { margin-top: 10px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kpis.two { grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 21px; letter-spacing: -.01em; margin-top: 2px; }
.kpi small { color: var(--muted); font-size: 11px; }
.row-btn { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; width: 100%; text-align: left; border: 0; border-bottom: 1px dashed var(--line); background: none; padding: 9px 0; cursor: pointer; }
.row-btn span:nth-child(2) { grid-row: 2; font-size: 12px; color: var(--muted); }
.row-btn .money { grid-row: 1 / 3; grid-column: 2; align-self: center; font-weight: 700; }

.side-notes { width: 330px; position: sticky; top: 76px; }
.side-notes h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.side-notes ol { margin: 0; padding-left: 18px; }
.side-notes li { margin-bottom: 8px; }
.side-notes .rule { font-size: 12px; color: var(--muted); }

/* ---------- Caja: web ---------- */
.web { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 52px); }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px; }
.sidebar .brand { padding: 0 8px 16px; }
.navi { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; color: var(--ink-2); }
.navi svg { width: 18px; height: 18px; flex: none; }
.navi span { flex: 1; }
.navi:hover { background: var(--bg); }
.navi[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); }
.navi em { font-style: normal; background: var(--accent); color: #2b1a00; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; }
.sidebar .me { margin-top: 18px; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.web-main { padding: 0 0 60px; min-width: 0; }
.web-main > :not(.offline-strip) { margin-left: 28px; margin-right: 28px; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 24px !important; margin-bottom: 16px; flex-wrap: wrap; }
.page-h h1 { font-size: 24px; letter-spacing: -.01em; }
.page-h .sub { color: var(--muted); margin-top: 4px; }
.cobro-layout { display: grid; grid-template-columns: 1fr 400px; gap: 20px; align-items: start; }
.sector { margin-bottom: 18px; }
.sector h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.cobro-panel { position: sticky; top: 70px; }
.cobro-panel h2 { font-size: 20px; }
.cobro-panel .hint { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.ticket { background: #fbfaf6; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 12px; margin: 8px 0 10px; }
.ticket .kv { padding: 4px 0; font-size: 13px; }
.ticket .kv.total { font-size: 16px; }
input.mini { width: 54px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 7px; margin-left: 4px; }
input.mini.wide { width: 88px; }
.pagos { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.pagos small { font-size: 11px; }
.pay-row { margin: 10px 0 12px; }
.field-row { display: flex; gap: 8px; margin: 10px 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid2 .card + .card { margin-top: 0; }
.cierre { max-width: 520px; }
.cierre h2 { margin-bottom: 10px; }
.cierre .btn { margin-top: 14px; }
.mozo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mozo-card + .mozo-card { margin-top: 0; }
.mc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mc-h > div { flex: 1; }
.mozo-card .btn, .mozo-card .alert { margin-top: 10px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 18px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar i { display: block; width: 100%; max-width: 46px; background: var(--brand); border-radius: 8px 8px 3px 3px; min-height: 4px; }
.bar .bv { font-size: 11px; color: var(--muted); font-weight: 600; }
.bar .bl { font-size: 12px; font-weight: 600; }
.hbar { display: grid; grid-template-columns: 100px 1fr 96px; gap: 10px; align-items: center; margin: 9px 0; font-size: 13px; }
.hbar div { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tprod { display: inline-flex; align-items: center; gap: 8px; }
.tprod img:not(.av) { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

/* ---------- Cocina / barra ---------- */
.kds { color: #e9efec; min-height: calc(100vh - 52px); padding-bottom: 30px; }
.kds-top { display: flex; align-items: center; gap: 20px; padding: 16px 24px; border-bottom: 1px solid #25302c; flex-wrap: wrap; }
.kds-top .seg { flex: 1; justify-content: center; }
.seg.dark button { background: #1b2421; border-color: #2c3833; color: #c7d3cd; font-size: 15px; padding: 9px 18px; }
.seg.dark button[aria-pressed="true"] { background: var(--accent); color: #23180a; border-color: var(--accent); }
.seg.dark em { font-style: normal; background: rgba(0,0,0,.25); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 12px; }
.kclock { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 24px; }
.kcol h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #9fb0a8; margin-bottom: 10px; }
.kcol h3 em { font-style: normal; background: #25302c; color: #fff; border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.kempty { border: 1px dashed #2c3833; border-radius: 14px; padding: 26px; text-align: center; color: #6f817a; }
.tk { background: #f7f4ec; color: #18201c; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; border-top: 6px solid #9fb0a8; }
.tk.alert { border-top-color: var(--accent); }
.tk.crit { border-top-color: #e0533f; }
.tk.ok { border-top-color: #4caf72; opacity: .85; }
.tk-h { display: flex; justify-content: space-between; align-items: baseline; }
.tk-h b { font-size: 20px; letter-spacing: -.01em; }
.tk-h span { font-weight: 800; font-variant-numeric: tabular-nums; }
.tk.alert .tk-h span { color: var(--warn); }
.tk.crit .tk-h span { color: #b4372b; }
.tk-m { font-size: 12px; color: #5b665f; display: flex; align-items: center; gap: 5px; margin: 2px 0 8px; }
.tk ul { list-style: none; margin: 0; padding: 0; }
.tk li { padding: 5px 0; border-top: 1px dashed #d9d3c6; font-size: 15px; }
.tk li b { display: inline-block; min-width: 24px; font-size: 17px; }
.tk-nota { display: block; margin: 3px 0 0 24px; font-size: 13px; font-weight: 700; color: #8a2f20; text-transform: uppercase; letter-spacing: .02em; }
.kbtn { width: 100%; margin-top: 10px; padding: 11px; border-radius: 10px; border: 0; background: #18201c; color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
.kbtn.go { background: #2e7d4f; }
.tk-wait { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ok); }
.kfoot { color: #6f817a; font-size: 12px; padding: 0 24px; }
.kds .offline-strip { margin: 0; }

/* ---------- Modal y toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(12, 18, 15, .5); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 420px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal h2 { font-size: 19px; margin-bottom: 4px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.stepper { display: flex; align-items: center; gap: 16px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
.stepper span { font-size: 26px; font-weight: 800; min-width: 30px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; z-index: 120; box-shadow: var(--shadow); animation: up .2s ease-out; max-width: calc(100vw - 32px); text-align: center; }
.toast.warn { background: var(--danger); }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cobro-layout { grid-template-columns: 1fr; }
  .cobro-panel { position: static; }
  .mozo-cards { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .side-notes { display: none; }
}
@media (max-width: 860px) {
  .web { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .sidebar nav { display: flex; overflow-x: auto; gap: 4px; }
  .navi { width: auto; white-space: nowrap; }
  .sidebar .me { display: none; }
  .sidebar .brand { padding-bottom: 10px; }
  .web-main > :not(.offline-strip) { margin-left: 14px; margin-right: 14px; }
  .grid2, .mozo-cards, .kcols { grid-template-columns: 1fr; }
  .tbl { display: block; overflow-x: auto; }
}
@media (max-width: 520px) {
  .stage { padding: 0; }
  .phone { width: 100%; height: calc(100vh - 92px); border: 0; border-radius: 0; box-shadow: none; }
  .demobar { gap: 8px; padding: 8px 10px; }
  .demobar .hide-sm { display: none; }
}
