@font-face { font-family: "Galada"; src: url(fonts/galada.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Noto Sans Bengali"; src: url(fonts/noto-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Noto Sans Bengali"; src: url(fonts/noto-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Noto Sans Bengali"; src: url(fonts/noto-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --paper: #F1F1F4; --leaf: #FFFFFF; --leaf-2: #F7F7FA; --sunk: #E6E5EC; --rule: #DEDDE6; --rule-2: #C8C6D3;
  --ink: #17151F; --ink-2: #4B4858; --ink-3: #625E73;
  --board: #F2C230; --board-2: #E3B220; --board-ink: #1A1712;
  --carbon: #4A3AA8; --carbon-press: #3B2E8C; --carbon-wash: #ECEAF8; --on-carbon: #FFFFFF;
  --rani: #B0184F; --rani-wash: #FBE5EC;
  --paid: #16734F; --paid-wash: #E1F2EA;
  --warn: #8A5A00; --warn-wash: #FBF0D9;
  --alarm: #C2410C; --alarm-wash: #FDEBE1;
  --thermal: #FFFFFE;
  --r-1: 4px; --r-2: 8px; --r-3: 12px; --r-4: 16px;
  --sh-1: 0 1px 0 rgba(23,21,31,.04), 0 1px 2px rgba(23,21,31,.06);
  --sh-2: 0 1px 2px rgba(23,21,31,.07), 0 14px 30px -20px rgba(23,21,31,.45);
  --sh-3: 0 2px 6px rgba(23,21,31,.08), 0 30px 64px -30px rgba(23,21,31,.6);
  --sign: "Galada", "Noto Sans Bengali", serif;
  --body: "Noto Sans Bengali", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
s { color: var(--ink-3); text-decoration-thickness: 1.5px; }

.review { position: fixed; left: 50%; transform: translateX(-50%); bottom: 6px; z-index: 60; display: flex; gap: 2px; align-items: center; padding: 4px; border-radius: 10px; background: #17151F; color: #fff; box-shadow: var(--sh-3); font-size: 13px; }
.review span { padding: 0 8px; opacity: .6; white-space: nowrap; font-size: 12px; }
.review a { color: #fff; text-decoration: none; padding: 5px 8px; border-radius: 7px; white-space: nowrap; font-size: 12.5px; }
.review a.on, .review a:hover { background: rgba(255,255,255,.14); }

.sign { display: flex; align-items: center; gap: 22px; height: 56px; padding: 0 20px; background: var(--board); color: var(--board-ink); border-bottom: 3px solid var(--board-2); }
.sign .shop { font-family: var(--sign); font-size: 27px; line-height: 1; white-space: nowrap; }
.sign .meta { display: flex; gap: 20px; align-items: center; font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.sign .meta > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paid); flex: none; }
.dot.off { background: #8A8597; }
.dot.live { box-shadow: 0 0 0 0 rgba(22,115,79,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(22,115,79,0); } 100% { box-shadow: 0 0 0 0 rgba(22,115,79,0); } }
.sign .who { margin-left: auto; display: flex; gap: 8px; }
.sign button.btn { background: rgba(255,255,255,.55); border-radius: 9px; padding: 7px 12px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.sign button.btn:hover { background: rgba(255,255,255,.8); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.counter { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); gap: 16px; height: calc(100vh - 56px - 44px); padding: 16px 16px 12px; }

.bill { display: flex; flex-direction: column; min-height: 0; background: var(--thermal); border-radius: 4px 4px var(--r-3) var(--r-3); box-shadow: var(--sh-2); position: relative; }
.bill::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 7px; background: radial-gradient(circle at 6px -1px, transparent 6px, var(--thermal) 6.5px) 0 0 / 12px 7px repeat-x; }
.bill-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px 12px; border-bottom: 1px dashed var(--rule-2); }
.bill-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.bill-head .cust { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--rule); font-weight: 600; }
.bill-head .cust.on { border-color: var(--rani); color: var(--rani); background: var(--rani-wash); }
.cols { display: grid; grid-template-columns: 34px minmax(0,1fr) 150px 104px 44px; gap: 10px; padding: 8px 20px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.cols span:nth-child(n+3) { text-align: right; }
.lines { flex: 1; overflow-y: auto; min-height: 0; }
.line { display: grid; grid-template-columns: 34px minmax(0,1fr) 150px 104px 44px; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px dotted var(--rule-2); }
.line.flash { animation: flash 1.1s var(--ease); }
@keyframes flash { 0% { background: var(--carbon-wash); } 100% { background: transparent; } }
.line .no { color: var(--ink-3); font-size: 13px; }
.line .nm { font-weight: 600; line-height: 1.35; }
.line .nm small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.qty { display: inline-flex; align-items: center; justify-self: end; border: 1px solid var(--rule); border-radius: 9px; }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { background: var(--leaf-2); }
.qty b { min-width: 52px; text-align: center; font-weight: 600; }
.line .amt { text-align: right; font-weight: 800; font-size: 16px; }
.line .amt small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.line .x { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink-3); border-radius: 8px; }
.line .x:hover { background: var(--alarm-wash); color: var(--alarm); }
.empty-bill { flex: 1; display: grid; place-items: center; text-align: center; color: var(--ink-3); padding: 40px; }
.empty-bill .scanart { width: 210px; margin: 0 auto 18px; }
.empty-bill b { display: block; color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.totals { border-top: 2px solid var(--ink); padding: 12px 20px 16px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; font-size: 14.5px; }
.totals .k { color: var(--ink-2); }
.totals .v { text-align: right; font-weight: 600; }
.totals .save { color: var(--paid); }
.totals .grand { font-size: 17px; font-weight: 800; padding-top: 6px; color: var(--ink); }
.totals .grand.v { font-size: 38px; line-height: 1.1; letter-spacing: -.01em; }

.side { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.panel { background: var(--leaf); border: 1px solid var(--rule); border-radius: var(--r-3); box-shadow: var(--sh-1); }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; height: 100%; }
.search kbd, .key { font: 600 11.5px var(--body); color: var(--ink-3); border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
.results { max-height: 320px; overflow: auto; border-top: 1px solid var(--rule); }
.result { display: flex; width: 100%; text-align: left; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.result:hover, .result.sel { background: var(--carbon-wash); }
.result small { display: block; color: var(--ink-3); font-size: 12.5px; }
.result b { white-space: nowrap; }

.tags { padding: 12px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tags h3 { grid-column: 1 / -1; margin: 0 2px 2px; font-size: 13px; color: var(--ink-3); font-weight: 600; display: flex; justify-content: space-between; }
.tag { position: relative; text-align: left; padding: 9px 10px 8px; min-height: 64px; border-radius: 6px; background: #FFF6CC; border: 1px solid #EAD27A; color: var(--board-ink); }
.tag:hover { background: #FFEFA6; }
.tag::after { content: ""; position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px #D9BE5A; }
.tag b { display: block; font-size: 13.5px; line-height: 1.25; padding-right: 8px; }
.tag span { font-size: 13px; font-weight: 800; }
.tag span small { font-weight: 600; color: #6B5A20; }
.tag em { position: absolute; right: 8px; bottom: 6px; font-style: normal; font-size: 11px; font-weight: 600; color: #6B5A20; letter-spacing: .04em; }

.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 66px; border-radius: var(--r-3); background: var(--leaf); border: 1px solid var(--rule); font-weight: 600; font-size: 13.5px; color: var(--ink-2); position: relative; }
.act:hover { border-color: var(--rule-2); color: var(--ink); }
.act .badge { position: absolute; top: 7px; right: 9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--carbon); color: #fff; font-size: 11px; display: grid; place-items: center; }

.pay { margin-top: auto; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 22px; border-radius: var(--r-3); background: var(--carbon); color: var(--on-carbon); box-shadow: var(--sh-2); font-weight: 800; font-size: 19px; }
.pay:hover { background: var(--carbon-press); }
.pay:disabled { opacity: .45; cursor: default; }
.pay .amt { font-size: 30px; }
.pay .key { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.35); margin-left: 8px; }

.scanbar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px 12px; font-size: 12.5px; color: var(--ink-3); }
.scanbar button { font: 600 12px var(--body); padding: 4px 8px; border-radius: 6px; border: 1px dashed var(--rule-2); color: var(--ink-2); }
.scanbar button:hover { border-style: solid; color: var(--carbon); border-color: var(--carbon); }

.scrim { position: fixed; inset: 0; background: rgba(23,21,31,.38); z-index: 80; display: grid; place-items: center; padding: 20px; animation: fade .18s ease; }
@keyframes fade { from { background: rgba(23,21,31,0); } }
.sheet { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--leaf); border-radius: var(--r-4); box-shadow: var(--sh-3); animation: rise .28s var(--ease); }
.sheet.wide { width: min(920px, 100%); }
@keyframes rise { from { transform: translateY(14px); } }
.sheet-h { display: flex; align-items: center; gap: 12px; padding: 18px 22px 12px; }
.sheet-h h2 { margin: 0; font-size: 20px; font-weight: 800; }
.sheet-h .close { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-3); }
.sheet-h .close:hover { background: var(--leaf-2); }
.sheet-b { padding: 4px 22px 22px; }

.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.due { padding: 16px 18px; border-radius: var(--r-3); background: var(--leaf-2); border: 1px solid var(--rule); }
.due .k { color: var(--ink-3); font-weight: 600; font-size: 13.5px; }
.due .v { font-size: 34px; font-weight: 800; line-height: 1.15; }
.tenders { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 10px; }
.tender { padding: 10px 4px; border-radius: 10px; border: 1px solid var(--rule); font-weight: 600; font-size: 13.5px; }
.tender.on { border-color: var(--carbon); background: var(--carbon-wash); color: var(--carbon); box-shadow: inset 0 0 0 1px var(--carbon); }
.amount { display: flex; align-items: center; height: 60px; padding: 0 16px; border: 2px solid var(--carbon); border-radius: 12px; font-size: 28px; font-weight: 800; gap: 6px; }
.amount input { border: 0; outline: 0; width: 100%; font-size: 28px; font-weight: 800; background: none; }
.ref { margin-top: 8px; display: flex; gap: 8px; }
.ref input { flex: 1; height: 42px; border: 1px solid var(--rule-2); border-radius: 10px; padding: 0 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.quick button { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--rule); font-weight: 600; }
.quick button:hover { border-color: var(--carbon); color: var(--carbon); }
.addt { margin-top: 12px; width: 100%; height: 46px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 700; }
.split { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.split li { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dotted var(--rule-2); }
.split li button { color: var(--ink-3); font-size: 13px; margin-left: 10px; }
.change { margin-top: 14px; padding: 14px 16px; border-radius: 12px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.change.give { background: var(--paid-wash); color: var(--paid); }
.change.left { background: var(--warn-wash); color: var(--warn); }
.change.baki { background: var(--rani-wash); color: var(--rani); }
.change .v { font-size: 30px; }
.finish { width: 100%; height: 64px; margin-top: 16px; border-radius: 14px; background: var(--carbon); color: #fff; font-weight: 800; font-size: 19px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.finish:disabled { opacity: .45; }

.receipt { width: 302px; margin: 0 auto; background: #fff; padding: 18px 16px 22px; font-size: 12.5px; line-height: 1.45; box-shadow: var(--sh-2); position: relative; font-variant-numeric: tabular-nums; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 8px; background: radial-gradient(circle at 6px 8px, transparent 6px, #fff 6.5px) 0 0 / 12px 8px repeat-x; }
.receipt h3 { font-family: var(--sign); font-weight: 400; font-size: 22px; text-align: center; margin: 0; }
.receipt .c { text-align: center; color: #333; }
.receipt hr { border: 0; border-top: 1px dashed #777; margin: 8px 0; }
.receipt .r { display: flex; justify-content: space-between; gap: 8px; }
.receipt .r.b { font-weight: 800; font-size: 14px; }
.receipt .it small { display: block; color: #444; }
.receipt .bar { height: 38px; margin: 10px auto 2px; width: 220px; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 3px, #111 3px 4px, #fff 4px 7px, #111 7px 10px, #fff 10px 11px); }

.pin { width: 340px; }
.pin .dots { display: flex; justify-content: center; gap: 14px; margin: 6px 0 18px; }
.pin .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-3); }
.pin .dots i.f { background: var(--ink); border-color: var(--ink); }
.pin .why { text-align: center; color: var(--ink-2); margin: -4px 0 14px; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad button { height: 58px; border-radius: 12px; background: var(--leaf-2); border: 1px solid var(--rule); font-size: 22px; font-weight: 600; }
.pad button:hover { background: var(--sunk); }
.pin .err { text-align: center; color: var(--alarm); font-weight: 600; min-height: 22px; margin-top: 10px; }
.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: var(--sh-3); font-weight: 600; display: flex; gap: 10px; align-items: center; animation: rise .25s var(--ease); }

.page { max-width: 1100px; margin: 0 auto; padding: 22px 20px 90px; }
.page h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.page .lede { color: var(--ink-2); margin: 0 0 18px; }
.two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.card { background: var(--leaf); border: 1px solid var(--rule); border-radius: var(--r-3); box-shadow: var(--sh-1); padding: 18px; }
.card h2 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }

.notes { width: 100%; border-collapse: collapse; }
.notes td { padding: 6px 4px; border-bottom: 1px dotted var(--rule-2); }
.notes td:first-child { width: 110px; font-weight: 800; font-size: 17px; }
.notes td:nth-child(2) { width: 30px; color: var(--ink-3); }
.notes input { width: 90px; height: 40px; text-align: center; border: 1px solid var(--rule-2); border-radius: 9px; font-size: 17px; font-weight: 600; }
.notes td:last-child { text-align: right; font-weight: 600; }
.notes tfoot td { border: 0; padding-top: 12px; font-size: 20px; font-weight: 800; }
.blind { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--leaf-2); border: 1px solid var(--rule); color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.btn-p { height: 52px; padding: 0 22px; border-radius: 12px; background: var(--carbon); color: #fff; font-weight: 800; font-size: 16px; }
.btn-q { height: 44px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--rule-2); background: var(--leaf); font-weight: 600; }
.recon { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.recon th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 6px 4px; border-bottom: 1px solid var(--rule); }
.recon td { padding: 10px 4px; border-bottom: 1px dotted var(--rule-2); }
.recon td:not(:first-child), .recon th:not(:first-child) { text-align: right; }
.recon tr.short td { color: var(--alarm); font-weight: 800; }
.flag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: var(--alarm-wash); color: var(--alarm); }

.grn { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grn th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--rule); }
.grn td { padding: 8px 6px; border-bottom: 1px dotted var(--rule-2); vertical-align: middle; }
.grn input { height: 38px; border: 1px solid var(--rule-2); border-radius: 8px; padding: 0 8px; width: 100%; }
.grn td.r, .grn th.r { text-align: right; }
.grn .soon { color: var(--warn); font-size: 12px; font-weight: 700; display: block; }
.field { display: grid; gap: 4px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select { height: 44px; border: 1px solid var(--rule-2); border-radius: 10px; padding: 0 12px; background: var(--leaf); }
.sumrow { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dotted var(--rule-2); }
.sumrow.big { font-size: 20px; font-weight: 800; border: 0; }

.imp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.imp th { text-align: left; padding: 8px 6px; font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--rule); white-space: nowrap; }
.imp td { padding: 7px 6px; border-bottom: 1px dotted var(--rule-2); white-space: nowrap; }
.imp tr.bad td { background: var(--alarm-wash); }
.imp tr.bad td:last-child { color: var(--alarm); font-weight: 700; white-space: normal; }
.map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.map div { padding: 8px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--leaf-2); font-size: 12.5px; }
.map div b { display: block; font-size: 13.5px; }
.stats { display: flex; gap: 24px; margin: 4px 0 14px; }
.stats div b { display: block; font-size: 26px; font-weight: 800; line-height: 1.2; }
.stats .ok b { color: var(--paid); } .stats .no b { color: var(--alarm); }

.ownerwrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 400px 1fr; padding: 24px 0 90px; }
.phone { grid-column: 2; width: 390px; border-radius: 44px; padding: 12px; background: #17151F; box-shadow: var(--sh-3); align-self: start; }
.screen { border-radius: 34px; overflow: hidden; background: var(--paper); height: 800px; overflow-y: auto; scrollbar-width: none; }
.screen .sign { height: auto; padding: 44px 18px 14px; flex-direction: column; align-items: flex-start; gap: 2px; }
.screen .sign .shop { font-size: 26px; }
.screen .sign small { font-weight: 600; font-size: 13px; }
.today { margin: 14px; padding: 16px; border-radius: 16px; background: var(--leaf); border: 1px solid var(--rule); }
.today .k { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.today .v { font-size: 36px; font-weight: 800; line-height: 1.15; }
.today .vs { color: var(--paid); font-weight: 600; font-size: 13px; }
.today .row3 { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 10px; }
.today .row3 b { display: block; font-size: 16px; }
.today .row3 span { font-size: 12px; color: var(--ink-3); }
.osec { margin: 18px 18px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.osec h3 { margin: 0; font-size: 16px; font-weight: 800; }
.osec a { color: var(--carbon); font-size: 13px; font-weight: 600; text-decoration: none; }
.olist { margin: 0 14px; background: var(--leaf); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; }
.orow { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--rule); }
.orow:first-child { border-top: 0; }
.orow .main { flex: 1; min-width: 0; }
.orow .main b { display: block; font-size: 14.5px; }
.orow .main small { color: var(--ink-3); font-size: 12.5px; }
.orow .amt { text-align: right; font-weight: 800; white-space: nowrap; }
.orow .amt small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.sus { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--rule); align-items: start; }
.sus:first-child { border-top: 0; }
.sus .t { color: var(--ink-3); font-size: 12.5px; padding-top: 2px; }
.sus b { font-size: 14px; display: block; }
.sus small { color: var(--ink-3); font-size: 12.5px; }
.sus .amt { font-weight: 800; white-space: nowrap; }
.sus.short b, .sus.short .amt { color: var(--alarm); }
.minor { display: flex; gap: 8px; margin: 14px; }
.minor a { flex: 1; text-decoration: none; color: var(--ink); background: var(--leaf); border: 1px solid var(--rule); border-radius: 14px; padding: 12px; }
.minor a b { display: block; font-size: 20px; font-weight: 800; }
.minor a small { color: var(--ink-3); font-size: 12.5px; }
.minor a.warn b { color: var(--warn); }
.note-side { grid-column: 3; padding: 30px 28px; color: var(--ink-2); max-width: 340px; font-size: 14px; }
.note-side h2 { font-size: 18px; color: var(--ink); margin: 0 0 8px; }

@media (max-width: 1100px) { .counter { grid-template-columns: 1fr; height: auto; } .two { grid-template-columns: 1fr; } .ownerwrap { grid-template-columns: 1fr; justify-items: center; } .phone, .note-side { grid-column: 1; } }

.th { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--sunk); }
.th.none { display: inline-grid; place-items: center; color: var(--ink-3); font-weight: 800; font-size: 15px; border: 1px dashed var(--rule-2); background: var(--leaf-2); }
.line .nm { display: flex; gap: 12px; align-items: center; }
.line .nm > span { min-width: 0; }
.offer { display: inline-block; margin-top: 3px; font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 5px; color: var(--warn); background: var(--warn-wash); }
.offer.on { color: var(--paid); background: var(--paid-wash); }
.result { align-items: center; }
.result .grow { flex: 1; min-width: 0; }
.result .th { width: 36px; height: 36px; }
.tag { display: flex; flex-direction: column; gap: 2px; padding: 6px 7px 8px; }
.tag .tagimg { width: 100%; height: 54px; object-fit: cover; border-radius: 3px; margin-bottom: 3px; background: #F3E3A0; display: grid; place-items: center; color: #8C7426; font-weight: 800; }
.tag .tagimg.none { border: 1px dashed #D9BE5A; }
.tag::after { top: 10px; right: 10px; }
.tag em { position: static; align-self: flex-end; margin-top: -16px; }

.page.wide { max-width: 1240px; }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pacts { display: flex; gap: 8px; margin-bottom: 18px; }
.pacts .btn-q { display: inline-flex; gap: 8px; align-items: center; }
.ptools { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.ptools .search { flex: 1; min-width: 260px; height: 46px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule); background: var(--leaf); font-weight: 600; color: var(--ink-2); }
.chip b { color: var(--ink-3); font-weight: 600; margin-left: 4px; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on b { color: rgba(255,255,255,.7); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.pcard { text-align: left; background: var(--leaf); border: 1px solid var(--rule); border-radius: var(--r-3); overflow: hidden; box-shadow: var(--sh-1); transition: transform .15s var(--ease), box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.pimg { position: relative; aspect-ratio: 1 / 1; background: var(--leaf-2); border-bottom: 1px solid var(--rule); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nophoto { position: absolute; inset: 10px; display: grid; place-content: center; justify-items: center; gap: 4px; border: 1.5px dashed var(--rule-2); border-radius: 10px; color: var(--ink-3); font-weight: 700; font-size: 14px; text-align: center; }
.nophoto small { font-weight: 400; font-size: 12px; }
.ribbon { position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--paid); color: #fff; }
.pinfo { padding: 10px 12px 12px; display: grid; gap: 2px; }
.pinfo b { font-size: 14px; line-height: 1.3; min-height: 2.6em; }
.pinfo strong { font-size: 16px; }
.pinfo small { color: var(--ink-3); font-size: 12.5px; }
.pinfo .lowst { color: var(--alarm); font-weight: 700; }
.pedit { display: grid; grid-template-columns: 260px 1fr; gap: 22px; }
.photo-big { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--leaf-2); border: 1px solid var(--rule); margin-bottom: 10px; }
.photo-big img { width: 100%; height: 100%; object-fit: cover; }
.photo-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.btn-q.photo-btn { height: 46px; }
.frow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.codes { display: flex; gap: 6px; flex-wrap: wrap; }
.code { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--rule); background: var(--leaf-2); font-size: 13.5px; }
.code.add { border-style: dashed; color: var(--carbon); font-weight: 600; }
.tiny { font-size: 12.5px; margin: 8px 0 0; }
.zipres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.zipres div { padding: 12px; border-radius: 12px; background: var(--leaf-2); border: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.zipres b { display: block; font-size: 22px; color: var(--ink); }
.zipres .ok b { color: var(--paid); } .zipres .no b { color: var(--alarm); }
.cntn { display: inline-flex; align-items: center; gap: 10px; }
.neg { color: var(--alarm); font-weight: 800; } .posv { color: var(--paid); font-weight: 800; }
.receipt.z { width: 330px; margin: 0; }
.toprow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dotted var(--rule-2); }
.toprow .grow { flex: 1; min-width: 0; }
.toprow .grow small { display: block; color: var(--ink-3); }

.cd { min-height: 100vh; background: #121019; color: #fff; display: flex; flex-direction: column; }
.cd-sign { display: flex; justify-content: space-between; align-items: center; padding: 16px 28px; background: var(--board); color: var(--board-ink); font-weight: 600; }
.cd-sign .shop { font-family: var(--sign); font-size: 34px; }
.cd-body { flex: 1; display: grid; grid-template-columns: 1.5fr 1fr; min-height: 0; }
.cd-lines { padding: 22px 28px; display: grid; align-content: start; gap: 10px; }
.cd-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.05); }
.cd-line.last { background: rgba(242,194,48,.14); box-shadow: inset 0 0 0 1px rgba(242,194,48,.5); }
.cd-line img, .cdnone { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.cdnone { display: grid; place-items: center; background: rgba(255,255,255,.08); font-size: 28px; font-weight: 800; }
.cd-line b { display: block; font-size: 22px; }
.cd-line small { color: rgba(255,255,255,.65); font-size: 17px; }
.cd-line > span { font-size: 26px; font-weight: 800; }
.cd-total { background: #1D1A28; padding: 34px 30px; display: flex; flex-direction: column; gap: 6px; }
.cd-total > span { font-size: 22px; color: rgba(255,255,255,.7); }
.cd-total > b { font-size: 72px; line-height: 1.05; font-weight: 800; }
.cd-total em { font-style: normal; color: #5CC99A; font-size: 22px; font-weight: 700; }
.cd-total p { color: rgba(255,255,255,.75); font-size: 18px; margin-top: 18px; }
.cd-pay { margin-top: auto; padding: 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); text-align: center; }
.cd-idle b { display: block; font-size: 26px; margin-bottom: 12px; color: var(--board); }
.cd-offer { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.06); margin-bottom: 12px; }
.cd-offer img { width: 110px; height: 110px; border-radius: 12px; object-fit: cover; }
.cd-offer b { font-size: 24px; color: #fff; margin: 0; }
.cd-offer span { font-size: 22px; color: #5CC99A; font-weight: 700; }
body.disp .review { display: none; }

.review .cta { background: var(--board); color: var(--board-ink); font-weight: 800; }
.review .cta:hover { background: #FFD45A; }
.welcome ol { margin: 6px 0 16px; padding-left: 22px; color: var(--ink-2); }
.welcome ol li { margin: 6px 0; }
.welcome .lead { font-size: 16px; margin: 0 0 10px; }
.wa-btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px; background: #12603F; color: #fff; font-weight: 800; text-decoration: none; margin-top: 10px; }
.tblwrap { overflow-x: auto; }

@media (min-width: 761px) { .touchhint { display: none; } }
@media (max-width: 760px) {
  .kbdhint { display: none; }
  body { font-size: 14.5px; }
  .sign { height: auto; min-height: 52px; padding: 8px 12px; gap: 10px; }
  .sign .shop { font-size: 22px; }
  .sign .meta { display: none; }
  .sign .who { margin-left: auto; }
  .counter { display: flex; flex-direction: column; height: auto; padding: 10px 10px 140px; gap: 10px; }
  .bill { min-height: 0; }
  .bill-head { flex-wrap: wrap; padding: 12px 14px 10px; }
  .bill-head .cust { margin-left: 0; width: 100%; justify-content: center; font-size: 14px; }
  .cols { display: none; }
  .lines { max-height: none; }
  .line { grid-template-columns: minmax(0, 1fr) auto 40px; grid-template-areas: "nm nm x" "q amt amt"; gap: 6px 10px; padding: 10px 14px; }
  .line .no { display: none; }
  .line .nm { grid-area: nm; }
  .line .qty, .line > span.num:not(.amt) { grid-area: q; justify-self: start; }
  .line .amt { grid-area: amt; align-self: center; justify-self: end; }
  .line .x { grid-area: x; }
  .empty-bill { padding: 24px 14px; }
  .empty-bill .scanart { width: 160px; }
  .totals { padding: 10px 14px 12px; }
  .totals .grand.v { font-size: 30px; }
  .side { display: contents; }
  .scanbar { order: -1; }
  .tags { grid-template-columns: repeat(3, 1fr); }
  .tag em { display: none; }
  .acts { grid-template-columns: repeat(4, 1fr); }
  .act { height: 58px; font-size: 12.5px; }
  .pay { position: fixed; left: 10px; right: 10px; bottom: 54px; height: 62px; z-index: 30; font-size: 17px; }
  .pay .amt { font-size: 24px; }
  .key, .search kbd { display: none; }
  .review { left: 0; right: 0; transform: none; bottom: 0; border-radius: 0; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; padding: 6px; }
  .review::-webkit-scrollbar { display: none; }
  .sheet { max-height: calc(100vh - 24px); }
  .scrim { padding: 10px; align-items: end; }
  .paygrid { grid-template-columns: 1fr; gap: 10px; }
  .tenders { grid-template-columns: repeat(3, 1fr); }
  .page { padding: 16px 12px 90px; }
  .page h1 { font-size: 22px; }
  .two { grid-template-columns: 1fr; }
  .notes td:first-child { width: 80px; }
  .notes input { width: 70px; }
  .pedit { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr 1fr; }
  .map { grid-template-columns: repeat(2, 1fr); }
  .zipres { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .phead .pacts { flex-wrap: wrap; }
  .ownerwrap { padding: 0 0 70px; display: block; }
  .phone { width: 100%; border-radius: 0; padding: 0; background: none; box-shadow: none; }
  .screen { border-radius: 0; height: auto; }
  .screen .sign { padding-top: 16px; }
  .note-side { display: none; }
  .cd-body { grid-template-columns: 1fr; }
  .cd-total > b { font-size: 48px; }
  .receipt.z { width: 100%; }
}
