/* receipt: shared by the customer chat and the admin side */
.receipt { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.r-head { display: flex; align-items: center; gap: 10px; background: var(--hl); color: var(--hl-ink); padding: 10px 14px; }
.r-head .logo { background: var(--main); color: var(--main-ink); }
.r-head b { flex: 1; font-size: 17px; }
.r-num { font-weight: 800; font-size: 19px; letter-spacing: .5px; }
.r-body { display: flex; gap: 12px; padding: 12px 14px 4px; align-items: center; }
.r-qr { flex: none; line-height: 0; }
.r-info { min-width: 0; flex: 1; }
.r-photo { float: right; width: 54px; height: 54px; border-radius: 12px; object-fit: cover; margin-left: 8px; }
.r-name { font-weight: 800; font-size: 18px; margin-top: 6px; }
.r-name small { display: block; color: var(--muted); font-weight: 600; font-size: 15px; }
.r-items { list-style: none; margin: 6px 14px; padding: 0; }
.r-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #E2E8E4; font-weight: 700; }
.r-items em { color: var(--warn); font-style: normal; font-size: 14px; }
.r-when { display: flex; gap: 8px; align-items: center; margin: 6px 14px; font-weight: 800; color: var(--main); }
.r-when svg { width: 26px; height: 26px; flex: none; }
.r-total { display: flex; justify-content: space-between; align-items: center; margin: 8px 14px; padding: 10px 14px; border-radius: 12px; background: var(--main); color: var(--main-ink); font-weight: 700; }
.r-total b { font-size: 22px; }
.r-note { margin: 4px 14px 12px; font-size: 14px; color: var(--muted); }
.r-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; background: #fff; border-radius: 0 0 18px 18px; margin-top: -8px; position: relative; }
.r-actions .btn { min-height: 52px; font-size: 16px; }
.r-actions .btn.wide { grid-column: 1 / -1; }
.receipt-wrap { border-radius: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.12); background: #fff; }
.receipt-wrap .receipt { box-shadow: none; }
.receipt.big .r-body { flex-direction: column; text-align: center; }
.receipt.big .r-num { font-size: 26px; }
.receipt.big .r-items li { font-size: 19px; }

.pill { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.receipt .logo { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex: none; }
.receipt .logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.receipt .pill { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.receipt svg.qr { display: block; }
