/* Abdul's rules, applied on top of the prototype's stylesheet (proto.css).
   Every rule here is a deliberate difference from the prototype, or a part the
   prototype does not have. Everything else comes from proto.css unchanged.

   1. Touch targets are at least 56px (spec §1.1). Where the prototype draws a
      smaller control, the tappable box grows to 56px and the visible shape keeps
      the prototype's size, drawn by ::before. It looks like the prototype and
      takes a 56px tap.
   2. Buttons that commit something are blue (Abdul, 2026-10-14): Start a sale,
      Take payment, Complete sale, Share, Resume, Set quantity, Close the day.
   3. The logo is on every screen, including panels.
   4. Cart lines are two rows with 56px steppers: names are never cut short.
   5. Receipt: Merchant ID 22px; colour lockup on screen, mono when printed.     */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
}

[hidden] { display: none !important; }

/* ---- 1. 56px hit areas, prototype-sized visuals ---------------------------- */
.hit56 { position: relative; isolation: isolate; background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
.hit56::before { content: ''; position: absolute; z-index: -1; pointer-events: none; }

.hBack.hit56, .sBk.hit56 { flex: 0 0 56px; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin: -8px -4px -8px -10px; }
.hBack.hit56::before, .sBk.hit56::before { inset: 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.sBk.hit56::before { inset: 8px; border-radius: 13px; }
.more.hit56 { width: 56px; height: 56px; margin: -7px -7px -7px -3px; }
.more.hit56::before { inset: 7px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); }
.sX.hit56 { flex: 0 0 56px; width: 56px; height: 56px; margin: -7px -7px -7px 0; }
.sX.hit56::before { inset: 7px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); }
.scan.hit56 { height: 56px; min-width: 56px; justify-content: center; margin: -7px 0; }
.scan.hit56::before { inset: 7px 0; border-radius: 13px; background: var(--ink); box-shadow: var(--e2); }
.scan.hit56 { color: #fff; }

/* chips: a 36px pill inside a 56px button; the row's padding absorbs the difference */
.chips { padding-top: 0; padding-bottom: 0; }
.ch { position: relative; isolation: isolate; min-height: 56px; min-width: 56px; justify-content: center; background: transparent !important; border-color: transparent !important; }
.ch::before { content: ''; position: absolute; inset: 10px 0; z-index: -1; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.ch[aria-selected="true"] { color: #fff; }
.ch[aria-selected="true"]::before { background: var(--ink); border-color: var(--ink); }

.hold.hit56 { height: 56px; margin: -5px 0; }
.hold.hit56::before { inset: 5px 0; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.hold b { top: -1px; right: -6px; }
.srchIn { height: 46px; }

.hd .info { position: relative; isolation: isolate; width: 56px; height: 56px; margin: -17px -11px -17px auto; background: transparent; border: 0; }
.hd .info::before { content: ''; position: absolute; inset: 17px; z-index: -1; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }

/* tile price zones, quick-cash, chips and secondary buttons: 56px tall */
.two button, .one { min-height: 56px; }
.clr, .escB, .nw, .expB, .qkB, .dChip, .addP, .miX, .seg, .act, .cust, .rw, .rcRow, .mi, .al, .mv, .miniB, .gR { min-height: 56px; }
.qkB { padding-top: 0; padding-bottom: 0; min-width: 56px; }
.payX.hit56 { width: 56px; height: 56px; margin: -13px -13px -13px 0; }
.payX.hit56::before { inset: 13px; border-radius: 9px; }
.scX { min-height: 56px; }
.torch { width: 56px; height: 56px; }
.goBtn { height: 64px; }

/* ---- 2. blue for commit ---------------------------------------------------- */
.sell, .fin, .wa, .scDone {
  background: linear-gradient(180deg, #0B5FFF, #0049D1); color: #fff;
  box-shadow: 0 10px 22px -8px rgba(11,95,255,.55);
}
.sell { background: linear-gradient(145deg, #0B5FFF, #0043C4); }
.fin:disabled, .goBtn:disabled, .wa:disabled { background: var(--line); color: var(--ink3); box-shadow: none; }
.fin { display: flex; align-items: center; justify-content: center; gap: 9px; }

/* ---- 3. the logo on panels ------------------------------------------------- */
.sHead .logo { width: 34px; height: 34px; }
.sHead { gap: 10px; }
.sT { min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; }

/* ---- toast: never wider than the screen ------------------------------------ */
.tst { white-space: normal; max-width: min(92vw, 420px); text-align: center; border-radius: 22px; }
.tst.warn { background: #FFF4E5; color: #9A5B06; border: 1px solid rgba(232,130,12,.35); }

/* ---- top bar: online / offline ---------------------------------------------- */
.net.off { display: flex; background: #F1F3F7; color: var(--ink2); }
.net.off i { background: var(--ink3); box-shadow: none; }
.prac { display: flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #FFF4E5; color: #9A5B06;
  font-size: 11px; font-weight: 800; letter-spacing: .4px; flex: 0 0 auto; }

/* ---- 4. cart lines: two rows, 56px controls --------------------------------- */
.ln { display: block; }
.lnTop { display: flex; align-items: flex-start; gap: 12px; }
.lnT { white-space: normal; line-height: 1.3; }
.lnS b { color: var(--ink2); }
.lnR { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ln .stp { flex: 0 0 auto; border-radius: 16px; }
.ln .stp button { width: 56px; height: 56px; font-size: 23px; }
.ln .stp .stpN { color: var(--ink); font-size: 17px; font-weight: 800; min-width: 56px; width: auto; padding: 0 6px;
  text-decoration: underline dotted; text-underline-offset: 4px; }
.lnA { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
.ln .del { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.undoBar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 0 18px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.undoBar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.undoB { min-height: 56px; min-width: 96px; padding: 0 18px; border-radius: 14px; background: var(--brandL); color: var(--brand); font-weight: 800; font-size: 15px; }
.emptyCol { color: var(--ink3); font-size: 14px; font-weight: 600; text-align: center; padding: 22px 16px; line-height: 1.6; }
.dockIn .lines { overscroll-behavior: contain; }
.sum { cursor: pointer; }
.chev { width: 56px; height: 56px; border-radius: 16px; font-size: 13px; }
.dockIn .badge { flex: 0 0 auto; }

/* stock line words (never colour alone) */
.st b { font-weight: 800; }
.st.lv-LOW, .st.lv-OUT, .st.lv-NEGATIVE { color: var(--stop); }
.st.lv-REORDER b { color: #9A5B06; }
.st.lv-NEGATIVE { font-weight: 800; }

/* ---- 5. receipt ------------------------------------------------------------ */
.lockup { display: flex; align-items: center; justify-content: center; gap: .22em; font-weight: 800; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.lockup img { height: 1.15em; width: auto; margin-right: .1em; }
.lockup .lkMono { display: none; }
.lkS { color: #0E6B33; }
.lkM { background: linear-gradient(180deg, #F2C23E, #BE7D0E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gLogo.lockup { width: auto; font-size: 38px; }
.rLogo.lockup { width: auto; font-size: 32px; height: 40px; }
.rPayV { font-size: 22px; }
.rLa { font-weight: 700; white-space: nowrap; }
.rStep { display: flex; gap: 7px; align-items: flex-start; font-size: 10.5px; font-weight: 600; line-height: 1.35; }
.rStrap { margin-top: 9px; font-weight: 800; letter-spacing: .8px; font-size: 9.5px; text-transform: uppercase; color: var(--ink2); }
.rFoot b { color: var(--ink); }
.rP.cr { color: var(--credit); font-weight: 800; }
.rVoid { background: #FFEBEC; color: #B4232A; border-radius: 10px; padding: 8px 10px; margin: -6px 0 14px; text-align: center; font-size: 12px; font-weight: 700; }
.rVoid b { display: block; font-size: 18px; letter-spacing: 4px; }
.rcp.isVoid .rL, .rcp.isVoid .rT { text-decoration: line-through; color: var(--ink3); }
.rPrac { background: #FFF4E5; color: #9A5B06; border-radius: 10px; padding: 8px; margin: -6px 0 14px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
@media print {
  .lockup .lkCol { display: none; }
  .lockup .lkMono { display: block; }
  .lkS, .lkM { color: #000 !important; background: none !important; -webkit-text-fill-color: #000 !important; }
  .rPay2 { background: none; border: 1px solid #000; }
  .rPayK, .rPayS, .rPayV, .rStrap, .rFoot, .rShop, .rM, .rLq, .rP, .rTag, .rVoid { color: #000 !important; }
  .rStep b:first-child { background: #000; }
  .sHead, .dHero.noPrint, .noPrint { display: none !important; }
}

/* ---- parts the prototype does not have ----------------------------------- */

/* sign-in: Back top-left on the PIN step (spec §13.1) */
.gBack { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 14px; }
.pinWrap .pad { margin-top: 4px; }
.gate .note { padding: 0; }

/* banners on Home: clock, update, practice, a loud missing backup */
.banner { border-radius: 16px; padding: 13px 16px; margin-bottom: 12px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.banner.warn { background: var(--warnL); color: #8A5205; border: 1px solid rgba(232,130,12,.28); }
.banner.info { background: var(--brandL); color: var(--brandD); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.banner.info span { flex: 1 1 180px; }
.bannerB { min-height: 56px; padding: 0 18px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 800; }
.practiceBar { position: sticky; top: 0; z-index: 30; background: #FFF4E5; color: #9A5B06; text-align: center; font-size: 12.5px; font-weight: 800;
  letter-spacing: .5px; padding: 7px 10px; border-bottom: 1px solid rgba(232,130,12,.3); }

/* MoMo recorded by confirmation (phase 1); the prototype's gateway form is phase 4 */
.momoChk { background: var(--brandL); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.momoK { font-size: 11.5px; font-weight: 800; letter-spacing: .6px; color: var(--brandD); text-transform: uppercase; }
.momoChk ol { margin: 8px 0 0; padding-left: 20px; font-size: 14.5px; font-weight: 600; line-height: 1.55; }

/* Payment fits one phone screen (Abdul: no Complete below the fold). Amount
   due stays pinned at the top, change due and Complete at the bottom; the
   method buttons and pad sit between and never hide under either. */
#sB .due { position: sticky; top: 0; z-index: 4; background: var(--paper); padding: 2px 0 10px; }
#sB .dueV { font-size: 36px; margin-top: 2px; }
#sB .mth { margin-bottom: 12px; gap: 8px; }
#sB .mBtn { height: 60px; min-height: 60px; padding-top: 6px; padding-bottom: 6px; }
.pad button { height: 58px; }
#sB .tin { padding-top: 10px; padding-bottom: 10px; margin-bottom: 10px; }
#sB .tinV { font-size: 25px; }
#sB .qk { margin-bottom: 10px; }
.payFoot { position: sticky; bottom: calc(-28px - env(safe-area-inset-bottom, 0px)); margin: 6px -20px 0; padding: 8px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(246,247,251,0), var(--paper) 10px); z-index: 5; }
.payFoot .chg { margin: 0 0 8px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 16px; }
.payFoot .chgV { font-size: 40px; margin: 0; line-height: 1.05; }
.chg.short { background: var(--warnL); border-color: rgba(232,130,12,.25); }
.chg.short .chgK, .chg.short .chgV { color: #9A5B06; }
.chg.cr { background: var(--creditL, #F3EEFF); border-color: rgba(139,92,246,.25); }
.chg.cr .chgK, .chg.cr .chgV { color: var(--credit); }
.payFoot .fin { margin-top: 0; height: 64px; }
.rw .chargeT { color: var(--brand); font-weight: 800; font-size: 14px; flex: 0 0 auto; }

/* customers: consent tick (spec §4.3 as amended) */
.tick { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; margin-bottom: 9px; font-size: 14.5px; font-weight: 700; }
.tick input { width: 26px; height: 26px; flex: 0 0 auto; accent-color: var(--brand); }
.callB { flex: 0 0 auto; width: 84px; min-height: 56px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.fld { display: block; margin-bottom: 4px; }
.fld > span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink2); margin: 0 2px 6px; }

/* close the day: the two amounts typed on the one pad */
.dField { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 14px 18px; margin-bottom: 10px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; text-align: left; }
.dField span { font-size: 13px; color: var(--ink3); font-weight: 700; }
.dField b { font-size: 26px; font-weight: 800; letter-spacing: -.8px; }
.dField.on { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brandL); }
.vb.ok { background: var(--goL); border: 1px solid rgba(18,161,80,.2); color: #0A7A3D; }
.vb.warnV { background: var(--warnL); border: 1px solid rgba(232,130,12,.22); color: #9A5B06; }
.vbS { font-size: 12.5px; font-weight: 600; margin-top: 4px; opacity: .85; }
.daySum { white-space: pre-wrap; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.6; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0 0 14px; }

/* PIN dots inside the gate */
.pinWrap { width: 100%; }

/* void */
.voidHero { background: #FFEBEC; color: #B4232A; border-radius: 22px; padding: 20px; text-align: center; margin-bottom: 6px; }
.voidHero .vbS { color: #B4232A; }
.finStop { width: 100%; height: 62px; border-radius: 17px; margin-top: 16px; background: var(--stop); color: #fff; font-size: 18px; font-weight: 800; }
.finStop:disabled { background: var(--line); color: var(--ink3); }
.isVoid .rwT { text-decoration: line-through; color: var(--ink3); }

/* status pills on receipt rows (prototype hist(): CASH / MOMO / CREDIT) */
.p-CASH { background: #E8F8EF; color: #0C7A3E; }
.p-MOMO { background: #EBF2FF; color: #0B5FFF; }
.p-CREDIT { background: #F3EEFF; color: #8B5CF6; }
.p-VOID { background: #FFEBEC; color: #B4232A; }

/* the scanner: typed code, and the unknown-barcode question */
.scType { display: flex; gap: 8px; margin-bottom: 10px; }
.scType input { flex: 1; min-width: 0; height: 56px; border-radius: 15px; border: 0; background: rgba(255,255,255,.12); color: #fff; padding: 0 16px;
  font-size: 16px; font-weight: 700; outline: none; }
.scType input::placeholder { color: rgba(255,255,255,.5); }
.scType button { min-width: 72px; height: 56px; border-radius: 15px; background: rgba(255,255,255,.18); color: #fff; font-weight: 800; }
.scAsk { margin: 0 18px 10px; padding: 14px 16px; border-radius: 16px; background: #FFF4E5; color: #8A5205; font-size: 14px; font-weight: 700; line-height: 1.45; }
.scAsk .scAskB { display: flex; gap: 8px; margin-top: 10px; }
.scAsk button { flex: 1; min-height: 56px; border-radius: 14px; background: #fff; color: var(--ink); font-weight: 800; }
.scAsk button.go { background: var(--brand); color: #fff; }
.scNo { color: rgba(255,255,255,.75); text-align: center; font-size: 13.5px; font-weight: 600; padding: 20px; line-height: 1.6; }
.fi .stp button { width: 56px; height: 56px; color: #fff; font-size: 22px; }
.feed .stp span { color: #fff; min-width: 26px; text-align: center; font-weight: 800; }

/* home: stats line and the menu's practice row */
.mi.prac .miT { color: #9A5B06; }
.rw.tapRow { cursor: pointer; }
.heroX { position: relative; font-size: 12.5px; font-weight: 700; opacity: .85; margin-top: 10px; }

/* wide screens: the prototype's cart column, plus our two-row lines */
@media (min-width: 900px) {
  .ln .stp button { width: 56px; height: 56px; }
}

/* The dock is taller than the prototype's (56px Clear and Hold, 64px Take
   payment): the grid's bottom room grows with it, so the last tiles can always
   scroll clear of the dock. */
.grid { padding-bottom: calc(300px + env(safe-area-inset-bottom, 0px)); }
