/* ==========================================================================
   POS pop-ups (Nov 2026): checkout, waiting for a payment, sale complete,
   options, weighing, custom item, cash-up and sales history. Drawn by
   assets/js/app/pos.js, pos-modals.js and pos-shifts.js; loaded after
   modals.css so these sizes win. Solid colours say what a thing is: Cash
   green, MoMo yellow, Card blue, the change yellow, short red.
   ========================================================================== */
.modal.pco-modal, .modal.pwt-modal, .modal.pdn-modal, .modal.pop-modal, .modal.pmw-modal,
.modal.pcu-modal, .modal.pcx-modal, .modal.psh-modal {
    --pc-cash: #16a34a; --pc-momo: #facc15; --pc-momo-b: #eab308; --pc-card: #2563eb;
    --pc-g: #0e7a55; --pc-g2: #0a5e42; --pc-gs: #e8f5ee; --pc-line: #e4e8e6; --pc-soft: #f3f5f4; --pc-mut: #4b5650;
    color: #000;
}
.pco-lbl { font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #334155; margin: 0 0 6px; }

/* Shared: product picture, quantity stepper, keypad */
.pop-head { display: flex; align-items: center; gap: 12px; }
.pop-ph, .pco-th { position: relative; display: grid; place-items: center; overflow: hidden; flex: none; background: var(--pc-soft); }
.pop-ph { width: 58px; height: 58px; border-radius: 14px; }
.pop-ph img, .pco-th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pop-ph em, .pco-th em { font-style: normal; font-weight: 900; color: var(--pc-g2); font-size: 15px; }
.pop-head b { display: block; font-size: 16px; font-weight: 900; line-height: 1.25; }
.pop-head small { font-size: 12.5px; font-weight: 700; color: var(--pc-mut); }
.pop-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pop-qty .pco-lbl { margin: 0; }
.pop-stp { display: flex; align-items: center; border: 1.5px solid #d6dcd9; border-radius: 12px; height: 44px; overflow: hidden; background: #fff; flex: none; }
.pop-stp button { width: 44px; height: 42px; border: 0; background: transparent; font-size: 20px; font-weight: 900; color: #000; cursor: pointer; }
.pop-stp button:active { background: var(--pc-soft); }
.pop-stp b { min-width: 44px; text-align: center; font-size: 17px; font-weight: 900; }
.pop-stp.is-s { height: 34px; border-radius: 9px; }
.pop-stp.is-s button { width: 30px; height: 32px; font-size: 16px; }
.pop-stp.is-s input { width: 40px; height: 32px; border: 0 !important; text-align: center; font-size: 14px; font-weight: 900; padding: 0 !important; background: transparent !important; box-shadow: none !important; -moz-appearance: textfield; color: #000; }
.pop-stp.is-s input::-webkit-outer-spin-button, .pop-stp.is-s input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pkp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pkp-k { height: 44px; border-radius: 11px; background: #fff; border: 1.5px solid #e1e5e3; font-size: 18px; font-weight: 900; color: #000; cursor: pointer; display: grid; place-items: center; }
.pkp-k:active { background: var(--pc-soft); transform: scale(.97); }
.pkp-k.is-fn { background: var(--pc-soft); font-size: 15px; }
.pmw-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--pc-soft); border-radius: 12px; padding: 4px; }
.pmw-seg button { height: 34px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 900; color: #334155; cursor: pointer; }
.pmw-seg button.is-on { background: #000; color: #fff; }

/* ==== Checkout ========================================================== */
@media (min-width: 860px) {
    body .modal-overlay.pco-overlay { padding: 20px; }
    body .modal-overlay .modal.pco-modal { width: min(1100px, calc(100vw - 40px)); max-width: none; height: min(720px, calc(100dvh - 40px)); max-height: none; }
}
@media (max-width: 859px) {
    /* A sheet that starts below the phone's status bar (notch, Snnel app). */
    body .modal-overlay .modal.pco-modal { width: 100%; max-width: none; height: calc(100dvh - max(env(safe-area-inset-top, 0px), 8px) - 8px); max-height: calc(100dvh - max(env(safe-area-inset-top, 0px), 8px) - 8px); border-radius: 20px 20px 0 0 !important; }
}
body .modal-overlay .modal.pco-modal .modal-body { padding: 0; overflow: hidden; display: flex; min-height: 0; }
/* The old checkout's wrapper rule (pages-business.css: height 0) must not apply. */
body .modal-overlay .modal.pco-modal .pco.pos-checkout-wrap { flex: 1 1 auto; height: auto; padding: 0; overflow: hidden; background: transparent; }
@media (max-width: 859px) { body .modal-overlay .modal.pco-modal .pco.pos-checkout-wrap { overflow-y: auto; } }
.pco { display: grid; grid-template-columns: 340px minmax(0, 1fr); flex: 1; min-height: 0; width: 100%; }
.pco-order { border-right: 1px solid var(--pc-line); background: #fbfcfb; display: flex; flex-direction: column; min-height: 0; padding: 12px 14px; }
.pco-oh { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 0 0 6px; font: inherit; font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #334155; cursor: default; text-align: left; }
.pco-oh em { font-style: normal; background: #000; color: #fff; border-radius: 9px; padding: 1px 7px; font-size: 11px; letter-spacing: 0; margin-left: 4px; }
.pco-oh b, .pco-oh .bi { display: none; }
.pco-lines { flex: 1; min-height: 0; overflow-y: auto; }
.pco-ln { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef1ef; }
.pco-th { width: 36px; height: 36px; border-radius: 9px; }
.pco-lt { flex: 1; min-width: 0; }
.pco-lt b { display: block; font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pco-lt small { font-size: 11.5px; font-weight: 700; color: var(--pc-mut); }
.pco-lv { font-size: 13px; font-weight: 900; white-space: nowrap; }
.pco-sum { border-top: 1px solid var(--pc-line); padding-top: 8px; margin-top: 8px; }
.pco-sr { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 700; color: #334155; padding: 2px 0; }
.pco-sr b { font-weight: 800; color: #000; white-space: nowrap; }
.pco-sr.is-save, .pco-sr.is-save b { color: var(--pc-g2); }
.pco-tot { margin-top: 8px; border-radius: 14px; background: #0d100e; color: #fff; padding: 10px 14px; }
.pco-tot span { font-size: 11px; font-weight: 900; color: #b8c4bd; text-transform: uppercase; letter-spacing: .05em; }
.pco-tot b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; color: #fff; }

.pco-pay { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; }
/* iPhone gives number boxes a wide size of their own: nothing may widen the panel. */
.pco-pay, .pco-order, .pco-pay > *, .pco-cash > *, .pco-two > * { min-width: 0; max-width: 100%; }
.pco-cash { grid-template-columns: minmax(0, 1fr); }
.pco-cin input { width: 100%; }
.pco-pm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pco-pmb { --c: #64748b; position: relative; height: 52px; border-radius: 13px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 900; color: #000; cursor: pointer; margin: 0; }
.pco-pmb input { position: absolute; opacity: 0; pointer-events: none; }
.pco-pmb .bi { font-size: 19px; }
.pco-pmb.is-cash { --c: var(--pc-cash); } .pco-pmb.is-momo { --c: var(--pc-momo-b); } .pco-pmb.is-card { --c: var(--pc-card); }
.pco-pmb.is-active { background: var(--c); color: #fff; }
.pco-pmb.is-momo.is-active { background: var(--pc-momo); color: #000; }
.pco-pmb.is-active::after { content: "\F26E"; font-family: 'bootstrap-icons'; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; font-size: 13px; display: grid; place-items: center; border: 2px solid #fff; }

.pco-cash { border-radius: 14px; background: var(--pc-soft); padding: 10px; display: grid; gap: 8px; }
.pco-cin { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--pc-cash); border-radius: 12px; height: 54px; padding: 0 12px; margin: 0; cursor: text; }
.pco-cin span { font-size: 13px; font-weight: 900; color: var(--pc-mut); }
.pco-cin input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; box-shadow: none !important; font-size: 26px !important; font-weight: 900; color: #000; padding: 0 !important; height: 50px; -moz-appearance: textfield; }
.pco-cin input::-webkit-outer-spin-button, .pco-cin input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pco-cin small { font-size: 11.5px; font-weight: 800; color: var(--pc-mut); white-space: nowrap; }
.pco-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pco-notes:empty { display: none; }
.pco-qc { height: 38px; border-radius: 10px; border: 1.5px solid var(--pc-cash); background: #fff; font-size: 14px; font-weight: 900; color: #14532d; cursor: pointer; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.pco-qc.is-on { background: var(--pc-cash); color: #fff; }
.pco-chg { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 12px; background: var(--pc-momo); padding: 8px 14px; }
.pco-chg span { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.pco-chg b { font-size: 24px; font-weight: 900; }
.pco-chg.is-due { background: #fee2e2; }
.pco-chg.is-due b { color: #b91c1c; }

.pco-online { display: grid; gap: 8px; }
.pco-online .pco-lbl { margin: 0; }
.pco-via { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 6px; }
.pco-vb { height: 44px; border-radius: 11px; border: 1.5px solid #d6dcd9; background: #fff; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 800; color: #000; cursor: pointer; padding: 0 8px; }
.pco-vb .bi { font-size: 16px; }
.pco-vb.is-on { background: #000; border-color: #000; color: #fff; }
.pco-vb[data-via="whatsapp"] .bi { color: #16a34a; }
.pco-vb[data-via="whatsapp"].is-on .bi { color: #4ade80; }
.pco-viahelp { margin: 0; font-size: 12.5px; font-weight: 700; color: #334155; line-height: 1.45; background: #fffbea; border: 1px solid #fde68a; border-radius: 10px; padding: 8px 10px; }
.pco-linkph { display: grid; gap: 4px; margin: 0; }
.pco-linkph[hidden] { display: none; }
.pco-linkph span { font-size: 12px; font-weight: 800; color: #334155; }
.pco-linkph input { height: 42px; border-radius: 10px; border: 2px solid var(--pc-momo-b); font-size: 15px; font-weight: 800; padding: 0 12px; }

.pco-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.pco-cf { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 6px; }
.pco-cname { position: relative; }
.pco-cf input { width: 100%; height: 40px; border-radius: 10px; border: 1.5px solid #d6dcd9; font-size: 13px; font-weight: 700; padding: 0 10px; color: #000; background: #fff; }
.pco-cf input:focus, .pco-xin input:focus, .pco-xp textarea:focus { border-color: var(--pc-g); outline: 0; box-shadow: 0 0 0 3px rgba(14, 122, 85, .12); }
#pos-loyalty-section { margin-top: 8px; }
.pco-xb { display: flex; flex-wrap: wrap; gap: 6px; }
.pco-x { height: 34px; padding: 0 11px; border-radius: 999px; border: 1.5px dashed #b9c2bd; background: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #1f2a24; cursor: pointer; }
.pco-x em { font-style: normal; background: #f59e0b; color: #000; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 900; }
.pco-x em[hidden] { display: none; }
.pco-x.is-set { border-style: solid; border-color: var(--pc-g); background: var(--pc-gs); color: var(--pc-g2); }
.pco-x.is-open { border-style: solid; border-color: #000; }
.pco-xp { margin-top: 8px; }
.pco-xp[hidden] { display: none; }
.pco-xin { display: flex; align-items: center; gap: 8px; height: 42px; border-radius: 10px; border: 1.5px solid #d6dcd9; padding: 0 10px; background: #fff; }
.pco-xin span { font-size: 12.5px; font-weight: 900; color: var(--pc-mut); }
.pco-xin input { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; font-size: 16px; font-weight: 900; padding: 0 !important; background: transparent !important; }
.pco-xin small { font-size: 11.5px; font-weight: 700; color: var(--pc-mut); }
.pco-xp textarea { width: 100%; border-radius: 10px; border: 1.5px solid #d6dcd9; padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; min-height: 60px; }

.pco-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + var(--safe-b, 0px)); border-top: 1px solid var(--pc-line); background: #fff; flex: none; }
.pco-fsum { margin-right: auto; display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.pco-fsum span { font-size: 11.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #334155; }
.pco-fsum b { font-size: 20px; font-weight: 900; }
.pco-fsum em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--pc-g2); }
body .modal-overlay .pco-foot .btn { height: 48px; border-radius: 12px; font-weight: 800; }
body .modal-overlay .pco-foot .pco-go { min-width: 320px; background: var(--pc-g); border-color: var(--pc-g); color: #fff; }
body .modal-overlay .pco-foot .pco-go.is-momo { background: var(--pc-momo); border-color: var(--pc-momo); color: #000; }
body .modal-overlay .pco-foot .pco-go.is-card { background: var(--pc-card); border-color: var(--pc-card); color: #fff; }
.pco-go kbd { font: 700 11px inherit; font-family: inherit; background: rgba(255, 255, 255, .22); border-radius: 6px; padding: 2px 7px; margin-left: 4px; }

@media (max-width: 859px) {
    .pco { display: flex; flex-direction: column; overflow-y: auto; }
    .pco-order { order: 2; border-right: 0; background: #fff; padding: 0 14px 12px; flex: none; }
    .pco-oh { cursor: pointer; border-radius: 12px; background: var(--pc-soft); padding: 11px 12px; text-transform: none; letter-spacing: 0; font-size: 13.5px; color: #000; }
    .pco-oh b { display: inline; margin-left: auto; font-size: 14px; font-weight: 900; }
    .pco-oh .bi { display: inline; transition: transform .2s ease; }
    /* !important: the tax row carries an inline display from the quote. */
    .pco-order:not(.is-open) .pco-lines, .pco-order:not(.is-open) .pco-sum .pco-sr { display: none !important; }
    .pco-order.is-open .pco-oh .bi { transform: rotate(180deg); }
    .pco-order .pco-sum { border-top: 0; margin-top: 0; padding-top: 0; }
    .pco-order .pco-tot { display: none; }
    /* flex: none: in the scrolling column it must keep its height, or the
       customer and extras spill over the opened order list. */
    .pco-pay { order: 1; overflow: visible; padding: 12px 14px; flex: none; }
    .pco-pay::before { content: ""; }
    .pco-two { grid-template-columns: 1fr; }
    .pco-pmb { height: 48px; font-size: 14px; gap: 6px; }
    .pco-foot { flex-wrap: wrap; }
    .pco-fsum { width: 100%; justify-content: space-between; }
    body .modal-overlay .pco-foot .pco-back { flex: 0 0 auto; min-width: 0; }
    body .modal-overlay .pco-foot .pco-go { flex: 1; min-width: 0; }
    .pco-go kbd { display: none; }
}

/* ==== Waiting for a payment =========================================== */
body .modal-overlay .modal.pwt-modal { max-width: 500px; }
.pwt { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.pwt-amt { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pwt-amt b { font-size: 28px; font-weight: 900; }
.pwt-pm { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; }
.pwt-pm.is-momo { background: #facc15; color: #000; }
.pwt-pm.is-card { background: #2563eb; color: #fff; }
.pwt p { margin: 0; font-size: 13.5px; font-weight: 600; color: #334155; line-height: 1.45; }
.pwt-spin { font-size: 13px; font-weight: 800; color: #0a5e42; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.pwt-send { text-align: left; border-radius: 14px; background: #f3f5f4; padding: 10px; display: grid; gap: 6px; }
.pwt-send .pco-lbl { margin: 0; }
.pwt-row { display: flex; gap: 6px; }
.pwt-row input { flex: 1; min-width: 0; height: 44px; border-radius: 11px; border: 1.5px solid #d6dcd9; font-size: 15px; font-weight: 800; padding: 0 12px; background: #fff; color: #000; }
.pwt-b { height: 44px; padding: 0 13px; border-radius: 11px; border: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 900; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pwt-b.is-sms { background: #000; color: #fff; }
.pwt-b.is-wa { background: #16a34a; color: #fff; }
.pwt-b.is-pulse { animation: pwtPulse 1.4s ease-in-out infinite; }
.pwt-b:disabled { opacity: .6; cursor: wait; }
@keyframes pwtPulse { 50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, .25); } }
.pwt-sent { font-size: 12.5px; font-weight: 700; color: #0a5e42; min-height: 16px; }
/* Phones: the phone box on its own line, the two buttons side by side under it. */
@media (max-width: 520px) {
    .pwt-row { flex-wrap: wrap; }
    .pwt-row input { flex: 1 1 100%; }
    .pwt-b { flex: 1 1 0; justify-content: center; }
}
@media (max-width: 420px) { .pco-cin small { display: none; } }

/* ==== Sale complete ==================================================== */
body .modal-overlay .modal.pdn-modal { max-width: 520px; }
.pdn { display: flex; flex-direction: column; gap: 12px; }
.pdn-top { margin: -20px calc(-1 * var(--mdl-pad, 20px)) 0; background: var(--pc-g); color: #fff; text-align: center; padding: 16px 16px 14px; }
.pdn-ic { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--pc-g); display: grid; place-items: center; font-size: 26px; margin: 0 auto 4px; }
.pdn-amt { display: block; font-size: 36px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.pdn-top small { display: block; font-size: 12.5px; font-weight: 700; color: #d1efdf; margin-top: 4px; }
.pdn-chg { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 14px; background: #facc15; padding: 12px 16px; }
.pdn-chg span { font-size: 13.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.pdn-chg span small { display: block; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 700; color: #3f3a1a; }
.pdn-chg b { font-size: 32px; font-weight: 900; }
.pdn-pts { display: flex; align-items: center; gap: 9px; border-radius: 12px; border: 1px solid var(--pc-line); padding: 9px 12px; font-size: 13px; font-weight: 700; }
.pdn-pts .bi { color: #b45309; font-size: 17px; }
.pdn .pco-lbl { margin: 2px 0 -4px; }
.pdn-rc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdn-r { height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 900; border: 1.5px solid #d6dcd9; background: #fff; color: #000; cursor: pointer; text-decoration: none; }
.pdn-r .bi { font-size: 17px; }
.pdn-r.is-print { background: #111827; border-color: #111827; color: #fff; }
.pdn-r.is-wa { background: #16a34a; border-color: #16a34a; color: #fff; }
.pdn-r.is-wait { opacity: .65; }
.pdn-r.is-off { opacity: .4; }
body .modal-overlay .modal-actions .pdn-next { background: var(--pc-g); border-color: var(--pc-g); color: #fff; font-size: 15px; }
.pdn-next kbd { font: inherit; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .22); border-radius: 6px; padding: 2px 7px; margin-left: 6px; }
@media (max-width: 767px) { .pdn-next kbd { display: none; } }

/* ==== Options, weighing, custom item =================================== */
body .modal-overlay .modal.pop-modal, body .modal-overlay .modal.pmw-modal, body .modal-overlay .modal.pcu-modal { max-width: 440px; }
.pop, .pmw, .pcu { display: flex; flex-direction: column; gap: 12px; }
.pop .pos-var-group { display: grid; gap: 6px; }
.pop .pos-var-label { font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #334155; }
.pop .pos-var-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pop .pos-var-chip { min-width: 78px; min-height: 48px; border-radius: 12px; border: 1.5px solid #d6dcd9; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 10px; cursor: pointer; color: #000; }
.pop .pos-var-chip-val { font-size: 14px; font-weight: 900; }
.pop .pos-var-chip-meta { font-size: 10.5px; font-weight: 800; color: var(--pc-mut); }
.pop .pos-var-chip.active { background: var(--pc-g); border-color: var(--pc-g); color: #fff; }
.pop .pos-var-chip.active .pos-var-chip-meta { color: #d1efdf; }
.pop .pos-var-chip:disabled { background: repeating-linear-gradient(135deg, #f3f5f4 0 6px, #fff 6px 12px); color: #94a3b8; text-decoration: line-through; cursor: not-allowed; }
.pmw-disp { border-radius: 14px; background: #0d100e; color: #fff; padding: 10px 14px; display: grid; gap: 2px; }
.pmw-row { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; margin: 0; }
.pmw-row input { width: 100%; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #fff !important; -webkit-text-fill-color: #fff; text-align: right; font-size: 34px; font-weight: 900; padding: 0 !important; -moz-appearance: textfield; outline: 0; }
.pmw-row input::-webkit-outer-spin-button, .pmw-row input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pmw-row input::placeholder { color: #5b6660; }
.pmw-row span { font-size: 18px; font-weight: 900; color: #b8c4bd; }
.pmw[data-mode="qty"] .pmw-row.is-amt, .pmw[data-mode="amt"] .pmw-row.is-qty { display: none; }
.pmw-disp small { text-align: right; font-size: 14px; font-weight: 800; color: #5ee08f; min-height: 18px; }
.pmw-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pmw-quick button { height: 34px; border-radius: 9px; border: 1.5px solid var(--pc-g); background: #fff; font-size: 12.5px; font-weight: 900; color: var(--pc-g2); cursor: pointer; }
.pcu-f { display: grid; gap: 5px; margin: 0; }
.pcu-f span { font-size: 12.5px; font-weight: 800; color: #334155; }
.pcu-f input { height: 44px; border-radius: 11px; border: 1.5px solid #d6dcd9; font-size: 15px; font-weight: 800; padding: 0 12px; }
.pcu-price { display: flex; align-items: center; gap: 10px; height: 58px; border-radius: 12px; border: 2px solid var(--pc-g); padding: 0 12px; margin: 0; cursor: text; }
.pcu-price span { font-size: 13px; font-weight: 900; color: var(--pc-mut); }
.pcu-price input { flex: 1; min-width: 0; border: 0 !important; outline: 0; box-shadow: none !important; background: transparent !important; font-size: 26px !important; font-weight: 900; padding: 0 !important; -moz-appearance: textfield; }
.pcu-price input::-webkit-outer-spin-button, .pcu-price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pcu-price small { font-size: 11.5px; font-weight: 800; color: var(--pc-mut); }
.pcu-warn { display: flex; gap: 9px; border-radius: 12px; background: #f59e0b; color: #000; padding: 9px 12px; font-size: 12.5px; font-weight: 800; line-height: 1.4; }

/* ==== Cash-up =========================================================== */
@media (min-width: 860px) { body .modal-overlay .modal.pcx-modal { width: min(920px, calc(100vw - 40px)); max-width: none; } }
.pcx { display: flex; flex-direction: column; gap: 10px; }
.pcx-sub-t { margin: -6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--pc-mut); }
.pcx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.pcx-l { display: grid; gap: 10px; }
.pcx-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.pcx[data-mode="type"] .pcx-notes, .pcx[data-mode="notes"] .pcx-type { display: none; }
.pcx-dr { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 11px; border: 1px solid var(--pc-line); background: #fff; margin: 0; }
.pcx-note { width: 52px; height: 32px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; flex: none; }
.pcx-sub { margin-left: auto; font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.pcx-cin { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.pcx-cin em { font-style: normal; font-size: 12px; font-weight: 900; color: var(--pc-mut); }
.pcx-cin input { flex: 1; min-width: 0; height: 32px; border-radius: 8px; border: 1.5px solid #d6dcd9; font-size: 14px; font-weight: 900; padding: 0 8px; }
.pcx-coins { grid-column: 1 / -1; }
.pcx-type { display: grid; gap: 5px; margin: 0; }
.pcx-type span { font-size: 12.5px; font-weight: 800; color: #334155; }
.pcx-type input { height: 56px; border-radius: 12px; border: 2px solid var(--pc-cash); font-size: 26px; font-weight: 900; padding: 0 14px; }
.pcx-r { display: grid; gap: 7px; }
.pcx-t { border-radius: 13px; padding: 9px 13px; display: flex; justify-content: space-between; align-items: center; gap: 10px; color: #fff; }
.pcx-t span { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.pcx-t b { font-size: 21px; font-weight: 900; }
.pcx-t.is-exp { background: #111827; }
.pcx-t.is-cnt { background: #16a34a; }
.pcx-t.is-diff, .pcx-t.is-diff.is-short { background: #dc2626; }
.pcx-t.is-diff.is-ok { background: #16a34a; }
.pcx-t.is-diff.is-over { background: #f59e0b; color: #000; }
.pcx-brk { border-radius: 12px; border: 1px solid var(--pc-line); background: #fff; padding: 7px 11px; }
.pcx-sr { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; color: #334155; padding: 2px 0; }
.pcx-sr b { color: #000; font-weight: 800; white-space: nowrap; }
.pcx-sr.is-dim, .pcx-sr.is-dim b { color: #64748b; }
.pcx-note-in { height: 40px; border-radius: 10px; border: 1.5px solid #d6dcd9; font-size: 13px; font-weight: 700; padding: 0 10px; }
body .modal-overlay .modal-actions .pcx-close { background: #111827; border-color: #111827; color: #fff; }
@media (max-width: 767px) {
    .pcx-grid { grid-template-columns: 1fr; }
    .pcx-notes { grid-template-columns: 1fr; }
    .pcx-r { order: -1; }
}

/* ==== Sales history ====================================================== */
@media (min-width: 860px) { body .modal-overlay .modal.psh-modal { width: min(1000px, calc(100vw - 40px)); max-width: none; } }
.psh { display: flex; flex-direction: column; gap: 10px; }
.psh-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.psh-search { flex: 1 1 240px; height: 38px; border-radius: 10px; background: var(--pc-soft); display: flex; align-items: center; gap: 8px; padding: 0 12px; margin: 0; }
.psh-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 13px; font-weight: 600; padding: 0 !important; outline: 0; }
.psh-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.psh-c { height: 32px; padding: 0 11px; border-radius: 999px; border: 1.5px solid #d6dcd9; background: #fff; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #000; cursor: pointer; }
.psh-c.is-on { background: #000; border-color: #000; color: #fff; }
.psh-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.psh-dot.is-cash { background: #16a34a; } .psh-dot.is-momo { background: #facc15; } .psh-dot.is-card { background: #2563eb; }
.psh-sum { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 7px; }
.psh-t { border-radius: 12px; padding: 8px 12px; min-width: 0; }
.psh-t span { display: block; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.psh-t b { display: block; font-size: 18px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psh-t small { font-size: 11px; font-weight: 800; }
.psh-t.is-all { background: #0d100e; color: #fff; } .psh-t.is-all span, .psh-t.is-all small { color: #b8c4bd; }
.psh-t.is-cash { background: #16a34a; color: #fff; } .psh-t.is-momo { background: #facc15; color: #000; } .psh-t.is-card { background: #2563eb; color: #fff; }
.psh-tbl { border: 1px solid var(--pc-line); border-radius: 12px; overflow: hidden; }
.psh-tr { display: grid; grid-template-columns: 74px 110px minmax(0, 1fr) 84px 110px 76px; gap: 10px; align-items: center; padding: 0 12px; min-height: 44px; border-bottom: 1px solid #eef1ef; font-size: 13px; font-weight: 700; }
.psh-tr:last-child { border-bottom: 0; }
.psh-tr.is-h { min-height: 32px; background: var(--pc-soft); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: #334155; }
.psh-time { color: #475569; }
.psh-cust { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psh-amt { text-align: right; font-weight: 900; }
.psh-pill { font-style: normal; display: inline-flex; height: 22px; align-items: center; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 900; background: #e2e8f0; color: #000; }
.psh-pill.is-cash { background: #16a34a; color: #fff; } .psh-pill.is-momo { background: #facc15; } .psh-pill.is-card { background: #2563eb; color: #fff; }
.psh-pill.is-credit { background: #f59e0b; }
.psh-acts { display: flex; gap: 5px; justify-content: flex-end; }
.psh-ia { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--pc-line); background: #fff; display: grid; place-items: center; font-size: 13px; cursor: pointer; color: #000; }
.psh-ia.is-print { background: #111827; border-color: #111827; color: #fff; }
.psh-ia:disabled { opacity: .4; cursor: default; }
.psh-pager { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 800; color: #334155; }
.psh-pager > span:last-child { display: flex; gap: 6px; }
.psh-none { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 12px; text-align: center; color: var(--pc-mut); }
.psh-none .bi { font-size: 22px; color: #000; }
.psh-none b { color: #000; }
.psh-wait { padding: 40px; text-align: center; font-size: 22px; color: var(--pc-g); }
@media (max-width: 767px) {
    .psh-sum { grid-template-columns: 1fr 1fr; }
    .psh-tr.is-h { display: none; }
    .psh-tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ref amt" "cust pill" "time acts"; gap: 2px 10px; padding: 8px 12px; }
    .psh-tr .psh-ref { grid-area: ref; font-weight: 900; }
    .psh-tr .psh-amt { grid-area: amt; }
    .psh-tr .psh-cust { grid-area: cust; }
    .psh-tr > span:nth-child(4) { grid-area: pill; justify-self: end; }
    .psh-tr .psh-time { grid-area: time; font-size: 12px; }
    .psh-tr .psh-acts { grid-area: acts; }
}

/* The app's green button rule (brand-green.css) is !important; the way to
   pay keeps its own colour on the checkout button, and Close shift is black. */
body .modal-overlay .modal.pco-modal .pco-foot .btn.pco-go.is-momo { background: #facc15 !important; border-color: #eab308 !important; color: #000 !important; box-shadow: 0 10px 20px -14px rgba(161, 98, 7, .9) !important; }
body .modal-overlay .modal.pco-modal .pco-foot .btn.pco-go.is-card { background: #2563eb !important; border-color: #1d4ed8 !important; color: #fff !important; box-shadow: 0 10px 20px -14px rgba(29, 78, 216, .9) !important; }
body .modal-overlay .modal.pcx-modal .modal-actions .btn.pcx-close { background: #111827 !important; border-color: #111827 !important; color: #fff !important; box-shadow: none !important; }
