/* Tạo bill nút chính giữa thanh dưới */
.fabw { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 76px; flex: none; color: var(--brand); font-size: 12px; font-weight: 900; white-space: nowrap; }
.fabw .fab { margin-top: -30px; width: 66px; height: 66px; }
.fabw:hover .fab { background: var(--deep-hover); }
.fabl { line-height: 1.2; }
.tab { width: 64px; font-size: 12px; }

.shiprow { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; border-radius: 20px; background: var(--peach); color: var(--brand); font-weight: 800; }
.shiprow span { flex: 1; }
.shiprow:hover { background: var(--cream); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.note.left { text-align: left; }
.kv small.sub { display: block; font-size: 12px; }
.avatar { width: 62px; height: 62px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand); font-size: 24px; font-weight: 900; }

/* Công trong tháng */
.congs { gap: 14px; }
.cong { display: flex; align-items: center; gap: 14px; }
.cong b { font-size: 50px; font-weight: 900; line-height: 1; color: var(--deep); }
.cong span { font-size: 15.5px; font-weight: 800; color: var(--deep); line-height: 1.25; }
.cong small { display: block; font-size: 12px; font-weight: 600; color: var(--mut); }

.wait { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--peach); color: var(--brand); font-size: 12.5px; font-weight: 700; line-height: 1.35; }
.wait svg.i { flex: none; }

/* Ca làm và duyệt ca */
.srow { border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; }
.srow .kv { border-bottom: 0; }
.st { font-style: normal; font-weight: 800; }
.who-n { display: block; color: var(--deep); font-size: 14.5px; font-weight: 900; }
.st.cho { color: #A15C07; }
.st.ok { color: #2E7D3A; }
.st.tu { color: #B42318; }
.sbtns { display: flex; gap: 8px; padding-bottom: 12px; }
.sbtns .btn { flex: 1; min-height: 46px; font-size: 13px; }

/* Tùy chọn khi tạo bill */
.sw.static { cursor: default; }
.mini-step { display: flex; align-items: center; gap: 6px; flex: none; }
.mini-step button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--peach); color: var(--brand); }
.mini-step button:hover { background: var(--cream); }
.mini-step .c { width: 30px; text-align: center; font-size: 16.5px; font-weight: 900; }
.promo { display: flex; gap: 8px; }
.promo .inp { flex: 1; min-width: 0; text-transform: uppercase; }
.promo .btn { width: auto; flex: none; min-height: 56px; padding-inline: 18px; font-size: 14px; }

/* Ảnh đồ */
.phs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--peach); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph button { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(46, 38, 32, .78); color: #fff; }
.ph button svg.i { width: 18px; height: 18px; }
.ph.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; cursor: pointer; text-align: center; color: var(--brand); font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 2px #C89A6C; }
.ph.add:hover { background: var(--cream); }
.ph.add:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.ph.add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Phiếu in, đúng khổ 80mm và cách trình bày của phiếu JAMO */
.receipt-wrap { display: flex; justify-content: center; }
.receipt { width: 302px; padding: 14px 15px; background: #fff; color: #000; font: 500 13px/1.45 "Plus Jakarta Sans", "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.receipt-wrap .receipt { box-shadow: var(--shadow); border-radius: 4px; }
.rc { text-align: center; }
.rlogo { display: block; width: 40px; height: 32px; margin: 0 auto; }
.rname { font-size: 15px; font-weight: 800; letter-spacing: .02em; margin-top: 4px; }
.rhot { font-size: 12.5px; }
.raddr { font-size: 11.5px; }
.rdash { border-top: 1px dashed #000; margin: 6px 0; }
.rtitle { text-align: center; font-size: 14px; font-weight: 800; }
.rqr { width: 112px; height: 112px; margin: 6px auto; }
.rqr svg { display: block; width: 100%; height: 100%; }
.rcode { text-align: center; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.rrow { display: flex; justify-content: space-between; gap: 10px; }
.rrow > :last-child { text-align: right; overflow-wrap: anywhere; }
.rrow b { font-weight: 700; }
.rsvc { font-weight: 700; }
.rtotal { font-size: 16px; font-weight: 800; align-items: baseline; }
.rthanks { font-weight: 600; font-size: 12.5px; }
.rat { font-size: 12px; }
#print-area { display: none; }

@media (min-width: 900px) {
  .phs { grid-template-columns: repeat(4, 1fr); }
  .fabw { display: none; }
}
@media print {
  @page { size: 80mm auto; margin: 0; }
  body { background: #fff !important; }
  #app, #toast { display: none !important; }
  #print-area { display: block; }
  #print-area .receipt { width: 80mm; padding: 3mm 4mm; }
}

.kv span { flex: 1 1 auto; max-width: none; }
.kv b { flex: 0 1 auto; max-width: 62%; }
.filehide { position: absolute; width: 1px; height: 1px; opacity: 0; }
label.btn { position: relative; cursor: pointer; }
label.btn:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (min-width: 900px) {
  .wrap.qcols { display: block; column-count: 2; column-gap: 12px; }
  .wrap.qcols > * { break-inside: avoid; margin-bottom: 12px; }
}

/* Dịch vụ kèm: ủi đồ, giặt riêng, nước xả, dịch vụ thêm */
.addons { display: flex; flex-direction: column; gap: 10px; }
.addons > .lb { margin-top: 6px; }
.item .qn { width: 52px; height: 46px; flex: none; padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); text-align: center; font-family: inherit; font-size: 16.5px; font-weight: 900; color: var(--deep); }
.item .qn:focus { outline: 3px solid var(--brand); outline-offset: 1px; }

/* Ảnh đồ làm hình đại diện đơn, số bill ở góc */
.thumb { position: relative; width: 78px; height: 78px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: var(--peach); color: var(--brand); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb svg.i { width: 30px; height: 30px; }
.thumb .badge { position: absolute; left: 6px; top: 6px; min-width: 34px; padding: 3px 8px; border-radius: 10px; background: var(--deep); color: #fff; font-size: 14px; font-weight: 900; line-height: 1.2; text-align: center; }
.tagship { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--peach); color: var(--brand); font-size: 12px; font-weight: 800; vertical-align: 2px; white-space: nowrap; }
.tagship svg.i { width: 15px; height: 15px; }

/* Trang đầu dạng bảng tin */
.home .wrap > .lb { margin: 6px 0 -2px; }
.shipbig { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 22px; background: #FBE6CF; color: var(--deep); box-shadow: inset 0 0 0 2px #C89A6C, var(--shadow); }
.shipbig:hover { background: #F8DDBF; }
.shipbig .sic { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--deep); color: #fff; }
.shipbig .sic svg.i { width: 30px; height: 30px; }
.shipbig .st { flex: 1; min-width: 0; }
.shipbig b { display: block; font-size: 16.5px; font-weight: 900; line-height: 1.2; }
.shipbig small { display: block; font-size: 12px; font-weight: 700; color: var(--brand); }
.shipbig .sgo { display: inline-flex; align-items: center; gap: 2px; flex: none; padding: 9px 8px 9px 14px; border-radius: 99px; background: var(--deep); color: #fff; font-size: 12px; font-weight: 800; }
.shipbig .sgo svg.i { width: 18px; height: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--deep); }
.tile:hover { background: var(--cream); }
.tile b { font-size: 20.5px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.tile span { font-size: 12px; font-weight: 700; color: var(--mut); line-height: 1.25; }
.tile.warn b { color: #A15C07; }
.urows { display: flex; flex-direction: column; gap: 10px; }
.ord.urow { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 22px; }
.urow .thumb { width: 64px; height: 64px; border-radius: 16px; }
.urow .thumb .badge { left: 4px; top: 4px; min-width: 30px; padding: 2px 6px; font-size: 12px; }
.urow .t b { font-size: 14.5px; }
.urow .t small { font-size: 12px; }
.urow:hover .t b { text-decoration: underline; text-underline-offset: 3px; }
.nx { display: inline-flex; align-items: center; gap: 2px; flex: none; padding: 8px 6px 8px 12px; border-radius: 99px; background: var(--peach); color: var(--brand); font-size: 12px; font-weight: 800; white-space: nowrap; }
.nx svg.i { width: 18px; height: 18px; }
.seemore { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 54px; border-radius: 18px; box-shadow: inset 0 0 0 2px #C89A6C; color: var(--brand); font-weight: 800; }
.seemore:hover { background: var(--peach); }
@media (max-width: 899px) { .urows .urow:nth-child(n+4) { display: none; } }
@media (min-width: 900px) { .urows { display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 899px) { .tiles { grid-template-columns: 1.45fr 1fr 1fr; gap: 8px; } .tile { padding: 12px; } .tile b { font-size: 17px; } }

/* Lọc đơn theo cách nhận đồ: tại quầy hay giao nhận */
.kenh { display: flex; padding: 4px; gap: 4px; border-radius: 16px; background: var(--peach); }
.kenh button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; color: var(--brand); font-size: 13px; font-weight: 800; }
.kenh button svg.i { width: 18px; height: 18px; }
.kenh button.on { background: #fff; color: var(--deep); box-shadow: 0 2px 8px rgba(91, 54, 26, .14); }
@media (min-width: 900px) { .kenh { max-width: 520px; } }

/* Cột giá trị trong bảng thông tin rộng hơn để chữ nằm 1 hàng */
.kv b { flex: 1 1 auto; min-width: 0; max-width: none; }
.kv span { max-width: none; white-space: nowrap; }

/* Ô to phía trên: số lớn kèm đơn vị, hoặc chữ lớn ở bước chọn dịch vụ */
.bigv { text-align: center; color: #fff; padding: 14px 0 8px; }
.bigv b { display: block; font-size: 66px; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.bigv b small { font-size: 22px; font-weight: 900; margin-left: 4px; letter-spacing: 0; }
.bigv b.word { font-size: 30px; line-height: 1.15; padding: 14px 0 10px; }
.bigv span { display: block; margin-top: 6px; font-size: 14px; font-weight: 800; opacity: .92; }
.dial .dsub { display: block; text-align: center; margin: 2px 0 8px; font-size: 13px; font-weight: 800; opacity: .9; color: #fff; }

/* Thẻ chọn dịch vụ có biểu tượng */
.scards { display: flex; flex-direction: column; gap: 10px; }
.scard { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); text-align: left; }
.scard:hover { box-shadow: inset 0 0 0 2px #E2C29E; }
.scard.on { background: var(--peach); box-shadow: inset 0 0 0 2px var(--brand); }
.scard .ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--peach); color: var(--brand); }
.scard.on .ic { background: var(--deep); color: #fff; }
.scard .t { flex: 1; min-width: 0; }
.scard b { display: block; font-size: 15px; font-weight: 900; color: var(--deep); }
.scard small { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .rd { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px #C9B49C; }
.scard.on .rd { box-shadow: inset 0 0 0 7px var(--deep); }
.svcpick { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--peach); color: var(--brand); font-size: 13.5px; }
.svcpick b { color: var(--deep); }

/* Chọn số túi */
.bagpick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bagpick button { display: flex; flex-direction: column; align-items: center; padding: 9px 4px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.bagpick b { font-size: 14.5px; font-weight: 900; color: var(--deep); white-space: nowrap; }
.bagpick small { font-size: 11.5px; color: var(--mut); }
.bagpick button.on { background: var(--deep); box-shadow: none; }
.bagpick button.on b, .bagpick button.on small { color: #fff; }

/* Ủi đồ: danh sách con nằm trong khung, nút cộng trừ nhỏ, dòng đã chọn đổi màu */
.igrp { border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); overflow: hidden; }
.igrp > .sw { box-shadow: none; background: transparent; border-radius: 0; }
.igrp.open { padding-bottom: 10px; }
.irows { margin: 0 10px; border-radius: 14px; background: var(--bg); overflow: hidden; }
.irows.solo { margin: 0; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); border-radius: 20px; }
.irow { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-bottom: 1px solid var(--line); }
.irow:last-child { border-bottom: 0; }
.irow .t { flex: 1; min-width: 0; }
.irow b { display: block; font-size: 13.5px; font-weight: 900; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.irow small { display: block; font-size: 11.5px; color: var(--mut); }
.irow.on { background: var(--peach); }
.stp { display: flex; align-items: center; gap: 4px; flex: none; }
.stp button { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--card); color: var(--brand); box-shadow: inset 0 0 0 1.5px #E7CFB3; }
.stp button svg.i { width: 15px; height: 15px; }
.irow.on .stp button { background: var(--deep); color: #fff; box-shadow: none; }
.stp .qn { width: 32px; height: 28px; padding: 0; border: 0; background: transparent; text-align: center; font-family: inherit; font-size: 16px; font-weight: 900; color: var(--deep); }
.stp .qn:focus { outline: 2px solid var(--brand); border-radius: 6px; }
.svcpick > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svcpick .link { width: auto; flex: none; margin: 0; padding: 4px 6px; }
.kv b .link { display: inline-block; width: auto; padding: 4px 0 0; margin: 0; text-align: right; }

/* Bản dịch ghi chú */
.notevi { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 12px; background: var(--peach); color: var(--deep); font-weight: 800; text-align: left; }
.notevi small { display: block; font-size: 11.5px; font-weight: 800; color: var(--brand); }
.notevi.muted { background: transparent; padding: 0; color: var(--mut); font-weight: 700; text-align: right; }

/* Mã QR chuyển khoản */
.vqbox { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px #C89A6C, var(--shadow); }
.vqqr { width: 150px; height: 150px; flex: none; }
.vqqr svg, .vqtest svg { display: block; width: 100%; height: 100%; }
.vqt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vqt b { font-size: 14px; font-weight: 900; color: var(--deep); }
.vqt span { font-size: 22px; font-weight: 900; color: var(--deep); }
.vqt small { font-size: 12px; color: var(--mut); overflow-wrap: anywhere; }
.vqtest { width: 200px; height: 200px; margin: 0 auto; }
.rbank { font-size: 11.5px; line-height: 1.35; }
@media (max-width: 380px) { .vqqr { width: 124px; height: 124px; } }

/* Phiếu in 3 liên */
.receipt-wrap { flex-direction: column; align-items: center; gap: 16px; }
.rlien { margin-top: 4px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.rsmall { font-size: 11.5px; }
.rqr.big { width: 170px; height: 170px; }
.rbig { text-align: center; font-size: 64px; font-weight: 800; line-height: 1; margin: 4px 0; }
@media print {
  #print-area .receipt { page-break-after: always; break-after: page; }
  #print-area .receipt:last-child { page-break-after: auto; break-after: auto; }
  #print-area .rqr.big { width: 52mm; height: 52mm; }
}

/* Mã QR của app */
.aqr-link { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--deep); }
.aqr-link > svg.i:first-child { width: 26px; height: 26px; padding: 8px; box-sizing: content-box; border-radius: 14px; background: var(--peach); color: var(--brand); }
.aqr-link span { flex: 1; min-width: 0; }
.aqr-link b { display: block; font-size: 15px; font-weight: 900; }
.aqr-link small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.aqr-link > svg.i:last-child { width: 20px; height: 20px; color: var(--mut); }
.aqr-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 18px 20px; border-radius: 28px; background: var(--hero); color: #fff; box-shadow: 0 14px 30px rgba(91, 54, 26, .28); text-align: center; }
.aqr-brand { display: flex; align-items: center; gap: 10px; }
.aqr-brand img { width: 44px; height: 44px; border-radius: 12px; }
.aqr-brand b { display: block; font-size: 22px; font-weight: 900; letter-spacing: .12em; line-height: 1; text-align: left; }
.aqr-brand small { display: block; margin-top: 3px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #E2B26E; text-align: left; }
.aqr-code { width: min(76vw, 300px); aspect-ratio: 1; padding: 14px; border-radius: 22px; background: #fff; }
.aqr-code svg { display: block; width: 100%; height: 100%; }
.aqr-t { font-size: 19px; font-weight: 900; }
.aqr-steps { margin-top: -8px; font-size: 13.5px; font-weight: 800; color: #E2B26E; letter-spacing: .02em; }
.aqr-s { font-size: 12px; font-weight: 700; color: #F6D9B8; }
.aqr-url { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.aqr-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; font-weight: 700; color: var(--mut); }
.aqr-url .link { flex: none; display: inline-flex; align-items: center; gap: 4px; }

/* Tạo bill: chọn quốc gia cạnh câu hỏi số điện thoại */
.qrow2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.qrow2 .q { margin: 0; }
.ccsm { min-height: 44px; padding: 0 10px; border-radius: 14px; font-size: 14px; }

.phlen, .phodd { margin: 0; padding: 10px 12px; border-radius: 14px; background: #FEF3C7; color: #92400E; font-size: 13px; font-weight: 800; text-align: center; }

.numrow { display: flex; gap: 8px; align-items: stretch; }
.numrow .ccbtn { min-height: auto; padding: 0 10px; border-radius: 16px; }
.numrow .num { flex: 1; min-width: 0; min-height: 52px; border-radius: 16px; font-size: 22px; }
.numrow .num.empty { font-size: 16px; }
.numrow .numbtn { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 7px 0 12px; font-size: 21px; color: var(--ink); white-space: nowrap; }
.numrow .numedit { flex: none; padding: 7px 10px; border-radius: 11px; background: var(--peach); font-size: 13px; font-weight: 900; letter-spacing: 0; color: var(--brand); }
.numrow + .pad, .numrow ~ .pad { margin-top: 2px; }
.numrow ~ .pad button { height: 52px; border-radius: 16px; font-size: 21px; }
@media (min-width: 700px) { .numrow .numbtn { position: relative; justify-content: center; } .numrow .numbtn .numedit { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); } }
/* Phiếu nhận đồ: In lại phiếu + Hủy đơn thành 2 nút nhỏ cạnh nhau (anh 07/11) */
.minirow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 10px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 800; color: var(--brand); }
.mini svg.i { width: 18px; height: 18px; flex: none; }
.mini.red { color: var(--red); }
.mini:active { background: var(--peach); }

@media (min-width: 700px) { .bar-in.wide .minirow { flex: none; grid-template-columns: auto auto; } .bar-in.wide .mini { white-space: nowrap; padding: 0 14px; } }
/* Liên 2 thanh toán gọn: QR trái, thông tin phải (anh 07/11) */
.rpay { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.rpay .rqr { flex: none; width: 118px; height: 118px; margin: 0; }
.rpay-t { flex: 1; min-width: 0; font-size: 12px; line-height: 1.3; word-break: break-all; }
.rpay-t b { display: block; font-size: 13px; font-weight: 800; }
.rpay-l { font-size: 11.5px; margin-top: 3px; }
.rpay-l:first-child { margin-top: 0; }
.rpay-m { font-size: 19px; font-weight: 800; line-height: 1.2; }
/* Màn phiếu: dòng ngôn ngữ phiếu khách + 3 nút nhỏ (anh 07/11) */
.plang { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 800; color: var(--ink); text-align: left; }
.plang .pflag { display: inline-flex; width: 26px; height: 18px; border-radius: 3px; overflow: hidden; flex: none; }
.plang .pflag svg { width: 100%; height: 100%; }
.plang small { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--brand); }
.minirow.three { grid-template-columns: repeat(3, 1fr); }
.minirow.three .mini { padding: 0 6px; font-size: 13px; gap: 4px; }

.upcard { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 14px 16px; border-radius: 18px; background: var(--peach); color: var(--deep); }
.upcard .t { flex: 1; min-width: 0; }
.upcard b { display: block; font-size: 15px; font-weight: 900; }
.upcard small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.upcard .btn { width: auto; flex: none; white-space: nowrap; padding-left: 18px; padding-right: 18px; }

/* Khung sửa thông tin đơn (mẫu B, anh chốt 09/11): điện thoại trượt lên, máy tính ở giữa màn hình. */
.edsheet h2 { font-size: 22px; }
.edsheet .nsheet-body { display: flex; flex-direction: column; gap: 11px; padding-bottom: 10px; }
.edwarn { background: var(--peach); color: var(--deep); padding: 10px 14px; border-radius: 14px; font-size: 13.5px; font-weight: 800; }
.edslots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.edslots .chip { text-align: center; white-space: nowrap; font-size: 14.5px; border-radius: 16px; }
.edfoot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 10px 0 calc(16px + env(safe-area-inset-bottom)); }
.edfoot .btn { min-height: 54px; border-radius: 18px; }
.lsheet.still { animation: none; }
@media (min-width: 900px) {
  .lsheet.nsheet.edsheet { top: 50%; bottom: auto; left: 50%; right: auto; margin: 0; width: 560px; max-width: 560px; transform: translate(-50%, -50%); border-radius: 30px; padding-inline: 24px; animation: none; }
  .edsheet .nsheet-body { margin-inline: -24px; padding-inline: 24px; }
  .edsheet .edslots { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Quy trình 5 bước, kiểu C1 (anh chốt 10/11) ---------- */
.xring { position: relative; width: 200px; height: 200px; margin: 14px auto 0; }
.xring svg { width: 200px; height: 200px; transform: rotate(-90deg); display: block; }
.xring .m { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
.xring .m b { font-size: 52px; font-weight: 900; line-height: 1; }
.xring .m small { font-size: 15px; font-weight: 800; color: var(--peach); }
.xline { text-align: center; color: var(--peach); font-weight: 800; font-size: 13.5px; margin-top: 4px; }
.xline b { color: #fff; }
.xchips { display: flex; justify-content: center; gap: 8px; padding: 12px 0 4px; }
.xchips button { min-height: 46px; padding: 0 16px; border-radius: 23px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-weight: 900; border: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.xchips button.on { background: #fff; color: var(--deep); }
.xchips svg.i { width: 18px; height: 18px; stroke-width: 2.6; }
@media (max-width: 370px) { .xchips { gap: 6px; } .xchips button { padding: 0 11px; font-size: 13px; } }
.qnote { margin-top: 10px; }
.qnote textarea { resize: vertical; min-height: 60px; }

/* ---------- Bảng Vào ca / Ra ca, kiểu B ---------- */
.xdim { position: fixed; inset: 0; background: rgba(42, 25, 12, .55); z-index: 900; }
.xcard { position: fixed; left: 18px; right: 18px; top: 50%; transform: translateY(-50%); z-index: 901; max-width: 420px; margin: 0 auto; border-radius: 30px; overflow: hidden; background: var(--bg); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); animation: xpop .2s ease-out; }
.xcard.still { animation: none; }
@keyframes xpop { from { opacity: 0; } to { opacity: 1; } }
.xcard .h { background: var(--hero); color: #fff; padding: 20px 20px 22px; text-align: center; }
.xcard.out .h { background: linear-gradient(160deg, #4A2E18, #2A190C); }
.xcard .h small { display: block; font-size: 13px; font-weight: 800; color: var(--peach); text-transform: uppercase; letter-spacing: .06em; }
.xcard .n { font-size: 84px; font-weight: 900; line-height: .95; letter-spacing: -.03em; }
.xcard .n span { font-size: 24px; letter-spacing: 0; margin-left: 4px; }
.xcard .h em { display: block; font-style: normal; font-size: 15px; font-weight: 800; }
.xcard .bd { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.xcard .q { margin: 0; font-size: 19px; font-weight: 900; line-height: 1.3; color: var(--deep); text-align: center; }
.xcard .rr { align-self: center; font: inherit; font-size: 13px; font-weight: 800; color: var(--brand); background: none; border: 0; padding: 2px 10px 6px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .xcard { animation: none; } }

/* ---------- Cuối trang chi tiết đơn: thẻ QR nâu + Tùy chọn khác ---------- */
.oend { display: flex; flex-direction: column; gap: 12px; }
.qa { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; background: var(--hero); border-radius: 24px; padding: 16px; color: #fff; display: flex; gap: 16px; align-items: center; box-shadow: 0 8px 20px rgba(91, 54, 26, .25); }
.qa .qbox { flex: none; width: 118px; height: 118px; background: #fff; border-radius: 18px; padding: 8px; }
.qa .qbox .qr-sm { width: 100%; height: 100%; margin: 0; }
.qa .t { flex: 1; min-width: 0; }
.qa .t b { display: block; font-size: 19px; font-weight: 900; line-height: 1.2; }
.qa .t small { display: block; font-size: 13.5px; font-weight: 700; color: var(--peach); margin-top: 4px; }
.qa .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; background: #fff; color: var(--deep); font-weight: 900; font-size: 14px; padding: 9px 14px; border-radius: 16px; white-space: nowrap; }
.qa .go svg.i { width: 18px; height: 18px; }
.lst { background: #fff; border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.lst .r { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; text-decoration: none; display: flex; align-items: center; gap: 14px; padding: 0 16px; min-height: 62px; border-top: 1.5px solid var(--line); font-weight: 800; font-size: 16px; color: var(--ink); }
.lst .r:first-child { border-top: 0; }
.lst .r .ib { width: 40px; height: 40px; border-radius: 13px; background: var(--peach); color: var(--brand); display: grid; place-items: center; flex: none; }
.lst .r .ib svg.i { width: 21px; height: 21px; }
.lst .r .lb { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lst .r .lb small { display: block; font-size: 13px; font-weight: 700; color: var(--mut); overflow: hidden; text-overflow: ellipsis; }
.lst .r .ch { color: #C9A27C; display: flex; }
.lst .r .ch svg.i { width: 20px; height: 20px; }
.lst .r.more { min-height: 76px; }
.lst .r.more .ib { background: var(--deep); color: #fff; }
.lst .r.red { color: var(--red); }
.lst .r.red .ib { background: var(--red-soft); color: var(--red); }
.link.xback { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center; width: auto; color: var(--brand); }
.link.xback svg.i { width: 17px; height: 17px; }
.lsheet.msheet { background: var(--bg); display: flex; flex-direction: column; gap: 12px; max-height: 88vh; overflow-y: auto; }
.msheet .grab { margin-bottom: 0; }
.msheet h2 { margin: 2px 0 0; text-align: center; font-size: 19px; }
.msheet .msub { margin: 0; text-align: center; color: var(--mut); font-weight: 700; }
.msheet .lst .r { min-height: 56px; }
.msheet .lst .r .ib { width: 36px; height: 36px; }
.msheet .lst .r .lb small { display: inline; margin-left: 6px; }
.msheet .bigqr { width: 230px; height: 230px; margin: 4px auto; padding: 12px; background: #fff; border-radius: 22px; box-shadow: inset 0 0 0 2px var(--line); }
.msheet .bigqr svg { display: block; width: 100%; height: 100%; }
.msheet > .box { box-shadow: none; padding: 0; background: none; }

/* Lời dặn của khách: giấy dán vàng (mẫu A, anh chọn 10/11). */
:root { --kn-ink: #7C3A0A; --kn-bg: #FFE7A8; --kn-line: #E9B949; }
.knote { position: relative; margin: 14px 4px 14px; padding: 14px 16px 16px; background: var(--kn-bg); color: #3D2208; border-radius: 6px 6px 22px 6px; box-shadow: 0 8px 18px rgba(124, 58, 10, .22); transform: rotate(-1.2deg); }
.knote::before { content: ''; position: absolute; top: -9px; left: 50%; width: 84px; height: 20px; margin-left: -42px; background: rgba(255, 255, 255, .6); border-radius: 3px; transform: rotate(2deg); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.knote .h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--kn-ink); }
.knote .h .i { width: 20px; height: 20px; }
.knote p { margin: 6px 0 0; font-size: 18px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.knote .sub { display: block; margin-top: 4px; color: var(--kn-ink); }
.knote.small { transform: none; margin: 12px 0; padding: 12px 14px; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--kn-line); }
.knote.small::before { display: none; }
.knote.small p { font-size: 15.5px; }
.knstrip { display: flex; gap: 8px; align-items: flex-start; flex-basis: 100%; margin: 2px 0 0; padding: 9px 12px; border-radius: 14px; background: var(--kn-bg); color: #3D2208; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: left; }
.knstrip > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.knstrip .i { flex: none; width: 18px; height: 18px; color: var(--kn-ink); }
.ord.urow:has(.knstrip) { flex-wrap: wrap; }
.ord-head:has(.knstrip) { flex-wrap: wrap; }

