/* Giặt công nghiệp: khách sạn, spa (mẫu anh chốt 10/11). Nâu đậm để nhìn qua biết ngay là đơn công nghiệp. */
:root { --night: linear-gradient(160deg, #4A2E18, #2A190C); --amber: #92400E; --amber-soft: #FEF3C7; --green-soft: #DCFCE7; }
.cnpage .hero, .cnlist .hero { background: var(--night); }
.cnpage .hero .dsub { color: var(--peach); }
.bzhead { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 0 52px; color: var(--peach); font-size: 13px; font-weight: 700; }

/* Khung chọn loại bill */
.kindsheet { display: flex; flex-direction: column; gap: 10px; }
.kbig { width: 100%; min-height: 96px; padding: 16px; display: flex; align-items: center; gap: 14px; border-radius: 22px; text-align: left; }
.kbig .ic { width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 18px; }
.kbig .ic svg.i { width: 30px; height: 30px; }
.kbig .t { flex: 1; min-width: 0; }
.kbig .t b { display: block; font-size: 18px; font-weight: 900; }
.kbig .t small { display: block; font-size: 13px; font-weight: 700; opacity: .85; }
.kbig.ds { background: #fff; color: var(--deep); box-shadow: inset 0 0 0 2px #E8C9A6; }
.kbig.ds .ic { background: var(--peach); color: var(--brand); }
.kbig.ds:hover { background: #FFF4E8; }
.kbig.cn { background: var(--night); color: #fff; }
.kbig.cn .ic { background: rgba(255, 255, 255, .14); }
.kbig.cn:hover { filter: brightness(1.12); }

/* Danh sách khách */
.bav { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--peach); color: var(--brand); }
.bav.dk { background: var(--deep); color: #fff; }
.sug { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.bzrow { width: 100%; min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1.5px solid var(--line); text-align: left; color: var(--ink); }
.bzrow:first-child { border-top: 0; }
.bzrow:hover { background: #FFF8EF; }
.bzrow.on { background: var(--peach); }
.bzrow .t, .bzcard .t { flex: 1; min-width: 0; }
.bzrow .t b, .bzcard .t b { display: block; font-size: 15px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bzrow .t small, .bzcard .t small { display: block; font-size: 12.5px; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page > .wrap > .bzrow { border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.tag { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.tag svg.i { width: 14px; height: 14px; }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amb { background: var(--amber-soft); color: var(--amber); }
.tag.ok { background: var(--green-soft); color: var(--green); }
.tag.br { background: var(--peach); color: var(--brand); }
.addnew { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 18px; border: 2px dashed #D9B993; color: var(--brand); font-weight: 900; }
.addnew:hover { background: #FFF4E8; }
.cwarn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.cwarn > svg.i { width: 26px; height: 26px; flex: none; }
.cwarn .t { flex: 1; min-width: 0; }
.cwarn .t b { display: block; font-size: 14.5px; font-weight: 900; }
.cwarn .t small { display: block; font-size: 12.5px; font-weight: 700; }
.cwarn.red { background: var(--red-soft); color: var(--red); }
.cwarn.amb { background: var(--amber-soft); color: var(--amber); }
.cwarn.ok { background: var(--green-soft); color: var(--green); }
a.cwarn:hover { filter: brightness(.97); }
.waitbox { align-items: center; text-align: center; padding: 22px 16px; }
.waitbox b { font-size: 17px; font-weight: 900; }
.spin { width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--peach); border-top-color: var(--deep); animation: cnspin 1s linear infinite; }
@keyframes cnspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* Nhận đồ: đếm món */
.cnits { background: var(--card); border-radius: 20px; box-shadow: inset 0 0 0 2px var(--line); }
.cnit { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-top: 1.5px solid var(--line); }
.cnit:first-child { border-top: 0; border-radius: 20px 20px 0 0; }
.cnit .n { flex: 1; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.cnit.on { background: #FFF4E8; }
.cnit.on .n { color: var(--deep); }
.cnit .stp { display: flex; align-items: center; gap: 6px; }
.cnit .stp button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--peach); color: var(--brand); box-shadow: none; }
.cnit .stp button svg.i { width: 18px; height: 18px; stroke-width: 3; }
.stpn { width: 52px; height: 42px; border: 0; border-radius: 12px; background: transparent; text-align: center; font: inherit; font-size: 17px; font-weight: 900; color: var(--ink); }
.stpn:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px #A5682D; }
.cnit.add { padding: 10px; }
.cnit.add .inp { min-height: 48px; }
.cnit.add .btn { width: auto; flex: none; min-height: 48px; padding-inline: 18px; font-size: 14px; }
.tot b.sm { font-size: 20px; }

/* Cân kg khô */
.drydial { text-align: center; padding: 14px 0 16px; border-radius: 22px; background: var(--night); color: #fff; }
.drydial .v { font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.drydial .v small { font-size: 20px; font-weight: 800; letter-spacing: 0; margin-left: 4px; }
.drydial .ctl { display: flex; justify-content: center; gap: 16px; margin-top: 10px; }
.drydial .ctl button { width: 96px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .18); }
.drydial .ctl svg.i { stroke-width: 3; }
#dry-live { display: flex; flex-direction: column; gap: 10px; }
.cngrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cngrid.three { grid-template-columns: repeat(3, 1fr); }
.ctile { min-width: 0; padding: 11px 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.ctile small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile b { display: block; font-size: 20px; font-weight: 900; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctile.on { background: #FFF4E8; box-shadow: inset 0 0 0 2px var(--brand); }
.ctile.red { background: var(--red-soft); box-shadow: inset 0 0 0 2px #F5C2C2; }
.ctile.red small, .ctile.red b { color: var(--red); }

/* Thu nợ */
.paylist { display: flex; flex-direction: column; gap: 8px; }
.payrow { width: 100%; min-height: 62px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); text-align: left; color: var(--ink); }
.payrow .ck { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; box-shadow: inset 0 0 0 2px #D9B993; color: transparent; }
.payrow .ck svg.i { width: 18px; height: 18px; stroke-width: 3; }
.payrow .t { flex: 1; min-width: 0; }
.payrow .t b { display: block; font-weight: 900; }
.payrow .t small { display: block; font-size: 12.5px; color: var(--mut); }
.payrow > b { font-weight: 900; color: var(--deep); white-space: nowrap; }
.payrow.on { background: #FFF4E8; box-shadow: inset 0 0 0 2px var(--brand); }
.payrow.on .ck { background: var(--deep); color: #fff; box-shadow: none; }

/* Trang một khách */
.bzmh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.btn.sm { width: auto; min-height: 44px; padding: 0 14px; border-radius: 16px; font-size: 14px; }
.bzords { display: flex; flex-direction: column; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.bzord { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-top: 1.5px solid var(--line); color: var(--ink); }
.bzord:first-child { border-top: 0; }
.bzord:hover { background: #FFF8EF; }
.bzord .no { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--deep); color: #fff; font-weight: 900; font-size: 15px; min-width: 0; line-height: 1.1; }
.bzord .t { flex: 1; min-width: 0; }
.bzord .t b { display: block; font-weight: 900; }
.bzord .t small { display: block; font-size: 12.5px; color: var(--mut); }
.bzord .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bzord .r > b { font-weight: 900; white-space: nowrap; }
.box-t svg.i { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: var(--brand); }
.kgm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.kgm button { min-height: 58px; padding: 6px 8px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); text-align: center; }
.kgm button small { display: block; font-size: 12px; font-weight: 700; color: var(--mut); }
.kgm button b { display: block; font-weight: 900; color: var(--deep); }
.kgm button.on { background: var(--deep); box-shadow: none; }
.kgm button.on small, .kgm button.on b { color: #fff; }

/* Form khách: khối trắng có tiêu đề, mỗi ô một dòng */
.fwrap { gap: 12px; }
.fbox { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.fbt { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15.5px; font-weight: 900; color: var(--deep); }
.fbt svg.i { color: var(--brand); width: 20px; height: 20px; }
.ff { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ff label, .flb { font-size: 14px; font-weight: 900; color: var(--deep); }
.flb small { font-weight: 600; color: var(--mut); }
.fiu { position: relative; }
.fiu.has-u .inp { padding-right: 150px; }
.fiu em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; font-weight: 800; color: var(--mut); pointer-events: none; max-width: 140px; text-align: right; line-height: 1.2; }
.fbox .sw { box-shadow: none; padding: 4px 0; min-height: 56px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { min-height: 46px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: var(--mut); font-weight: 900; font-size: 13.5px; text-align: center; }
.days button.on { background: var(--deep); color: #fff; box-shadow: none; }
.fbox .row .btn { min-height: 50px; font-size: 14px; }

/* Đơn hàng: nút gạt Dân sinh | Công nghiệp */
.kswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.kswitch button { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 16px; color: var(--mut); font-weight: 900; font-size: 14.5px; white-space: nowrap; }
.kswitch button svg.i { width: 18px; height: 18px; }
.kswitch button b { min-width: 24px; height: 24px; padding: 0 6px; display: grid; place-items: center; border-radius: 12px; background: var(--peach); color: var(--brand); font-size: 12px; }
.kswitch button.on { background: var(--deep); color: #fff; }
.kswitch button.on b { background: rgba(255, 255, 255, .2); color: #fff; }
.bzcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--peach); box-shadow: inset 0 0 0 2px #E8C9A6; color: var(--ink); }
.bzcard .act { width: auto; flex: none; display: flex; align-items: center; gap: 2px; min-height: 38px; padding: 0 12px; border-radius: 14px; background: #fff; color: var(--deep); font-weight: 900; font-size: 13px; }
.bzcard .act svg.i { width: 16px; height: 16px; }
.tagship.ind { background: var(--deep); color: #fff; }
.no.cnno { background: var(--deep); color: #fff; display: grid; place-items: center; }
.ord.past { opacity: .62; }
.shipbig.cnwait { background: var(--night); color: #fff; box-shadow: var(--shadow); }
.shipbig.cnwait small { color: var(--peach); }
.shipbig.cnwait:hover { background: var(--night); filter: brightness(1.12); }

/* Phiếu in: phiếu nhận đồ, bill giao đồ (anh chốt 10/11) */
.rsign { padding: 14px 0 6px; }
.rkg { font-size: 16px; font-weight: 800; }
.rrow.rsub { font-size: 12px; margin-top: -1px; margin-bottom: 3px; }
.rmeth { display: flex; justify-content: space-between; font-weight: 800; }
.rsigns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: center; padding-top: 4px; }
.rsigns b { display: block; font-weight: 800; }
.rsigns small { display: block; font-size: 11px; }
.rsigns i { display: block; height: 58px; }

/* Lấy đồ, đếm lại món, sửa danh sách (mẫu anh chốt 10/11, chữ nhỏ gọn) */
.fbt small { font-size: 12px; font-weight: 700; color: var(--mut); }
.cntrow { display: flex; align-items: center; gap: 12px; }
.cntrow .t { flex: 1; min-width: 0; }
.cntrow .t b { display: block; font-size: 14px; font-weight: 900; color: var(--deep); }
.cntrow .t small { display: block; font-size: 12px; color: var(--mut); }
.stp.bags { display: flex; align-items: center; gap: 6px; flex: none; }
.stp.bags button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--peach); color: var(--brand); }
.stp.bags button svg.i { width: 18px; height: 18px; stroke-width: 3; }
.stp.bags .c { min-width: 54px; text-align: center; font-size: 17px; font-weight: 900; color: var(--deep); white-space: nowrap; }
.stp.bags .c small { font-size: 12px; font-weight: 800; color: var(--mut); margin-left: 2px; }
.cnit .n small { display: block; font-size: 11.5px; font-weight: 700; color: var(--mut); }
.cnit.lech { background: var(--amber-soft); }
.cnit.lech .n small { color: var(--amber); font-weight: 900; }
.cnedit { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: var(--peach); color: var(--brand); font-size: 13.5px; font-weight: 900; text-align: center; }
.cnedit svg.i { width: 16px; height: 16px; }
.monsum { display: flex; justify-content: space-between; padding: 0 4px; font-size: 13.5px; font-weight: 900; color: var(--deep); }
.phint { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 9px 12px; border-radius: 12px; background: var(--peach); color: var(--deep); font-size: 12.5px; font-weight: 700; }
.phint svg.i { width: 18px; height: 18px; flex: none; color: var(--brand); }
.pcelist { display: flex; flex-direction: column; gap: 8px; }
.pcerow { display: flex; align-items: center; gap: 8px; }
.pcerow .inp { flex: 1; min-width: 0; min-height: 44px; }
.pcerow .btn { width: auto; flex: none; min-height: 44px; padding-inline: 16px; font-size: 14px; }
.pcedel { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.pcedel svg.i { width: 18px; height: 18px; }

/* Chọn đơn thanh toán khi giao đồ */
.shsub { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 2px 2px; font-size: 13px; color: var(--mut); }
.shsub .link { flex: none; }
.payrow .t b i { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--peach); color: var(--brand); font-size: 11.5px; font-weight: 900; vertical-align: 1px; }
.payrow[aria-disabled="true"] { cursor: default; }
.shtot { margin-top: 4px; padding: 12px 2px 0; border-top: 1.5px dashed #D9B993; }
.shtot span small { display: block; font-size: 12.5px; font-weight: 700; color: var(--mut); }

@media (max-width: 380px) {
  .cngrid.three .ctile b { font-size: 16px; }
  .fiu.has-u .inp { padding-right: 120px; }
  .fiu em { max-width: 110px; font-size: 12px; }
}

/* Cỡ gọn theo mẫu anh duyệt 10/11 (chữ nhỏ nhắn): màn lấy đồ, cân ở tiệm, cân kg khô */
.cnpage .dial .v { font-size: 44px; }
.cnpage .dial .v small { font-size: 15px; margin-left: 4px; }
.cnpage .dial .dsub { font-size: 12px; margin: 2px 0 6px; }
.cnpage .dial .ctl button { width: 80px; height: 42px; border-radius: 14px; }
.drydial { padding: 10px 0 12px; border-radius: 18px; }
.drydial .v { font-size: 44px; }
.drydial .v small { font-size: 16px; }
.drydial .ctl button { width: 80px; height: 42px; border-radius: 14px; }
.cnits { border-radius: 16px; }
.cnit { gap: 8px; padding: 5px 6px 5px 12px; }
.cnit:first-child { border-radius: 16px 16px 0 0; }
.cnit .n { font-size: 13px; }
.cnit .n small { font-size: 11px; }
.cnit .stp { gap: 2px; }
.cnit .stp button { width: 34px; height: 34px; border-radius: 10px; }
.cnit .stp button svg.i { width: 15px; height: 15px; }
.stpn { width: 40px; height: 34px; font-size: 15px; }
.cnit.add { padding: 8px; }
.cnedit { min-height: 38px; font-size: 12.5px; border-radius: 11px; }
.monsum { font-size: 13px; }
.stp.bags button { width: 38px; height: 38px; border-radius: 12px; }
.stp.bags .c { min-width: 50px; font-size: 16px; }
.cntrow .t b { font-size: 13.5px; }
.cntrow .t small { font-size: 11.5px; }
.phint { font-size: 12px; }
.pcerow .inp, .pcerow .btn { min-height: 40px; font-size: 13.5px; }
.pcedel { width: 40px; height: 40px; }
/* Khung chọn đơn thanh toán: gọn như mẫu */
.shsub > span { flex: 1; min-width: 0; }
.shsub .link { width: auto; flex: none; margin: 0; padding: 0; font-size: 12.5px; }
.cnsel h2 { font-size: 16px; }
.cnsel .chip { min-height: 38px; font-size: 12.5px; }
.cnsel .payrow { min-height: 52px; gap: 10px; padding: 8px 12px; border-radius: 14px; font-size: 13px; }
.cnsel .payrow .ck { width: 24px; height: 24px; }
.cnsel .payrow .t small { font-size: 11.5px; }
.cnsel .shtot b { font-size: 19px; }
.cnsel .shtot span { font-size: 13px; }
.cnsel .edfoot .btn { min-height: 48px; font-size: 14px; border-radius: 14px; }
