/* Cassa — laid out like the Loyverse POS the staff know: green bar, item grid left, ticket right,
   CHARGE / SAVE at the bottom of the ticket, full-screen charge, receipts list + detail. */
:root {
  --bar: #43a047; --bar-dark: #388e3c; --bar-ink: #fff; --green: #43a047; --green-ink: #fff;
  --bg: #eeeeee; --panel: #ffffff; --panel2: #f5f5f5; --line: #e0e0e0; --line2: #eeeeee; --ink: #212121; --muted: #757575;
  --red: #e53935; --red-bg: #fdecea; --amber: #a86f00; --amber-bg: #fff3d6; --blue: #1e88e5; --blue-bg: #e3f2fd;
  --ok-bg: #e8f5e9; --shadow: 0 1px 3px rgba(0,0,0,.14), 0 1px 2px rgba(0,0,0,.08);
  --ticket-w: 380px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 15px/1.4 Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
body { display: flex; flex-direction: column; overscroll-behavior: none; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: var(--panel); border: 0; border-bottom: 1px solid #bdbdbd; border-radius: 0; padding: 8px 2px; outline: none; }
input:focus, select:focus, textarea:focus { border-bottom: 2px solid var(--green); padding-bottom: 7px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.grow { flex: 1; }
.red { color: var(--red); }

/* ---------------------------------------------------------------- app bar and drawer */
.appbar { flex: 0 0 auto; display: flex; align-items: stretch; background: var(--bar); color: var(--bar-ink); min-height: 56px;
  padding-top: env(safe-area-inset-top); box-shadow: 0 2px 4px rgba(0,0,0,.2); z-index: 5; }
.appbar .left { flex: 1; display: flex; align-items: center; gap: 4px; padding: 0 8px; min-width: 0; }
.appbar .right { flex: 0 0 var(--ticket-w); display: flex; align-items: center; gap: 4px; padding: 0 4px 0 16px;
  border-left: 1px solid rgba(255,255,255,.25); }
.appbar .title { font-size: 20px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib { width: 48px; height: 48px; border: 0; background: none; color: inherit; font-size: 22px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ib:active { background: rgba(255,255,255,.18); }
.barbtn { border: 0; background: none; color: inherit; font-weight: 600; letter-spacing: .5px; padding: 10px 12px; cursor: pointer; border-radius: 4px; }
.barbtn:active { background: rgba(255,255,255,.18); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.22); white-space: nowrap; }
.drawer-bd { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); }
.drawer { position: fixed; left: 0; top: 0; bottom: 0; z-index: 41; width: 290px; background: var(--panel); box-shadow: 2px 0 16px rgba(0,0,0,.3);
  display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.drawer .head { background: var(--bar); color: #fff; padding: 22px 18px 16px; }
.drawer .head b { display: block; font-size: 18px; font-weight: 500; }
.drawer .head span { opacity: .85; font-size: 13px; }
.drawer button { display: flex; align-items: center; gap: 22px; width: 100%; border: 0; background: none; padding: 14px 20px;
  text-align: left; cursor: pointer; font-size: 15px; }
.drawer button .i { width: 22px; text-align: center; color: var(--muted); font-size: 18px; }
.drawer button.on { background: var(--ok-bg); color: var(--bar-dark); font-weight: 600; }
.drawer button.on .i { color: var(--bar-dark); }
.drawer hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }

main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
main > section { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------------- sale screen */
#vSale { display: flex; overflow: hidden; }
.items { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.subbar { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 52px; padding: 0 4px 0 12px; }
.subbar select { border: 0; font-size: 16px; font-weight: 500; padding: 10px 26px 10px 4px; background: transparent; -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #616161 50%), linear-gradient(135deg, #616161 50%, transparent 50%);
  background-position: right 10px center, right 5px center; background-size: 5px 5px; background-repeat: no-repeat; max-width: 60%; }
.subbar input { flex: 1; font-size: 16px; }
.subbar .ib { color: var(--muted); }
.grid { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; align-content: start; }
.tile { border: 0; background: var(--panel); border-radius: 2px; padding: 0; cursor: pointer; text-align: left; box-shadow: var(--shadow);
  display: flex; flex-direction: column; user-select: none; -webkit-user-select: none; }
.tile:active { filter: brightness(.92); }
.tile .ico { aspect-ratio: 1 / .78; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--panel); }
.tile .shape { background: var(--tc, #9e9e9e); width: 64%; aspect-ratio: 1; }
.tile .shape.SQUARE { width: 100%; height: 100%; aspect-ratio: auto; }
.tile .shape.CIRCLE { border-radius: 50%; }
.tile .shape.OCTAGON { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.tile .shape.SUN { clip-path: polygon(50% 0, 61% 17%, 80% 9%, 80% 30%, 100% 37%, 87% 53%, 98% 72%, 77% 76%, 72% 96%, 54% 86%, 37% 98%, 30% 79%, 9% 79%, 16% 59%, 0 45%, 17% 33%, 13% 13%, 34% 15%);
  width: 70%; }
.tile .shape.TAG { width: 56%; clip-path: polygon(0 18%, 62% 18%, 100% 50%, 62% 82%, 0 82%); background: #757575; }
.tile .lbl { padding: 6px 8px 7px; border-top: 1px solid var(--line2); min-height: 52px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .nm { font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.tile .pr { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pages { flex: 0 0 auto; display: flex; background: var(--panel); border-top: 1px solid var(--line); overflow-x: auto; }
.pages button { border: 0; background: none; padding: 13px 22px; cursor: pointer; color: var(--muted); font-weight: 500; border-top: 3px solid transparent; white-space: nowrap; }
.pages button.on { color: var(--bar-dark); border-top-color: var(--green); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

.ticket { flex: 0 0 var(--ticket-w); display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line); min-height: 0; }
.tk-name { padding: 10px 16px; border-bottom: 1px solid var(--line); font-weight: 500; display: flex; gap: 8px; align-items: center; }
.tk-name .c { color: var(--muted); font-weight: 400; font-size: 13px; }
.tk-lines { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.tl { padding: 11px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.tl:active, .tl.flash { background: var(--ok-bg); }
.tl.off { opacity: .4; pointer-events: none; }
.tl .main { display: flex; gap: 10px; }
.tl .main .nm { flex: 1; min-width: 0; }
.tl .main .x { color: var(--muted); margin-left: 4px; white-space: nowrap; }
.tl .sub { color: var(--muted); font-size: 13px; }
.tl .sub.disc { color: var(--muted); font-style: italic; }
.tk-sum { border-top: 1px solid var(--line); }
.tk-row { display: flex; justify-content: space-between; padding: 9px 16px; }
.tk-row.disc { cursor: pointer; color: var(--muted); }
.tk-row.tot { font-weight: 700; font-size: 17px; }
.tk-btns { display: flex; border-top: 1px solid var(--line); }
.tk-btns button { flex: 1; border: 0; min-height: 68px; cursor: pointer; font-weight: 600; letter-spacing: .6px; font-size: 15px; }
.tk-btns .save { background: var(--panel); color: var(--bar-dark); border-right: 1px solid var(--line); }
.tk-btns .charge { background: var(--green); color: var(--green-ink); line-height: 1.2; }
.tk-btns .charge small { display: block; font-size: 17px; letter-spacing: 0; }
.tk-btns button:disabled { opacity: .55; cursor: default; }

/* ---------------------------------------------------------------- charge, split, done */
.full { position: fixed; inset: 0; z-index: 20; background: var(--panel); display: flex; flex-direction: column; }
.full .body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.paycol { max-width: 520px; margin: 0 auto; padding: 34px 20px 30px; }
.amount { text-align: center; font-size: 44px; font-weight: 400; font-variant-numeric: tabular-nums; }
.amount-l { text-align: center; color: var(--muted); margin-bottom: 26px; }
.field { margin: 16px 0; }
.field label { display: block; font-size: 13px; color: var(--muted); }
.field input, .field select { width: 100%; font-size: 20px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 22px; }
.quick button { flex: 1 1 100px; border: 1px solid var(--line); background: var(--panel); border-radius: 2px; padding: 12px 6px; font-size: 16px; cursor: pointer; box-shadow: var(--shadow); }
.paybtn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 1px solid #bdbdbd; background: var(--panel);
  border-radius: 2px; padding: 16px; margin: 10px 0; font-size: 16px; font-weight: 600; letter-spacing: .5px; cursor: pointer; }
.paybtn:active { background: var(--panel2); }
.paybtn .i { font-size: 22px; }
.paybtn small { font-weight: 400; color: var(--muted); letter-spacing: 0; }
.split-n { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 6px 0 20px; }
.split-n button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 22px; cursor: pointer; }
.split-n b { font-size: 24px; min-width: 40px; text-align: center; }
.srow { display: flex; gap: 12px; align-items: flex-end; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.srow select { flex: 1.2; font-size: 16px; }
.srow input { flex: 1; font-size: 18px; text-align: right; }
.srow .go { border: 0; background: var(--green); color: #fff; font-weight: 600; letter-spacing: .5px; padding: 11px 14px; border-radius: 2px; cursor: pointer; min-width: 110px; }
.srow .paid { min-width: 110px; text-align: center; color: var(--bar-dark); font-weight: 600; padding: 11px 0; }
.done2 { display: flex; justify-content: space-around; text-align: center; margin: 10px 0 24px; }
.done2 .amount { font-size: 40px; }
.bigbtn { display: block; width: 100%; border: 0; background: var(--green); color: #fff; font-weight: 600; letter-spacing: .6px; font-size: 16px;
  padding: 18px; border-radius: 2px; cursor: pointer; margin-top: 16px; }
.bigbtn:disabled { opacity: .5; }

/* ---------------------------------------------------------------- dialogs */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dlg { background: var(--panel); border-radius: 4px; box-shadow: 0 12px 40px rgba(0,0,0,.35); width: min(480px, 100%);
  max-height: calc(100% - 20px); display: flex; flex-direction: column; }
.dlg.wide { width: min(760px, 100%); }
.dlg-h { display: flex; align-items: center; gap: 8px; padding: 18px 20px 6px; }
.dlg-h h2 { margin: 0; font-size: 19px; font-weight: 500; flex: 1; }
.dlg-h .ib { color: var(--muted); width: 40px; height: 40px; font-size: 18px; }
.dlg-b { padding: 4px 20px 8px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dlg-f { display: flex; gap: 4px; justify-content: flex-end; padding: 8px 12px 12px; flex-wrap: wrap; }
.dlg-f .btn { border: 0; background: none; color: var(--bar-dark); font-weight: 600; letter-spacing: .5px; padding: 10px 14px; cursor: pointer; border-radius: 2px; text-transform: uppercase; }
.dlg-f .btn.danger { color: var(--red); margin-right: auto; }
.dlg-f .btn:disabled { opacity: .4; }
.dlg .field input, .dlg .field select, .dlg .field textarea { font-size: 17px; }
.err { color: var(--red); min-height: 1.2em; margin: 6px 0 0; }
.stepper { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 4px 0 8px; }
.stepper button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); font-size: 26px; cursor: pointer; color: var(--bar-dark); }
.stepper input { width: 110px; text-align: center; font-size: 24px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line2); cursor: pointer; }
.opt .t { flex: 1; }
.opt .v { color: var(--muted); }
.sw { width: 40px; height: 22px; border-radius: 11px; background: #bdbdbd; position: relative; flex: 0 0 auto; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.opt.on .sw { background: var(--green); }
.opt.on .sw::after { left: 20px; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #757575; flex: 0 0 auto; position: relative; }
.opt.on .radio { border-color: var(--green); }
.opt.on .radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--green); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); cursor: pointer; }
.list li .t { flex: 1; min-width: 0; }
.list li .t .s { color: var(--muted); font-size: 13px; }
.notice { padding: 10px 12px; border-radius: 2px; margin: 10px 0; font-size: 14px; }
.notice.warn { background: var(--amber-bg); color: var(--amber); }
.notice.high { background: var(--red-bg); color: var(--red); }
.notice.info { background: var(--blue-bg); color: var(--blue); }
.notice.ok { background: var(--ok-bg); color: var(--bar-dark); }
.keypad-amt { font-size: 30px; text-align: center; width: 100%; }

/* ---------------------------------------------------------------- receipts and refund */
.split2 { display: flex; height: 100%; min-height: 0; }
.split2 > .l { flex: 0 0 400px; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); min-height: 0; }
.split2 > .r { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; min-width: 0; display: flex; flex-direction: column; }
.searchrow { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--line); }
.searchrow input { flex: 1; font-size: 16px; }
.rlist { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rday { padding: 14px 16px 6px; color: var(--bar-dark); font-size: 13px; font-weight: 600; }
.rrow { display: flex; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line2); cursor: pointer; }
.rrow.on { background: var(--ok-bg); }
.rrow .i { width: 26px; text-align: center; font-size: 18px; color: var(--muted); }
.rrow .t { flex: 1; min-width: 0; }
.rrow .t .s { color: var(--muted); font-size: 13px; }
.rrow .a { font-variant-numeric: tabular-nums; }
.more { border: 0; background: none; color: var(--bar-dark); font-weight: 600; padding: 16px; width: 100%; cursor: pointer; }
.paper { width: min(520px, calc(100% - 28px)); margin: 22px auto; background: var(--panel); box-shadow: var(--shadow); padding: 22px 26px; }
.paper .amount { font-size: 38px; }
.paper hr { border: 0; border-top: 1px dashed #bdbdbd; margin: 14px 0; }
.prow { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.prow .s { color: var(--muted); font-size: 13px; }
.prow.b { font-weight: 700; }
.ractions { display: flex; justify-content: flex-end; gap: 6px; width: min(520px, calc(100% - 28px)); margin: 14px auto -10px; }
.flatbtn { border: 0; background: none; color: var(--bar-dark); font-weight: 600; letter-spacing: .5px; padding: 10px 14px; cursor: pointer; border-radius: 2px; text-transform: uppercase; }
.flatbtn.red { color: var(--red); }
.flatbtn:active { background: var(--panel2); }
pre.xml { background: var(--panel2); border: 1px solid var(--line); padding: 10px; font-size: 12px; overflow-x: auto; white-space: pre; }
.rf-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.rf-head { padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rf-bottom { border-top: 1px solid var(--line); padding: 8px 16px 14px; background: var(--panel); }
.rf-bottom .bigbtn { background: var(--red); }

/* ---------------------------------------------------------------- reports, settings */
.page { padding: 16px; max-width: 980px; margin: 0 auto; width: 100%; }
.datebar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; background: var(--panel); box-shadow: var(--shadow); padding: 4px 8px; }
.datebar .ib { color: var(--muted); }
.datebar input { font-size: 16px; }
.datebar .d { flex: 1; text-align: center; font-weight: 500; }
.card { background: var(--panel); box-shadow: var(--shadow); padding: 14px 18px; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--bar-dark); text-transform: uppercase; letter-spacing: .4px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.rep { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.rep:last-child { border-bottom: 0; }
.rep.b { font-weight: 700; }
.rep .s { color: var(--muted); font-size: 13px; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 8px 6px; border-bottom: 1px solid var(--line2); text-align: left; vertical-align: top; }
table.t th { font-size: 12px; color: var(--muted); font-weight: 500; }
table.t td.num, table.t th.num { text-align: right; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn2 { border: 1px solid var(--line); background: var(--panel); border-radius: 2px; padding: 8px 14px; cursor: pointer; font-weight: 500; }
.btn2.danger { color: var(--red); }
.badge { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.badge.warn { background: var(--amber-bg); color: var(--amber); }
.badge.ok { background: var(--ok-bg); color: var(--bar-dark); }
.badge.high { background: var(--red-bg); color: var(--red); }
.badge.info { background: var(--blue-bg); color: var(--blue); }

@media (max-width: 860px) {
  :root { --ticket-w: 320px; }
  .split2 > .l { flex-basis: 300px; }
}
@media (max-width: 700px) {
  #vSale { flex-direction: column; }
  .ticket { flex: 0 0 auto; max-height: 50%; border-left: 0; border-top: 1px solid var(--line); }
  .appbar .right { display: none !important; }
  .split2 { flex-direction: column; }
  .split2 > .l { flex: 0 0 45%; border-right: 0; }
}

/* ---------------------------------------------------------------- login */
.loginpage { align-items: center; justify-content: center; background: var(--bar); }
.login { width: min(380px, 92vw); background: var(--panel); border-radius: 4px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin: auto; }
.login h1 { margin: 0 0 16px; font-size: 21px; font-weight: 500; }
.login label { display: block; margin: 12px 0; font-size: 13px; color: var(--muted); }
.login label input { display: block; width: 100%; margin-top: 4px; font-size: 17px; color: var(--ink); }
.login .go { width: 100%; margin-top: 12px; border: 0; background: var(--green); color: #fff; font-weight: 600; letter-spacing: .5px; padding: 13px; border-radius: 2px; cursor: pointer; }
.seg { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.seg button { flex: 1; border: 0; background: none; padding: 10px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; }
.seg button.on { color: var(--bar-dark); border-bottom-color: var(--green); }
#err { color: var(--red); min-height: 1.2em; }

/* ---------------------------------------------------------------- touch (iPad first)
   Bigger targets (>= 48 px), no double-tap zoom, no text selection while tapping,
   a visible press on everything that can be tapped. */
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, .paper, pre.xml, table.t { -webkit-user-select: text; user-select: text; }
input, select { min-height: 46px; }
button { touch-action: manipulation; }

.grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 12px; }
.tile { transition: transform .08s ease; }
.tile:active { transform: scale(.96); filter: brightness(.94); }
.tile .ico.img { background: #fff; }
.tile .ico.img img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.tile .lbl { padding: 7px 10px 8px; min-height: 58px; }
.tile .nm { font-size: 14px; }
.tile .pr { font-size: 13px; }
.subbar { min-height: 56px; }
.subbar select { font-size: 17px; min-height: 48px; }
.pages button { padding: 16px 26px; font-size: 15px; }
.pages button:active { background: var(--panel2); }

.tl { padding: 14px 16px; font-size: 16px; }
.tl .sub { font-size: 14px; }
.tl.swl { position: relative; padding: 0; overflow: hidden; background: var(--red); touch-action: pan-y; }
.tl.swl::before { content: "Elimina"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #fff; font-weight: 600; letter-spacing: .4px; }
.tl.swl .in { padding: 14px 16px; background: var(--panel); transform: translateX(var(--dx, 0)); transition: transform .17s ease; }
.tl.swl.swiping .in { transition: none; }
.tl.swl.gone .in { transform: translateX(-105%); }
.tl.swl:active { background: var(--red); }
.tl.swl:active .in, .tl.swl.flash .in { background: var(--ok-bg); }
.tl.swl.swiping .in { background: var(--panel); }
.tk-row { padding: 11px 16px; font-size: 16px; }
.tk-row.tot { font-size: 19px; }
.tk-row.disc:active { background: var(--panel2); }
.tk-btns button { min-height: 78px; font-size: 16px; }
.tk-btns button:active:not(:disabled) { filter: brightness(.92); }
.tk-btns .charge small { font-size: 19px; }

.quick button { padding: 16px 6px; font-size: 18px; min-height: 56px; }
.quick button:active { background: var(--panel2); }
.paybtn { padding: 20px 16px; font-size: 17px; min-height: 64px; }
.split-n button { width: 56px; height: 56px; font-size: 26px; }
.split-n button:active, .stepper button:active { background: var(--panel2); }
.srow { padding: 12px 0; }
.srow select, .srow input { min-height: 50px; }
.srow .go { min-height: 50px; font-size: 15px; }
.srow .go:active, .bigbtn:active:not(:disabled) { filter: brightness(.92); }
.bigbtn { padding: 20px; font-size: 17px; min-height: 64px; }

.dlg-h .ib { width: 48px; height: 48px; }
.dlg-h .ib:active { background: var(--panel2); }
.dlg-f .btn { min-height: 48px; padding: 12px 18px; font-size: 15px; }
.dlg-f .btn:active { background: var(--panel2); }
.stepper button { width: 60px; height: 60px; font-size: 28px; }
.stepper input { font-size: 26px; min-height: 56px; }
.opt { padding: 15px 4px; min-height: 56px; font-size: 16px; }
.opt:active, .list li:active, .rrow:active { background: var(--panel2); }
.sw { width: 50px; height: 28px; border-radius: 14px; }
.sw::after { width: 24px; height: 24px; }
.opt.on .sw::after { left: 24px; }
.radio { width: 24px; height: 24px; }
.list li { padding: 15px 4px; min-height: 58px; font-size: 16px; }
.keypad-amt { min-height: 60px; }

.drawer button { padding: 17px 20px; font-size: 16px; }
.drawer button:active { background: var(--panel2); }
.rrow { padding: 14px 16px; min-height: 62px; }
.more { min-height: 56px; }
.flatbtn { min-height: 48px; padding: 12px 18px; font-size: 15px; }
.btn2 { min-height: 46px; padding: 10px 18px; font-size: 15px; }
.btn2:active { background: var(--panel2); }
.datebar .ib:active { background: var(--panel2); }
.rep { padding: 10px 0; }
.login .go { min-height: 52px; font-size: 16px; }
.seg button { min-height: 48px; }
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; padding: 10px; }
}
/* shared login: the ACCEDI link looks like the button; links styled as buttons */
a.go, a.btn2 { display: inline-block; text-align: center; text-decoration: none; box-sizing: border-box; }
.login a.go { min-height: 52px; line-height: 26px; font-size: 16px; }
a.btn2 { color: inherit; }
