/* NomadPOS Green Demo (FCS-2265). Everything is scoped under .npd so the theme is not affected.
   App colours are taken from the real app video (17 Nov 2026). */

.npd {
  --npd-green: #1e7843;
  --npd-green-2: #207745;
  --npd-soft: #e6edeb;
  --npd-pill: #e3efe9;
  --npd-bg: #f3f5f2;
  --npd-ink: #1b1d1c;
  --npd-grey: #cbcbcb;
  --npd-line: #d9dcda;
  --npd-red: #d32f2f;
  --npd-brand: #56ad47;
  --npd-site-ink: #2f3330;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
  color: var(--npd-site-ink);
  line-height: 1.5;
}
.npd *, .npd *::before, .npd *::after { box-sizing: border-box; }
:where(.npd) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; margin: 0; padding: 0; }
:where(.npd) input { font: inherit; margin: 0; }
.npd [hidden] { display: none !important; }

/* ---------- Guide beside the phone (website style) ---------- */
.npd-side { position: sticky; top: 24px; padding-top: 8px; }
.npd .npd-side-title { margin: 0 0 8px; font-size: 28px; line-height: 1.15; font-weight: 700; color: var(--npd-site-ink); }
.npd .npd-side-intro { margin: 0 0 18px; font-size: 16px; }
.npd .npd-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.npd .npd-steps li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #e3e8e2; font-size: 15px; line-height: 1.4; transition: background .2s, border-color .2s; }
.npd-step-num { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef2ee; color: var(--npd-site-ink); font-weight: 700; font-size: 13px; }
.npd .npd-steps li.is-current { border-color: var(--npd-brand); background: #f4faf2; }
.npd .npd-steps li.is-current .npd-step-num { background: var(--npd-brand); color: #fff; }
.npd .npd-steps li.is-done { color: #6b736d; }
.npd .npd-steps li.is-done .npd-step-num { background: var(--npd-brand); color: #fff; font-size: 0; }
.npd .npd-steps li.is-done .npd-step-num::before { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.npd .npd-done-text { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: #f4faf2; font-weight: 500; }
.npd .npd-counter { margin: 0 0 12px; font-size: 15px; }
.npd .npd-counter b { color: var(--npd-green); }
.npd-side-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.npd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: 14px; }
.npd .npd-btn-line { border: 1.5px solid var(--npd-brand); color: var(--npd-green); background: #fff; }
.npd .npd-btn-line:hover { background: #f4faf2; }
.npd .npd-btn-text { color: #5f6762; text-decoration: underline; text-underline-offset: 3px; }
.npd .npd-play, .npd-app .npd-play { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 10px; background: #111; color: #fff; text-decoration: none; line-height: 1.1; border: 1px solid #555; }
.npd-play span { display: flex; flex-direction: column; text-align: left; }
.npd-play small { font-size: 9.5px; letter-spacing: .6px; opacity: .9; }
.npd-play b { font-size: 17px; font-weight: 500; }
.npd .npd-note { margin: 14px 0 0; font-size: 13px; color: #6b736d; }
.npd :focus-visible { outline: 3px solid var(--npd-brand); outline-offset: 2px; }

/* ---------- Phone frame ---------- */
.npd-phone { width: 384px; padding: 12px; border-radius: 46px; background: #121413; box-shadow: 0 30px 60px -20px rgba(16, 38, 26, .45), inset 0 0 0 2px #2c2f2d; }
.npd-screen { position: relative; height: 720px; border-radius: 35px; overflow: hidden; background: var(--npd-bg); }
.npd-noscript { padding: 80px 24px; text-align: center; font-family: system-ui, sans-serif; }

/* ---------- App (the phone screen) ---------- */
.npd-app { position: absolute; inset: 0; display: flex; flex-direction: column; font-family: "Manrope", "Roboto", system-ui, sans-serif; color: var(--npd-ink); font-size: 13px; line-height: 1.35; -webkit-font-smoothing: antialiased; background: var(--npd-bg); }
.npd-status { flex: 0 0 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 26px; background: var(--npd-green); color: #fff; font-size: 11.5px; font-weight: 600; }
.npd-status i { display: inline-flex; gap: 5px; align-items: center; }
.npd-head { flex: 0 0 50px; display: flex; align-items: center; gap: 6px; padding: 0 12px 0 8px; background: var(--npd-green); color: #fff; }
.npd .npd-head h3 { margin: 0; flex: 1; font: 700 18.5px/1.1 "Manrope", system-ui, sans-serif; color: #fff; letter-spacing: -.1px; }
.npd-head.no-back h3 { padding-left: 8px; }
.npd-back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.npd-head-act { font-weight: 700; font-size: 11.5px; color: #fff; padding: 8px 4px; border-radius: 6px; }
.npd-head-icon { width: 34px; height: 34px; display: grid; place-items: center; }
.npd-main { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 6px 14px; scrollbar-width: thin; }
.npd-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* Bottom menu */
.npd-nav { flex: 0 0 58px; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid #e4e7e4; }
.npd-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 9px; font-weight: 600; color: #3e4441; }
.npd-nav .npd-nav-ic { width: 46px; height: 26px; border-radius: 13px; display: grid; place-items: center; color: #555b58; }
.npd-nav button.is-on { color: var(--npd-ink); font-weight: 800; }
.npd-nav button.is-on .npd-nav-ic { background: var(--npd-soft); color: var(--npd-green); }

/* New Sale */
.npd-sale { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 12px; }
.npd-sale-total { font-size: 19px; font-weight: 800; line-height: 1.15; }
.npd-sale small { display: block; font-size: 10px; font-weight: 500; line-height: 1.5; }
.npd-pay { width: 112px; height: 44px; border-radius: 10px; background: var(--npd-grey); color: #fff; font-weight: 800 !important; font-size: 13px; letter-spacing: .4px; box-shadow: 0 2px 4px rgba(0, 0, 0, .12); }
.npd-pay.is-on { background: var(--npd-green); }
.npd-last { display: flex; gap: 8px; margin-top: 8px; align-items: stretch; }
.npd-last .npd-card { flex: 1; padding: 8px 10px; font-size: 11px; font-weight: 600; display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
.npd-last .npd-card b { grid-column: 1 / -1; font-weight: 700; font-size: 11.5px; }
.npd-last .npd-card span:last-child { text-align: right; }
.npd-basket-btn { flex: 0 0 64px; border-radius: 14px; background: var(--npd-green); color: #fff; font-weight: 800 !important; font-size: 11.5px; line-height: 1.2; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.npd-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 8px 0 7px; }
.npd-tabs button { height: 48px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: #111; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.npd-tabs button.is-on { background: var(--npd-green-2); color: #fff; }
.npd-search { width: 100%; height: 40px; border: 1.5px solid var(--npd-line); border-radius: 10px; padding: 0 12px; background: #fff; margin-bottom: 7px; font-size: 13px; }
.npd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.npd-chips button { padding: 7px 12px; border-radius: 999px; background: #fff; font-weight: 600; font-size: 11.5px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.npd-chips button.is-on { background: var(--npd-green-2); color: #fff; }
.npd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.npd-tile { position: relative; min-height: 84px; display: flex; align-items: flex-end; padding: 10px 10px 9px; text-align: left; font-weight: 700 !important; font-size: 11px; line-height: 1.3; background: #fff; border-radius: 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transition: transform .1s; }
.npd-tile:active { transform: scale(.97); }
.npd-tile .npd-qty { position: absolute; left: 9px; top: 9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--npd-green); color: #fff; font-size: 11px; display: grid; place-items: center; }
.npd-info { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; display: grid; place-items: center; color: #555; border-radius: 50%; }
.npd-empty { padding: 26px 18px; text-align: center; font-size: 12.5px; color: #4b524e; }
.npd .npd-empty b { display: block; font-size: 14px; font-weight: 800; color: var(--npd-ink); margin-bottom: 4px; }
.npd-empty .npd-green-btn { margin-top: 12px; }

/* Buttons used in the app */
.npd-green-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 10px; background: var(--npd-green); color: #fff !important; font-weight: 600; font-size: 12.5px; box-shadow: 0 2px 4px rgba(0, 0, 0, .15); }
.npd-white-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; border-radius: 10px; background: #fff; color: var(--npd-ink); font-weight: 500; font-size: 12.5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.npd-soft-btn { display: grid; place-items: center; min-width: 92px; min-height: 42px; padding: 4px 10px; border-radius: 8px; background: var(--npd-soft); color: var(--npd-green); font-weight: 700; font-size: 10px; line-height: 1.3; text-align: center; text-transform: uppercase; }

/* Basket */
.npd-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 12px; margin-bottom: 7px; }
.npd-line b { font-size: 12px; }
.npd-line small { font-size: 11px; color: #3f4542; }
.npd-line .npd-line-total { font-weight: 700; font-size: 12px; text-align: right; }
.npd-stepper { display: flex; align-items: center; gap: 4px; }
.npd-stepper button { width: 32px; height: 32px; border-radius: 8px; background: var(--npd-soft); color: var(--npd-green); font-weight: 800 !important; font-size: 16px; display: grid; place-items: center; }
.npd-stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.npd-stepper .npd-remove { background: none; color: #6b706d; margin-left: 4px; }
.npd-basket-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; margin-top: 4px; }
.npd-basket-foot b { font-size: 16px; font-weight: 800; }

/* Payment */
.npd-due { padding: 14px 14px 12px; position: relative; }
.npd .npd-due h4 { margin: 0 0 22px; font: 800 18px/1.2 "Manrope", system-ui, sans-serif; color: var(--npd-ink); }
.npd .npd-due p { margin: 0; font-size: 11.5px; font-weight: 500; }
.npd .npd-due p + p { font-size: 9.5px; }
.npd .npd-due .npd-pay { position: absolute; right: 12px; top: 40px; width: 82px; height: 44px; }
.npd-payby { text-align: center; font-size: 11.5px; font-weight: 600; margin: 16px 0 10px; }
.npd-method { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-bottom: 14px; background: #fff; border: 1px solid #dfe2df; border-radius: 12px; font-weight: 600; font-size: 13px; }
.npd-method i { width: 36px; height: 36px; border-radius: 50%; background: var(--npd-soft); display: grid; place-items: center; color: var(--npd-green); }

/* Cash payment */
.npd-tender { display: flex; align-items: center; gap: 8px; padding: 12px; margin: 8px 0; font-size: 11px; color: #3f4542; }
.npd-tender output { font-weight: 800; font-size: 14px; color: var(--npd-ink); padding: 1px 2px; border-radius: 2px; }
.npd-tender output.is-fresh { background: var(--npd-green); color: #fff; }
.npd-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 9px; }
.npd-quick button { height: 32px; border-radius: 8px; background: var(--npd-green); color: #fff; font-weight: 600; font-size: 11px; }
.npd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.npd-keys button { height: 70px; border-radius: 10px; background: #fff; font-weight: 600; font-size: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); border: 1px solid #ebedeb; }
.npd-keys button:active { background: var(--npd-soft); }

/* Transaction Complete (Receipt Options) */
.npd-app.is-complete, .npd-app.is-complete .npd-main { background: var(--npd-green-2); }
.npd-app.is-complete .npd-head { background: var(--npd-green-2); }
.npd-done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 0 16px; }
.npd-tick { width: 78px; height: 78px; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.npd .npd-done h4 { margin: 0; font: 600 17px/1.3 "Manrope", system-ui, sans-serif; color: #fff; }
.npd-done small { font-size: 9.5px; font-weight: 500; margin-top: 2px; }
.npd .npd-done span { color: #fff; margin-top: 26px; font-size: 12px; font-weight: 500; }
.npd .npd-done strong { font-size: 33px; font-weight: 700; line-height: 1.2; color: #fff; }
.npd-done-btns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; padding: 18px 14px 22px; background: #fff; }
.npd-done-btns button { height: 48px; border-radius: 10px; font-size: 11.5px; font-weight: 500; }
.npd-done-btns .npd-done-email { background: var(--npd-green-2); color: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); }
.npd-done-btns .npd-done-ok { background: #fff; color: var(--npd-green); border: 2px solid var(--npd-green-2); }

/* Transactions */
.npd-tx { padding: 12px 14px; margin: 0 6px 10px; position: relative; font-size: 10.5px; line-height: 1.55; }
.npd-tx-no { font-size: 13.5px; font-weight: 800; margin-right: 6px; }
.npd-tx-dev { font-size: 9px; font-weight: 500; }
.npd-tx b { display: block; font-size: 12.5px; font-weight: 800; }
.npd-tx-pill { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--npd-pill); color: var(--npd-green); font-size: 8px; font-weight: 800; letter-spacing: .3px; }

/* Products and Product form */
.npd-prod { padding: 12px 14px; margin-bottom: 10px; font-size: 9.5px; line-height: 1.6; color: #3f4542; }
.npd-prod b { display: block; font-size: 12.5px; color: var(--npd-ink); margin-bottom: 2px; }
.npd-field { padding: 10px 10px 12px; margin-bottom: 8px; }
.npd-field label, .npd-field .npd-label { display: block; font-size: 9px; font-weight: 700; margin-bottom: 6px; }
.npd-input { width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid #b9bfbb; border-radius: 9px; background: #fff; color: var(--npd-ink); font-size: 12px; }
.npd-input:focus { outline: none; border-color: var(--npd-green); box-shadow: 0 0 0 1px var(--npd-green); }
.npd-input[readonly] { background: #fff; }
.npd-input:disabled { background: #f1f3f1; color: #8a908c; }
.npd-err { display: block; text-align: right; color: var(--npd-red); font-size: 9.5px; margin-top: 3px; min-height: 13px; }
.npd-row { display: flex; align-items: center; gap: 10px; }
.npd-tax { display: grid; grid-template-columns: 1fr 50px 1.05fr; gap: 8px; align-items: end; }
.npd-check { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 500; margin-bottom: 8px; }
.npd .npd-check input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--npd-green); }
.npd-tax .npd-input { text-align: left; }
.npd-tax-pct { text-align: center !important; padding: 0 !important; }
.npd-cat-text { flex: 1; padding-left: 12px; font-size: 11.5px; color: #3f4542; }
.npd-cat-text.is-set { color: var(--npd-ink); font-weight: 600; }

/* Pop-ups (inside the phone) */
.npd-dim { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(0, 0, 0, .55); animation: npd-fade .15s ease-out; }
.npd-dialog { width: 100%; max-width: 300px; background: #fff; border-radius: 14px; padding: 20px 18px 16px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); animation: npd-pop .18s ease-out; }
.npd .npd-dialog h4 { margin: 0 0 14px; font: 700 14px/1.3 "Manrope", system-ui, sans-serif; color: var(--npd-ink); }
.npd .npd-dialog p { margin: 0 0 14px; font-size: 12px; line-height: 1.5; color: #3f4542; }
.npd-dialog-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.npd-dialog-btns.one { grid-template-columns: 1fr; }
.npd-dialog .npd-play { width: 100%; justify-content: center; margin-bottom: 10px; }
.npd-lock { width: 46px; height: 46px; border-radius: 50%; background: var(--npd-soft); color: var(--npd-green); display: grid; place-items: center; margin-bottom: 12px; }
.npd-sheet { position: absolute; inset: 10px 8px; display: flex; flex-direction: column; background: #fff; border-radius: 16px; padding: 18px 16px 16px; animation: npd-pop .18s ease-out; }
.npd .npd-sheet h4 { margin: 0 0 14px; font: 800 13.5px/1.2 "Manrope", system-ui, sans-serif; text-transform: uppercase; color: var(--npd-ink); }
.npd-sheet-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px; }
.npd-sheet-list button { text-align: left; padding: 14px 16px; border-radius: 10px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); font-weight: 700; font-size: 12px; }
.npd-sheet-list button.is-on { box-shadow: 0 0 0 2px var(--npd-green); }
.npd-sheet .npd-dialog-btns { margin-top: 12px; }
.npd-sending { display: flex; align-items: center; gap: 16px; padding: 18px 20px; font-size: 11px; }
.npd-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--npd-soft); border-top-color: var(--npd-green); animation: npd-spin .8s linear infinite; }
.npd-toast { position: absolute; left: 14px; right: 14px; top: 86px; z-index: 30; padding: 10px 14px; border-radius: 10px; background: #2b2f2d; color: #fff; font-size: 11.5px; text-align: center; animation: npd-fade .2s ease-out; }

/* Reports (locked preview) */
.npd-locked { position: relative; }
.npd-locked-paper { margin: 4px 6px; padding: 18px 14px; background: #fff; border-radius: 12px; font: 11px/1.45 "Courier New", monospace; color: #222; white-space: pre; filter: blur(3.5px); user-select: none; pointer-events: none; }
.npd-locked-card { position: absolute; left: 16px; right: 16px; top: 90px; padding: 20px 18px; background: #fff; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); text-align: center; }
.npd-locked-card .npd-lock { margin: 0 auto 10px; }
.npd .npd-locked-card h4 { margin: 0 0 6px; font: 800 14px/1.3 "Manrope", system-ui, sans-serif; color: var(--npd-ink); }
.npd .npd-locked-card p { margin: 0 0 14px; font-size: 11.5px; color: #3f4542; }

/* Guide tips: soft pulse on what to tap next */
.npd-app .is-hint { position: relative; z-index: 2; animation: npd-hint 1.6s ease-in-out infinite; }
@keyframes npd-hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(86, 173, 71, .75); } 60% { box-shadow: 0 0 0 7px rgba(86, 173, 71, 0); } }
@keyframes npd-fade { from { opacity: 0; } }
@keyframes npd-pop { from { opacity: 0; transform: scale(.96); } }
@keyframes npd-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .npd-app .is-hint { animation: none; box-shadow: 0 0 0 3px rgba(86, 173, 71, .85); }
  .npd-dim, .npd-dialog, .npd-sheet, .npd-toast { animation: none; }
}

/* ---------- Phones and small screens ---------- */
@media (max-width: 760px) {
  .npd { grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: center; }
  .npd-side { position: static; width: 100%; max-width: 420px; }
  .npd .npd-side-title { font-size: 24px; }
  .npd .npd-steps li { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 420px) {
  .npd-phone { width: 100%; padding: 8px; border-radius: 34px; }
  .npd-screen { height: min(720px, calc(100svh - 40px)); min-height: 560px; border-radius: 27px; }
}
