:root{--yellow: #ffcb05;--yellow-soft: #fff4c2;--blue: #004f71;--deep: #00293a;--paper: #eef3f5;--panel: #ffffff;--line: #d8e1e5;--ink: #12252e;--muted: #5a6c75;--ok: #14805a;--bad: #bf3b34;--warn: #9a6a00;--info: #1f6fa8;--display: "Sora", "Segoe UI", system-ui, sans-serif;--body: "Figtree", "Segoe UI", system-ui, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--body);font-size:15px;line-height:1.5;color:var(--ink);background:var(--paper)}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}:focus-visible{outline:3px solid var(--blue);outline-offset:2px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.muted{color:var(--muted)}.small{font-size:13px}.num,.ref{font-variant-numeric:tabular-nums}.shell{display:flex;flex-direction:column;min-height:100%}.topbar{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 24px;background:var(--deep);color:#fff}.brand{display:flex;align-items:center;gap:12px}.brand-pill{background:var(--yellow);color:var(--deep);font-family:var(--display);font-weight:700;font-size:14px;padding:4px 10px;border-radius:999px}.brand-name{font-family:var(--display);font-weight:600;font-size:17px}.seg{display:flex;background:#ffffff14;border-radius:10px;padding:3px}.seg button{border:0;background:transparent;color:#cfe0e8;padding:7px 14px;border-radius:8px;font-weight:600;font-size:14px}.seg button.on{background:#fff;color:var(--deep)}.stage{flex:1;display:grid;gap:28px;padding:28px 24px;align-items:start}.stage-both,.stage-shop{grid-template-columns:380px minmax(0,1fr)}.stage-client,.stage-bo{min-width:0}.stage-client{justify-items:center;grid-template-columns:minmax(0,1fr)}.stage-bo{grid-template-columns:minmax(0,1fr)}.stage-phone{position:sticky;top:84px;display:flex;justify-content:center}@media (max-width: 1080px){.stage-both,.stage-shop{grid-template-columns:minmax(0,1fr)}.stage-phone{position:static}}.phone{position:relative;width:360px;max-width:100%;height:760px;background:#0d1a20;border-radius:46px;padding:12px;box-shadow:0 30px 60px -20px #00293a73}.phone-notch{position:absolute;top:18px;left:50%;transform:translate(-50%);width:96px;height:26px;border-radius:20px;background:#0d1a20;z-index:3}.phone-screen{position:relative;height:100%;border-radius:36px;overflow:hidden;background:#f7f9fa;display:flex;flex-direction:column}.app-bar{display:flex;align-items:center;justify-content:space-between;padding:48px 18px 14px;background:var(--yellow);color:var(--deep)}.app-title{font-family:var(--display);font-weight:700;font-size:16px}.app-back{border:0;background:transparent;font-size:28px;line-height:1;width:48px;text-align:left;padding:0}.app-back-spacer{width:48px}.app-link{border:0;background:transparent;padding:0;font-weight:600;font-size:14px;color:var(--blue);text-decoration:underline;text-underline-offset:3px}.app-bar .app-link{color:var(--deep);width:48px;text-align:right}.app-body{flex:1;overflow-y:auto}.screen{display:flex;flex-direction:column;gap:14px;padding:20px 18px 28px}.app-h{font-family:var(--display);font-size:21px;line-height:1.25;font-weight:600;margin:4px 0 0}.greet{margin:0;font-weight:600;color:var(--muted)}.field{display:flex;flex-direction:column;gap:6px;border:0;padding:0;margin:0}.field>span,.field legend{font-size:13px;font-weight:600;color:var(--muted);padding:0;margin-bottom:6px}.field input{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff}.phone-input,.amount-input{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.phone-input:focus-within,.amount-input:focus-within{border-color:var(--blue)}.phone-input span,.amount-input span{padding:0 12px;color:var(--muted);font-weight:600}.phone-input input,.amount-input input{border:0;border-radius:0;outline:none}.amount-input input{font-family:var(--display);font-size:24px;font-weight:600}.btn{border:0;border-radius:14px;padding:14px 18px;font-weight:700;font-size:15px}.btn-primary{background:var(--deep);color:#fff}.btn-primary:hover{background:var(--blue)}.err{margin:0;color:var(--bad);font-size:14px}.hint{margin-top:8px;border-top:1px dashed var(--line);padding-top:14px;display:flex;flex-direction:column;gap:6px}.hint p{margin:0 0 2px;font-size:13px;color:var(--muted)}.hint button{text-align:left;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-size:13px}.choice{display:flex;gap:8px}.choice.wrap{flex-wrap:wrap}.choice button{flex:1;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:9px 10px;font-weight:600;font-size:14px;white-space:nowrap}.choice.wrap button{flex:0 0 auto}.choice button.on{border-color:var(--deep);background:var(--deep);color:#fff}.presets button{font-size:13px;padding:8px 4px}.recap{margin:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:4px 14px}.recap div{display:flex;justify-content:space-between;padding:8px 0;font-size:14px}.recap dt{color:var(--muted)}.recap dd{margin:0;font-variant-numeric:tabular-nums}.recap .total{border-top:1px solid var(--line);font-weight:700}.recap .total dt{color:var(--ink)}.vcard{position:relative;aspect-ratio:1.586;border-radius:18px;padding:18px 20px;color:var(--deep);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;background:repeating-linear-gradient(118deg,rgba(0,41,58,.06) 0 2px,transparent 2px 14px),radial-gradient(120% 140% at 100% 0%,#ffe066 0%,var(--yellow) 45%,#f2b600 100%);box-shadow:0 14px 28px -14px #9a6a0099;transition:filter .3s,transform .3s}.vcard-row{display:flex;justify-content:space-between;align-items:flex-start}.vcard-issuer{font-family:var(--display);font-weight:700;font-size:16px}.vcard-net{font-family:var(--display);font-weight:700;font-size:14px;background:var(--deep);color:var(--yellow);padding:3px 9px;border-radius:6px}.vcard-pan{font-family:var(--display);font-weight:600;font-size:19px;letter-spacing:.06em;font-variant-numeric:tabular-nums}.vcard-meta{gap:12px}.vcard-meta div{display:flex;flex-direction:column;min-width:0}.vcard-meta div:first-child{flex:1}.vcard-meta small{font-size:10px;opacity:.7}.vcard-meta span{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vcard.is-frozen{filter:grayscale(.85) brightness(.95)}.vcard-frozen{position:absolute;inset:auto 0 44% 0;text-align:center;font-family:var(--display);font-weight:700;color:#fff;background:#00293ac7;padding:6px}.dots{display:flex;justify-content:center;gap:8px}.dots button{width:9px;height:9px;border-radius:50%;border:0;background:var(--line);padding:0}.dots button.on{background:var(--deep);width:22px;border-radius:6px}.balance{display:flex;flex-direction:column}.balance small{color:var(--muted);font-weight:600}.balance strong{font-family:var(--display);font-size:30px;font-weight:700;font-variant-numeric:tabular-nums}.actions{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.actions button{display:flex;flex-direction:column;align-items:center;gap:4px;border:0;background:transparent;font-size:12px;font-weight:600;padding:0}.actions .ico{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:#fff;border:1px solid var(--line);font-size:18px;color:var(--deep)}.actions button:not(:disabled):hover .ico{background:var(--yellow-soft);border-color:var(--yellow)}.row-links{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.row-links .app-link{font-size:13px}.list-h{margin:6px 0 0;font-size:14px;font-weight:700}.tx-list{list-style:none;margin:0;padding:0;background:#fff;border:1px solid var(--line);border-radius:14px}.tx-list li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--line)}.tx-list li:first-child{border-top:0}.tx-list li>div{display:flex;flex-direction:column;min-width:0}.tx-list span{font-weight:600;font-size:14px}.tx-list small{color:var(--muted);font-size:12px}.tx-list strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.tx-list strong.pos{color:var(--ok)}.tx-list .empty{color:var(--muted);font-size:14px}.result{align-items:center;text-align:center;padding-top:36px}.result .btn{align-self:stretch;margin-top:10px}.ussd{align-self:stretch;text-align:left;background:#1d2b31;color:#e8f0f3;border-radius:14px;padding:14px 16px;font-size:14px}.ussd p{margin:0}.ussd-h{font-size:12px;color:var(--yellow);margin-bottom:6px!important;font-weight:600}.status-mark{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;font-size:34px;font-weight:700;color:#fff;margin-top:10px}.status-mark.is-ok{background:var(--ok)}.status-mark.is-bad{background:var(--bad)}.status-mark.is-wait{border:5px solid var(--yellow-soft);border-top-color:var(--yellow);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.badge{display:inline-block;font-size:12px;font-weight:700;padding:2px 8px;border-radius:999px;white-space:nowrap}.tone-ok{background:#dff3ea;color:var(--ok)}.tone-bad{background:#fbe4e2;color:var(--bad)}.tone-warn{background:#fff1cc;color:var(--warn)}.tone-info{background:#e1eef8;color:var(--info)}.tone-mute{background:#e9eef0;color:var(--muted)}.bo{display:grid;grid-template-columns:220px minmax(0,1fr);background:var(--panel);border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:760px}.bo-side{background:#f6f9fa;border-right:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column;gap:18px}.bo-user{display:flex;align-items:center;gap:10px}.bo-user div{display:flex;flex-direction:column;line-height:1.2}.bo-user small{color:var(--muted)}.avatar{width:38px;height:38px;border-radius:12px;background:var(--deep);color:var(--yellow);display:grid;place-items:center;font-family:var(--display);font-weight:700;font-size:14px}.bo-side nav{display:flex;flex-direction:column;gap:2px}.bo-side nav button{display:flex;justify-content:space-between;align-items:center;text-align:left;border:0;background:transparent;padding:9px 12px;border-radius:10px;font-weight:600;color:var(--muted)}.bo-side nav button:hover{background:#e8eff2;color:var(--ink)}.bo-side nav button.on{background:var(--deep);color:#fff}.count{background:var(--yellow);color:var(--deep);font-size:12px;font-weight:700;border-radius:999px;padding:0 7px}.count.live{animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.45}}.bo-env{margin-top:auto;font-size:12px;color:var(--muted)}.bo-main{padding:24px 26px 32px;display:flex;flex-direction:column;gap:20px;min-width:0}.bo-h{font-family:var(--display);font-size:24px;font-weight:600;margin:0}.bo-head{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.lead{margin:-8px 0 0;max-width:64ch}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:1px solid var(--line);border-radius:14px}.kpi{padding:16px 18px;display:flex;flex-direction:column;gap:2px;border-left:1px solid var(--line)}.kpi:first-child{border-left:0}.kpi small{color:var(--muted);font-size:13px}.kpi strong{font-family:var(--display);font-size:clamp(17px,1.45vw,22px);white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}.kpi span{font-size:12px;color:var(--muted)}.bo-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,1fr);gap:20px}.panel{border:1px solid var(--line);border-radius:14px;padding:16px 18px;background:#fff}.panel-h{font-size:15px;font-weight:700;margin:0 0 12px}.panel.empty{color:var(--muted)}.chart{width:100%;height:auto;display:block}.chart .grid{stroke:var(--line);stroke-dasharray:3 4}.chart .bar{fill:var(--blue)}.chart .bar.today{fill:var(--yellow)}.chart .val{font-size:14px;fill:var(--muted);font-weight:600}.chart .lbl{font-size:14px;fill:var(--muted)}.float{display:flex;flex-direction:column;gap:10px}.float .panel-h{margin:0}.float-v{font-family:var(--display);font-size:24px;font-weight:600}.float.is-low .float-v{color:var(--bad)}.meter{position:relative;height:10px;border-radius:6px;background:#e9eef0}.meter span{position:absolute;inset:0 auto 0 0;background:var(--ok);border-radius:6px;transition:width .6s}.float.is-low .meter span{background:var(--bad)}.meter i{position:absolute;top:-4px;width:2px;height:18px;background:var(--ink)}.float p{margin:0}.todo{display:flex;flex-direction:column;gap:6px;margin-top:auto}.todo button{text-align:left;border:1px solid var(--line);background:#f6f9fa;border-radius:10px;padding:9px 12px}.todo strong{font-family:var(--display);margin-right:4px}.table-wrap{overflow-x:auto}.panel.table-wrap{padding:0}table{width:100%;border-collapse:collapse;font-size:14px}th{text-align:left;font-size:12px;font-weight:700;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:10px 12px;border-bottom:1px solid #edf1f3;vertical-align:top}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fafb}.r{text-align:right}td.num{white-space:nowrap}td .sub{display:block;color:var(--muted);font-size:12px}td.date{white-space:nowrap}td.ref{font-size:13px;color:var(--muted);white-space:nowrap}td.empty{text-align:center;color:var(--muted);padding:28px}tr.is-live,tr.is-live:hover{background:var(--yellow-soft)}.search,select{border:1.5px solid var(--line);border-radius:10px;padding:8px 12px;background:#fff;min-width:0}.search{width:300px;max-width:100%}.filters{display:flex;gap:8px;flex-wrap:wrap}.row-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.row-actions button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:5px 10px;font-size:13px;font-weight:600}.row-actions button:hover{border-color:var(--deep)}.row-actions button.danger{color:var(--bad)}.row-actions button.primary{background:var(--deep);color:#fff;border-color:var(--deep)}.recon-list{display:grid;gap:14px}.recon header{display:flex;justify-content:space-between;align-items:center;gap:10px}.recon h2{font-size:16px;margin:0}.recon p{margin:6px 0}.recon .row-actions{justify-content:flex-start;margin-top:12px}.three{display:grid;grid-template-columns:repeat(3,1fr);margin:12px 0 0;border:1px solid var(--line);border-radius:10px}.three div{padding:10px 12px;border-left:1px solid var(--line)}.three div:first-child{border-left:0}.three dt{font-size:12px;color:var(--muted)}.three dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}.three .diff dd{color:var(--bad)}.plain{list-style:none;margin:0;padding:0}.plain li{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:8px 0;border-top:1px solid #edf1f3;font-size:14px}.plain li:first-child{border-top:0}@media (max-width: 860px){.bo{grid-template-columns:1fr}.bo-side{border-right:0;border-bottom:1px solid var(--line)}.bo-side nav{flex-direction:row;overflow-x:auto}.bo-side nav button{white-space:nowrap}.bo-env{display:none}.kpis{grid-template-columns:repeat(2,1fr)}.kpi:nth-child(3){border-left:0}.kpi:nth-child(n+3){border-top:1px solid var(--line)}.bo-grid{grid-template-columns:1fr}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}}td .nw{white-space:nowrap}@media (max-width: 480px){.stage{padding:16px 10px}.stage-phone{width:100%}.phone{width:100%;height:720px;padding:8px;border-radius:36px}.phone-screen{border-radius:30px}.bo-main{padding:18px 14px 24px}}.btn-scan{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--yellow);color:var(--deep)}.btn-scan:not(:disabled):hover{background:#ffd633}.btn-ghost{background:#fff;color:var(--ink);border:1.5px solid var(--line)}.pay-note{margin:0;background:var(--yellow-soft);border-radius:10px;padding:10px 12px;font-size:14px}.scan-box{position:relative;aspect-ratio:1;border-radius:18px;overflow:hidden;background:#0d1a20}.scan-box video{width:100%;height:100%;object-fit:cover;display:block}.scan-frame{position:absolute;top:18%;right:18%;bottom:18%;left:18%;border:3px solid var(--yellow);border-radius:16px;box-shadow:0 0 0 999px #0d1a2059}.scan-off{display:grid;place-items:center;padding:20px;color:#cfe0e8;text-align:center;font-size:14px}.code-entry .phone-input input{text-transform:uppercase;letter-spacing:.12em;font-weight:700}.code-entry .app-link{padding:0 12px;white-space:nowrap}.hint-btn{border:1px dashed var(--line);background:#fff;border-radius:10px;padding:9px 12px;font-size:13px;text-align:left}.merchant-ticket{display:flex;flex-direction:column;align-items:center;gap:2px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;text-align:center}.merchant-ticket small{color:var(--muted);font-size:12px}.merchant-ticket strong{font-family:var(--display);font-size:18px}.ticket-amount{font-family:var(--display);font-size:30px;font-weight:700;font-variant-numeric:tabular-nums}.field input.pin{font-size:24px;letter-spacing:.5em;text-align:center}.sheet-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:flex-end;background:#0d1a208c;animation:fade .2s}.sheet{width:100%;background:#f7f9fa;border-radius:24px 24px 0 0;padding:20px 18px 26px;display:flex;flex-direction:column;gap:12px;animation:rise .25s ease-out}.sheet-tag{margin:0;font-size:12px;font-weight:700;color:var(--warn);text-transform:uppercase;letter-spacing:.04em}.sheet-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sheet .small{margin:0;text-align:center}@keyframes fade{0%{opacity:0}}@keyframes rise{0%{transform:translateY(40%)}}.merchant{display:flex;flex-direction:column;gap:18px}.merchant-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.merchant-head p{margin:4px 0 0}.seg-light{background:#e9eef0}.seg-light button{color:var(--muted)}.till-form,.shop{display:flex;flex-direction:column;gap:14px;max-width:520px}.till-form select,.shop select{border:1.5px solid var(--line);border-radius:12px;padding:11px 12px;background:#fff}.till{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:28px;align-items:center}.till-qr{display:grid;place-items:center;aspect-ratio:1;background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px}.till-qr img{width:100%;height:auto;display:block}.status-mark.big{width:110px;height:110px;font-size:52px}.till-info{display:flex;flex-direction:column;gap:6px}.till-info small{color:var(--muted);font-weight:600}.till-amount{font-family:var(--display);font-size:38px;font-variant-numeric:tabular-nums}.till-code{margin:0;color:var(--muted)}.till-code span{font-family:var(--display);font-weight:700;color:var(--ink);letter-spacing:.14em;font-size:20px}.till-state{margin:6px 0 0;display:flex;align-items:center;gap:8px;font-weight:700;color:var(--warn)}.till-state.ok{color:var(--ok)}.till-info .row-actions{margin-top:10px;justify-content:flex-start}.dot-live{width:10px;height:10px;border-radius:50%;background:var(--yellow);animation:pulse 1.2s infinite}@keyframes pulse{50%{opacity:.3}}.shop-brand{margin:0;font-family:var(--display);font-weight:700;color:var(--blue)}.shop-items{display:flex;flex-direction:column;gap:6px}.shop-items button{display:flex;justify-content:space-between;gap:10px;border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:10px 12px;text-align:left}.shop-items button.on{border-color:var(--deep);box-shadow:inset 0 0 0 1px var(--deep)}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shop-result{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;max-width:520px;padding-top:28px;padding-bottom:28px}.shop-result p{margin:0}@media (max-width: 720px){.till{grid-template-columns:minmax(0,1fr)}}@media (max-width: 480px){.topbar{position:static;padding:10px 12px}.seg{width:100%;overflow-x:auto}.seg button{padding:7px 10px;font-size:13px;white-space:nowrap}.stage-client{padding:0}.stage-client .phone{width:100%;height:100dvh;border-radius:0;padding:0;box-shadow:none}.stage-client .phone-notch{display:none}.stage-client .phone-screen{border-radius:0}.stage-client .app-bar{padding-top:16px}}
