/* +----------------------------------------------------------------------
   | 收银端专用样式（POS 布局）
   | 复用 theme.css 的设计令牌，支持多主题
   +---------------------------------------------------------------------- */

/* ============ 整体框架 ============ */
.cash { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

.cash-top {
  height: 58px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px; background: var(--brand); color: #fff;
}
.cash-top .brand-box { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.cash-top .brand-box .avatar {
  width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.cash-top .info { display: flex; align-items: center; gap: 16px; font-size: 13px; opacity: .92; }
.cash-top .acts { display: flex; align-items: center; gap: 8px; }
.cash-top .acts button {
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); color: #fff;
  height: 34px; padding: 0 13px; border-radius: 9px; cursor: pointer; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
}
.cash-top .acts button:hover { background: rgba(255,255,255,.22); }
.cash-top .acts a.qp-entry {
  border: 1px solid #07c160; background: #07c160; color: #fff; text-decoration: none;
  height: 34px; padding: 0 13px; border-radius: 9px; cursor: pointer; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
}
.cash-top .acts a.qp-entry:hover { background: #06ad56; border-color: #06ad56; filter: none; }

.cash-body { flex: 1; display: flex; min-height: 0; }

/* ============ 左：分类 ============ */
.cash-cate {
  width: 108px; flex: none; background: var(--card); border-right: 1px solid var(--line);
  overflow-y: auto; padding: 8px 0;
}
.cash-cate .item {
  padding: 11px 10px; text-align: center; cursor: pointer; font-size: 13px; color: var(--muted);
  border-left: 3px solid transparent; transition: .15s;
}
.cash-cate .item:hover { background: var(--tint); color: var(--brand); }
.cash-cate .item.on { background: var(--tint); color: var(--brand); font-weight: 700; border-left-color: var(--brand); }
.cash-cate .item .n { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; }

/* ============ 中：商品区 ============ */
.cash-goods { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }

.cash-search {
  flex: none; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center;
}
.cash-search .sbox {
  flex: 1; position: relative; display: flex; align-items: center;
}
.cash-search .sbox i { position: absolute; left: 12px; color: var(--ink-3); font-size: 15px; }
.cash-search .sbox input {
  width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 0 14px 0 36px; font-size: 15px; background: var(--bg); color: var(--ink);
  font-family: inherit; outline: none;
}
.cash-search .sbox input:focus { border-color: var(--brand); background: var(--card); }
.cash-search .sbtn {
  height: 42px; padding: 0 18px; border-radius: 11px; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 14px; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.cash-search .sbtn.ghost { background: var(--tint); color: var(--brand); }

.cash-grid {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(122px, 1fr)); gap: 12px;
  align-content: start;
}
.g-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 0;
  cursor: pointer; overflow: hidden; transition: .15s; position: relative;
  display: flex; flex-direction: column; text-align: left;
  font-family: inherit;
}
.g-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.g-card .pic {
  height: 74px; background: var(--tint); display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 26px; overflow: hidden;
}
.g-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.g-card .body { padding: 8px 10px 10px; }
.g-card .nm {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; height: 35px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.g-card .pr { color: var(--brand); font-weight: 700; font-size: 15px; margin-top: 4px; }
.g-card .st { font-size: 11px; color: var(--ink-3); }
.g-card .st.low { color: var(--danger); }
.g-card .badge {
  position: absolute; top: 6px; right: 6px; background: var(--brand); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 20px;
}
.g-empty { grid-column: 1/-1; text-align: center; padding: 50px 0; color: var(--ink-3); }
.g-empty i { font-size: 40px; display: block; margin-bottom: 8px; opacity: .45; }

/* ============ 右：购物车 ============ */
.cash-cart {
  width: 360px; flex: none; background: var(--card); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}

.mem-bar {
  flex: none; padding: 10px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; background: var(--tint);
}
.mem-bar .m-av {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px;
}
.mem-bar .m-info { flex: 1; min-width: 0; }
.mem-bar .m-info .m-nm { font-size: 14px; font-weight: 700; }
.mem-bar .m-info .m-sub { font-size: 11px; color: var(--muted); }
.mem-bar input {
  flex: 1; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
  font-size: 13px; background: var(--card); color: var(--ink); font-family: inherit; outline: none;
}
.mem-bar .btn-m {
  height: 34px; padding: 0 12px; border-radius: 9px; border: none; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 13px; font-family: inherit; flex: none;
}
.mem-bar .btn-m.gray { background: var(--line); color: var(--muted); }

.cart-list { flex: 1; overflow-y: auto; padding: 6px 0; min-height: 90px; }
.cart-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px dashed var(--line);
}
.cart-row .ci { flex: 1; min-width: 0; }
.cart-row .ci .c-nm { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-row .ci .c-p { font-size: 12px; color: var(--ink-3); }
.cart-row .qty { display: flex; align-items: center; gap: 2px; flex: none; }
.cart-row .qty button {
  width: 26px; height: 26px; border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 7px; cursor: pointer; font-size: 15px; line-height: 1; font-family: inherit;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.cart-row .qty button:hover { border-color: var(--brand); color: var(--brand); }
.cart-row .qty .n { min-width: 34px; text-align: center; font-size: 14px; font-weight: 700; }
.cart-row .c-amt { width: 62px; text-align: right; font-weight: 700; color: var(--brand); font-size: 14px; flex: none; }
.cart-row .c-del {
  width: 24px; height: 24px; border: none; background: transparent; color: var(--ink-3);
  cursor: pointer; font-size: 15px; flex: none; padding: 0;
}
.cart-row .c-del:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 44px 0; color: var(--ink-3); font-size: 13px; }
.cart-empty i { font-size: 34px; display: block; margin-bottom: 6px; opacity: .4; }

.cart-sum { flex: none; border-top: 1px solid var(--line); padding: 12px 14px; background: var(--bg); }
.sum-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 3px 0; }
.sum-line.big { font-size: 15px; color: var(--ink); font-weight: 700; }
.sum-line .v { font-weight: 600; }
.sum-line.money .v { color: var(--brand); }
.disc-row { display: flex; gap: 8px; align-items: center; margin: 6px 0 2px; }
.disc-row input {
  flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px;
  font-size: 13px; background: var(--card); color: var(--ink); font-family: inherit; outline: none;
}
.disc-row span { font-size: 12px; color: var(--ink-3); flex: none; }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.pay-grid button {
  height: 40px; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  cursor: pointer; font-size: 13px; color: var(--muted); font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 0;
}
.pay-grid button i { font-size: 15px; }
.pay-grid button:hover { border-color: var(--brand); color: var(--brand); }
.pay-grid button.on { background: var(--brand); color: #fff; border-color: var(--brand); }

.cash-bottom { flex: none; padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.cash-bottom .btn-main {
  flex: 1; height: 52px; border: none; border-radius: 13px; background: var(--brand); color: #fff;
  font-size: 17px; font-weight: 700; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2;
}
.cash-bottom .btn-main small { font-size: 11px; font-weight: 400; opacity: .85; }
.cash-bottom .btn-main i { font-size: 18px; }
.cash-bottom .btn-side {
  width: 62px; height: 52px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--card); color: var(--muted); cursor: pointer; font-size: 11px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-family: inherit;
}
.cash-bottom .btn-side i { font-size: 17px; }
.cash-bottom .btn-side:hover { border-color: var(--brand); color: var(--brand); }

/* ============ 结算弹窗 ============ */
.pay-money {
  font-size: 34px; font-weight: 800; color: var(--brand); text-align: center;
  padding: 6px 0 10px; letter-spacing: -1px;
}
.pay-money small { font-size: 17px; font-weight: 600; }
.cash-in {
  display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 12px;
  padding: 10px 12px; margin-bottom: 10px;
}
.cash-in label { font-size: 13px; color: var(--muted); flex: none; }
.cash-in input {
  flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  font-size: 20px; font-weight: 700; color: var(--ink); background: var(--card);
  font-family: inherit; outline: none; text-align: right;
}
.cash-in input:focus { border-color: var(--brand); }
.change-box {
  background: var(--tint); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.change-box .k { font-size: 14px; color: var(--muted); }
.change-box .v { font-size: 24px; font-weight: 800; color: var(--brand); }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.quick-cash button {
  height: 36px; border: 1px solid var(--line); background: var(--card); border-radius: 9px;
  cursor: pointer; font-size: 13px; color: var(--muted); font-family: inherit;
}
.quick-cash button:hover { border-color: var(--brand); color: var(--brand); }

/* ============ 挂单 / 订单 / 交班 ============ */
.hold-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 11px; margin-bottom: 8px; background: var(--card);
}
.hold-item .hi { flex: 1; min-width: 0; }
.hold-item .hi .h-t { font-size: 13px; font-weight: 700; }
.hold-item .hi .h-s { font-size: 11.5px; color: var(--ink-3); }
.hold-item .h-a { font-weight: 700; color: var(--brand); }

.shift-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.shift-line:last-child { border: none; }
.shift-line .k { color: var(--muted); }
.shift-line .v { font-weight: 700; }
.shift-total {
  background: var(--tint); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; text-align: center;
}
.shift-total .l { font-size: 12px; color: var(--muted); }
.shift-total .n { font-size: 28px; font-weight: 800; color: var(--brand); }

/* ============ 小票 ============ */
.receipt {
  font-family: "Courier New", Consolas, monospace; font-size: 12px; line-height: 1.75;
  background: #fff; color: #222; padding: 14px 16px; width: 260px; margin: 0 auto;
}
.receipt h4 { text-align: center; margin: 0 0 4px; font-size: 14px; }
.receipt .r-c { text-align: center; margin-bottom: 8px; font-size: 11px; }
.receipt .r-line { border-top: 1px dashed #999; margin: 6px 0; }
.receipt .r-item { display: flex; justify-content: space-between; }
.receipt .r-item .rn { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.receipt .r-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 13px; }
.receipt .r-foot { text-align: center; margin-top: 10px; font-size: 11px; }

/* ============ 登录页 ============ */
.cash-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand)); padding: 20px;
}
.cash-login .box {
  width: 100%; max-width: 420px; background: var(--card); border-radius: 18px;
  padding: 34px 32px; box-shadow: 0 20px 50px rgba(0,0,0,.22);
}
.cash-login h2 { margin: 0 0 6px; font-size: 22px; text-align: center; }
.cash-login .sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.cash-login .fi { margin-bottom: 14px; }
.cash-login .fi label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.cash-login .fi input, .cash-login .fi select {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0 14px; font-size: 15px; background: var(--bg); color: var(--ink);
  font-family: inherit; outline: none;
}
.cash-login .fi input:focus, .cash-login .fi select:focus { border-color: var(--brand); }
.cash-login .btn {
  width: 100%; height: 48px; border: none; border-radius: 12px; background: var(--brand);
  color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; font-family: inherit;
}
.cash-login .btn:hover { background: var(--brand-2); }
.cash-login .tip { text-align: center; font-size: 12px; color: var(--ink-3); margin-top: 16px; }

/* ============ 暗色主题适配 ============ */
html[data-theme='dark'] .cash-cate, html[data-theme='dark'] .cash-cart,
html[data-theme='dark'] .cash-search, html[data-theme='dark'] .g-card,
html[data-theme='dark'] .hold-item { background: var(--card); }
html[data-theme='dark'] .pay-grid button, html[data-theme='dark'] .quick-cash button,
html[data-theme='dark'] .cash-bottom .btn-side { background: var(--card); }
html[data-theme='dark'] .g-card .pic { background: var(--tint); }
html[data-theme='dark'] .receipt { background: #fff; color: #222; }

/* ============ 会员开卡 / 次卡核销 / 团购核销 ============ */
.frow { margin-bottom: 12px; }
.frow label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.frow label b { color: var(--danger); font-weight: 400; }
.frow input, .frow select {
  width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 11px;
  padding: 0 12px; font-size: 14px; background: var(--bg); color: var(--ink);
  font-family: inherit; outline: none;
}
.frow input:focus, .frow select:focus { border-color: var(--brand); background: var(--card); }
.frow .tip { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.frow-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.vf-none { text-align: center; padding: 34px 0; color: var(--ink-3); font-size: 13px; }
.vf-none i { font-size: 36px; display: block; margin-bottom: 8px; opacity: .45; }

.mcard {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 9px;
  cursor: pointer; transition: .15s; background: var(--card); position: relative;
}
.mcard:hover { border-color: var(--brand); }
.mcard.on { border-color: var(--brand); background: var(--tint); box-shadow: var(--shadow-sm); }
.mcard.dis { opacity: .55; cursor: not-allowed; }
.mcard.dis:hover { border-color: var(--line); }
.mcard .mc-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mcard .mc-nm { font-size: 14px; font-weight: 700; }
.mcard .mc-tag {
  font-size: 10.5px; padding: 1px 8px; border-radius: 20px; flex: none;
  background: var(--tint); color: var(--brand);
}
.mcard .mc-tag.gray { background: var(--line); color: var(--muted); }
.mcard .mc-tag.red { background: #fdecec; color: var(--danger); }
.mcard .mc-sub { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.mcard .mc-left { color: var(--brand); font-weight: 700; }
.mcard .mc-left.zero { color: var(--danger); }

.vf-times { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; }
.vf-times .lb { font-size: 13px; color: var(--muted); flex: none; }
.vf-times .stepper { display: flex; align-items: center; gap: 4px; }
.vf-times .stepper button {
  width: 34px; height: 34px; border: 1px solid var(--line); background: var(--card);
  border-radius: 9px; cursor: pointer; font-size: 17px; color: var(--ink); font-family: inherit;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.vf-times .stepper button:hover { border-color: var(--brand); color: var(--brand); }
.vf-times .stepper input {
  width: 58px; height: 34px; text-align: center; border: 1px solid var(--line); border-radius: 9px;
  font-size: 15px; font-weight: 700; background: var(--card); color: var(--ink); font-family: inherit; outline: none;
}

.cp-box {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 12px;
  background: var(--tint);
}
.cp-box .cp-t { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cp-box .cp-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); padding: 3px 0; }
.cp-box .cp-row b { color: var(--ink); font-weight: 600; }
.cp-box .cp-price { color: var(--brand); font-size: 20px; font-weight: 800; }
.cp-save {
  display: inline-block; font-size: 11px; background: #fdecec; color: var(--danger);
  border-radius: 20px; padding: 1px 8px; margin-left: 8px; font-weight: 400;
}
.vf-search { display: flex; gap: 8px; }
.vf-search input {
  flex: 1; height: 44px; border: 1.5px solid var(--line); border-radius: 11px; padding: 0 12px;
  font-size: 15px; background: var(--bg); color: var(--ink); font-family: inherit; outline: none;
}
.vf-search input:focus { border-color: var(--brand); }
.vf-search button {
  height: 44px; padding: 0 18px; border: none; border-radius: 11px; background: var(--brand);
  color: #fff; font-size: 14px; cursor: pointer; font-family: inherit; flex: none;
}
.vf-hint { font-size: 12px; color: var(--ink-3); margin-top: 8px; line-height: 1.7; }
html[data-theme='dark'] .mcard, html[data-theme='dark'] .cp-box { background: var(--card); }
html[data-theme='dark'] .vf-search button { background: var(--brand); }

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .cash-cart { width: 320px; }
  .cash-cate { width: 92px; }
  .cash-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}
@media (max-width: 980px) {
  .cash-body { flex-wrap: wrap; }
  .cash-cate { width: 100%; height: auto; display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 0; }
  .cash-cate .item { flex: none; padding: 10px 16px; border-left: none; border-bottom: 3px solid transparent; }
  .cash-cate .item.on { border-left-color: transparent; border-bottom-color: var(--brand); }
  .cash-cart { width: 100%; border-left: none; border-top: 1px solid var(--line); max-height: 46vh; }
}

/* ============ 纯收银模式 ============ */
.qp { display: flex; flex-direction: column; height: 100vh; background: var(--bg, #f5f6f8); }
.qp-top {
  display: flex; align-items: center; gap: 16px; padding: 10px 18px;
  background: var(--card, #fff); border-bottom: 1px solid var(--line, #e8eaee); flex: none;
}
.qp-top .brand-box { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.qp-top .info { display: flex; align-items: center; gap: 14px; color: var(--ink-3, #8a90a0); font-size: 13px; }
.qp-mode-tip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; background: rgba(7,193,96,.1); color: #07c160; font-size: 12px; }
.qp-top .acts { margin-left: auto; }
.qp-back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px;
  background: var(--brand); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
}
.qp-back:hover { filter: brightness(1.08); }

.qp-body { flex: 1; display: flex; gap: 20px; padding: 20px; overflow: hidden; }

/* —— 左：收款区 —— */
.qp-main { flex: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.qp-amt-box {
  background: var(--card, #fff); border-radius: 16px; padding: 26px 28px 18px;
  border: 1px solid var(--line, #e8eaee);
}
.qp-amt-lbl { font-size: 13px; color: var(--ink-3, #8a90a0); }
.qp-amt { font-size: 56px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.qp-amt-tip { font-size: 12px; color: var(--ink-3, #8a90a0); margin-top: 2px; }

.qp-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qp-pay-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: var(--card, #fff); border: 2px solid var(--line, #e8eaee); cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s; user-select: none;
}
.qp-pay-item:active { transform: scale(.985); }
.qp-pay-item .bi { font-size: 34px; }
.qp-pay-item .pi-info b { display: block; font-size: 16px; }
.qp-pay-item .pi-info span { font-size: 12px; color: var(--ink-3, #8a90a0); }
.qp-pay-item[data-type="wx"] .bi { color: #07c160; }
.qp-pay-item[data-type="ali"] .bi { color: #1677ff; }
.qp-pay-item[data-type="wx"].on { border-color: #07c160; box-shadow: 0 0 0 4px rgba(7,193,96,.12); }
.qp-pay-item[data-type="ali"].on { border-color: #1677ff; box-shadow: 0 0 0 4px rgba(22,119,255,.12); }

.qp-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; min-height: 0; }
.qp-pad button {
  border: 1px solid var(--line, #e8eaee); background: var(--card, #fff); border-radius: 12px;
  font-size: 24px; font-weight: 700; cursor: pointer; font-family: inherit; color: var(--ink-1, #222);
  transition: background .12s, transform .08s; min-height: 52px;
}
.qp-pad button:hover { background: var(--bg, #f0f1f4); }
.qp-pad button:active { transform: scale(.96); background: var(--bg, #e9ebef); }
.qp-pad button.fn { font-size: 16px; color: var(--ink-2, #555); }
.qp-pad button.wide { grid-row: span 2; font-size: 19px; background: #d8dbe1; color: #333; }
.qp-pad button.wide.ready { background: var(--brand); color: #fff; }
.qp-pad button.wide.ready:hover { filter: brightness(1.08); }
.qp-pad button.wide2 { grid-column: span 2; }

.qp-remark {
  display: flex; align-items: center; gap: 10px; background: var(--card, #fff);
  border: 1px solid var(--line, #e8eaee); border-radius: 12px; padding: 0 16px; flex: none;
}
.qp-remark .bi { color: var(--ink-3, #8a90a0); }
.qp-remark input { flex: 1; border: none; outline: none; background: none; font-size: 14px; padding: 12px 0; font-family: inherit; color: var(--ink-1, #222); }

/* —— 右：收款记录 —— */
.qp-side { width: 400px; flex: none; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.qp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: none; }
.qp-stats .st {
  background: var(--card, #fff); border: 1px solid var(--line, #e8eaee); border-radius: 12px; padding: 12px 16px;
}
.qp-stats .num { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.qp-stats .lbl { font-size: 12px; color: var(--ink-3, #8a90a0); display: flex; align-items: center; gap: 4px; }
.qp-stats .st.wx .num { color: #07c160; }
.qp-stats .st.ali .num { color: #1677ff; }

.qp-filter { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; }
.qp-filter .tabs { display: flex; background: var(--card, #fff); border: 1px solid var(--line, #e8eaee); border-radius: 10px; padding: 3px; gap: 2px; }
.qp-filter .tabs button {
  border: none; background: none; padding: 6px 13px; border-radius: 8px; font-size: 13px;
  cursor: pointer; color: var(--ink-2, #555); font-family: inherit;
}
.qp-filter .tabs button.on { background: var(--brand); color: #fff; font-weight: 600; }
.qp-filter .fr { display: flex; gap: 8px; margin-left: auto; }
.qp-filter select {
  border: 1px solid var(--line, #e8eaee); background: var(--card, #fff); border-radius: 9px;
  padding: 7px 10px; font-size: 13px; font-family: inherit; color: var(--ink-1, #222); cursor: pointer;
}
.qp-kw { display: flex; align-items: center; gap: 6px; background: var(--card, #fff); border: 1px solid var(--line, #e8eaee); border-radius: 9px; padding: 0 10px; }
.qp-kw .bi { color: var(--ink-3, #8a90a0); font-size: 12px; }
.qp-kw input { width: 92px; border: none; outline: none; background: none; font-size: 13px; padding: 7px 0; font-family: inherit; color: var(--ink-1, #222); }

.qp-list {
  flex: 1; overflow-y: auto; background: var(--card, #fff); border: 1px solid var(--line, #e8eaee);
  border-radius: 14px; padding: 6px; min-height: 0;
}
.qp-empty { text-align: center; color: var(--ink-3, #8a90a0); padding: 46px 0; }
.qp-empty .bi { font-size: 34px; display: block; margin-bottom: 8px; opacity: .5; }
.qp-empty p { font-size: 13px; }
.qr-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; }
.qr-item + .qr-item { border-top: 1px solid var(--line, #e8eaee); }
.qr-item:hover { background: var(--bg, #f7f8fa); }
.qr-ico {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; flex: none;
}
.qr-ico.wx { background: rgba(7,193,96,.12); color: #07c160; }
.qr-ico.ali { background: rgba(22,119,255,.12); color: #1677ff; }
.qr-info { flex: 1; min-width: 0; }
.qr-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-no { font-size: 11px; color: var(--ink-3, #8a90a0); font-variant-numeric: tabular-nums; }
.qr-amt { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.qr-amt.wx { color: #07c160; }
.qr-amt.ali { color: #1677ff; }

/* —— 收款成功浮层 —— */
.qp-ok {
  position: fixed; inset: 0; background: rgba(20, 22, 28, .55); z-index: 200;
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.ok-card {
  background: var(--card, #fff); border-radius: 22px; padding: 36px 40px 30px; width: 400px;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25); animation: qpPop .22s ease;
}
@keyframes qpPop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ok-ico {
  width: 74px; height: 74px; border-radius: 50%; background: #07c160; color: #fff;
  font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.ok-amt { font-size: 42px; font-weight: 800; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.ok-line { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 2px; border-bottom: 1px dashed var(--line, #e8eaee); }
.ok-line span { color: var(--ink-3, #8a90a0); }
.ok-line b { font-weight: 600; }
.ok-btns { display: flex; gap: 12px; margin-top: 22px; }
.ok-btns .ob {
  flex: 1; padding: 13px; border: none; border-radius: 12px; background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.ok-btns .ob:hover { filter: brightness(1.08); }
.ok-btns .ob.ghost { background: var(--bg, #eef0f3); color: var(--ink-2, #555); }

/* 暗色主题微调 */
html[data-theme='dark'] .qp-pad button { background: #262a33; border-color: #333947; color: #e8eaf0; }
html[data-theme='dark'] .qp-pad button:hover { background: #2e333e; }
html[data-theme='dark'] .qp-pad button.wide { background: #3a4150; color: #e8eaf0; }
html[data-theme='dark'] .qp-pad button.wide.ready { background: var(--brand); color: #fff; }

/* 纯收银响应式 */
@media (max-width: 1200px) {
  .qp-side { width: 330px; }
  .qp-amt { font-size: 46px; }
}
@media (max-width: 980px) {
  .qp-body { flex-direction: column; overflow-y: auto; }
  .qp-side { width: 100%; }
  .qp-list { max-height: 300px; }
}

/* ============ 订单退款 / 扫码授权 ============ */
.rf-wrap { text-align: center; padding: 6px 4px; }
.rf-hd { font-size: 16px; font-weight: 700; }
.rf-amt { font-size: 38px; font-weight: 800; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.rf-no { font-size: 12px; color: var(--ink-3, #8a90a0); }
.rf-qr {
  width: 180px; height: 180px; margin: 14px auto; padding: 8px; background: #fff;
  border: 1px solid var(--line, #e8eaee); border-radius: 12px; display: flex;
  align-items: center; justify-content: center;
}
.rf-qr img, .rf-qr canvas { display: block; }
.rf-tip { font-size: 12px; color: var(--ink-3, #8a90a0); line-height: 1.8; }
.rf-link {
  display: flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 10px;
  background: var(--bg, #f5f6f8); border-radius: 9px;
}
.rf-link .bi { color: var(--ink-3, #8a90a0); }
.rf-link input {
  flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 11px;
  color: var(--ink-2, #555); font-family: inherit;
}
.refund-ok { text-align: center; padding: 10px 0 4px; }
.refund-ok .bi { font-size: 52px; color: #07c160; }
.ro-amt { font-size: 34px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ro-no { font-size: 12px; color: var(--ink-3, #8a90a0); margin-top: 2px; }
.ro-tip { font-size: 12px; color: var(--ink-3, #8a90a0); margin-top: 12px; line-height: 1.7; }

/* 顶栏语音/退款按钮微调（与既有 button 风格一致，无需额外规则） */
