/* App Quảng Phát 2.0 – giao diện mới theo App Bảng tổng Yupi (đã duyệt 13/11):
   nền xám nhạt, thẻ trắng bo tròn, ô số 2×2, hàng "Việc cần làm", thanh tab có biểu tượng,
   mỗi loại nút một hiệu ứng riêng, toast có Hoàn tác. Màu Quảng Phát: xanh lá đậm + vàng gold. */
:root {
  --muc: #123d2a;        /* chữ đậm / nút chính (thay navy của Yupi) */
  --xanh-dam: #1b5e3b; --xanh: #23824f; --xanh-vua: #9fd3b5; --xanh-nhat: #e7f4ec;
  --gold: #d4a62a; --gold-dam: #8a6400; --gold-nhat: #fdf4dc;
  --nen: #f3f6f4; --the: #ffffff; --vien: #e3e9e5; --vach: #eef2ef;
  --chu: #13241b; --chu-mo: #5b6b63; --chu-nhat: #8b9a92;
  --do: #c8372b; --do-dam: #8a2a20; --do-nhat: #fff1ef; --do-vien: #f6c7c1;
  --cam: #a35a00; --cam-nhat: #fdf3dd;
  --tim: #5b3a91; --tim-nhat: #f1e9fb; --lam: #24508a; --lam-nhat: #e8eef8;
  --bo: 18px; --bo-lon: 22px;
  --bong: 0 1px 2px rgba(18,61,42,.06);
  --bong-lon: 0 1px 2px rgba(18,61,42,.06), 0 8px 24px rgba(18,61,42,.06);
  --an-toan-duoi: env(safe-area-inset-bottom, 0px);
  /* tên biến cũ giữ lại cho các trang chưa đổi */
  --xam: #9aa5a0; --xam-nhat: #f1f4f2; --vien-cu: var(--vien);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--nen); color: var(--chu);
  font: 15.5px/1.45 "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
body { padding-bottom: calc(92px + var(--an-toan-duoi)); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--xanh-dam); }

/* ---------- Đầu app ---------- */
#dau { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 10px; background: rgba(243,246,244,.92);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
#dau .o-logo { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--bong); flex-shrink: 0; overflow: hidden; border: 1px solid var(--vien); }
.logo { width: 40px; height: 40px; object-fit: contain; }
.ten-app { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.ten-app small { order: -1; font-size: 12.5px; color: var(--chu-mo); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ten-app b { font-size: 20px; font-weight: 800; letter-spacing: -.2px; color: var(--muc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nut-chuong { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--vien); background: #fff; display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0; }
.nut-chuong .cham-do { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--do); border: 2px solid #fff; }
.den { width: 10px; height: 10px; border-radius: 50%; background: var(--xam); box-shadow: 0 0 0 2px #fff; position: absolute; bottom: 6px; right: 6px; }
.den.xanh { background: #23a26d; } .den.do { background: var(--do); } .den.an { display: none; }
.den.song { position: static; display: inline-block; box-shadow: none; animation: tho 2.4s ease-in-out infinite; }
@keyframes tho { 50% { box-shadow: 0 0 0 4px rgba(35,162,109,.18); } }

#bao-loi { background: var(--do-nhat); color: var(--do-dam); padding: 9px 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--do-vien); }
main { padding: 6px 16px 24px; max-width: 760px; margin: 0 auto; display: block; }
main > * + h2 { margin-top: 22px; }
h2 { font-size: 16px; font-weight: 800; margin: 14px 2px 10px; color: var(--muc); display: flex; align-items: center; gap: 8px; }
h2:first-child { margin-top: 4px; }
h2 .mo, h2 small { font-weight: 600; }
h3 { font-size: 14.5px; font-weight: 800; margin: 16px 2px 8px; color: var(--chu); }
h3.do-chu { color: var(--do); }
.mo { color: var(--chu-mo); font-size: 13px; }

/* ---------- Thanh tab dưới ---------- */
#thanh-duoi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
  padding: 8px 10px calc(8px + var(--an-toan-duoi)); background: rgba(255,255,255,.94); border-top: 1px solid var(--vien);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
#thanh-duoi:empty { display: none; }
#thanh-duoi a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; border-radius: 14px;
  color: #7a8790; text-decoration: none; position: relative; font-size: 11px; font-weight: 700; transition: transform .12s, color .2s; }
#thanh-duoi a svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
#thanh-duoi a.dang { color: var(--muc); }
#thanh-duoi a.dang svg { stroke-width: 2.3; }
#thanh-duoi a.dang::after { content: ""; position: absolute; bottom: 1px; width: 18px; height: 3px; border-radius: 3px; background: var(--gold); }
#thanh-duoi a:active { transform: scale(.92); }
.cham { position: absolute; top: -1px; left: 52%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; border: 2px solid #fff;
  background: var(--do); color: #fff; font-size: 10.5px; line-height: 14px; font-weight: 800; font-style: normal; text-align: center; }

/* ---------- Biểu tượng nét (SVG) ---------- */
.bt { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Băng cảnh báo (tin khẩn) ---------- */
.bang-khan { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border-radius: var(--bo); padding: 14px; margin-bottom: 12px;
  background: var(--do-nhat); border: 1px solid var(--do-vien); color: var(--do-dam); }
.bang-khan .o-bt { width: 36px; height: 36px; border-radius: 12px; background: var(--do); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: nhay 1.6s ease-in-out infinite; }
.bang-khan .nd { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bang-khan strong { font-size: 15px; font-weight: 800; }
.bang-khan span.phu { font-size: 13px; color: #8a2a20; }
.bang-khan .xem { font-size: 13px; font-weight: 800; color: #b1271b; }
.bang-khan.vang { background: var(--cam-nhat); border-color: #f0d79a; color: #6b4400; }
.bang-khan.vang .o-bt { background: var(--gold); animation: none; }
.bang-khan.vang span.phu, .bang-khan.vang .xem { color: var(--cam); }
@keyframes nhay { 50% { transform: scale(1.08); } }

/* ---------- Ô số 2×2 (bấm được = lọc nhanh) ---------- */
.luoi, .luoi.hai { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.o-so { background: var(--the); border: 0; border-radius: var(--bo); padding: 14px; text-align: left; min-height: 96px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--bong); position: relative; overflow: hidden; }
.o-so .nhan { font-size: 12.5px; color: var(--chu-mo); font-weight: 600; order: -1; }
.o-so b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.05; color: var(--muc); font-variant-numeric: tabular-nums; }
.o-so .phu, .o-so em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--chu-mo); }
.o-so.canh .phu, .o-so .phu.do { color: #b1271b; }
.o-so .phu.vang { color: var(--cam); }
.o-so .phu.xanh, .o-so.khong .phu { color: #1f7a52; }
.o-so.khong b { color: var(--muc); }
.o-so.dang { box-shadow: 0 0 0 2px var(--muc), var(--bong); }
.o-so:active { transform: scale(.97); }

/* ---------- Danh sách hàng (Việc cần làm / Thêm) ---------- */
.ds-hang { background: var(--the); border-radius: 20px; overflow: hidden; box-shadow: var(--bong); margin-bottom: 4px; }
.hang { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; min-height: 60px; border: 0; background: none; text-align: left;
  border-bottom: 1px solid var(--vach); color: var(--chu); text-decoration: none; position: relative; overflow: hidden; }
.hang:last-child { border-bottom: 0; }
.hang:active { background: var(--vach); }
.hang .o-bt { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.hang .nd { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hang .nd b { font-size: 15px; font-weight: 700; }
.hang .nd span { font-size: 12.5px; color: var(--chu-mo); }
.hang .nd span.do { color: #b1271b; font-weight: 600; }
.hang .dem { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--muc); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hang .dem.do { background: var(--do); }
.hang .dem.xong { background: var(--xanh-nhat); color: #1f7a52; }
.hang .mui { color: #9aa6a0; }
.hang.mo-nhat .nd b { color: var(--chu-mo); font-weight: 600; }
.t-xanh { background: var(--xanh-nhat); color: var(--xanh-dam); } .t-vang { background: var(--gold-nhat); color: var(--gold-dam); }
.t-do { background: #fdeceb; color: #b1271b; } .t-tim { background: var(--tim-nhat); color: var(--tim); } .t-lam { background: var(--lam-nhat); color: var(--lam); }
.t-xam { background: #eef1ef; color: #4b5a52; }

/* ---------- Khung chung ---------- */
.khung { background: var(--the); border: 0; border-radius: var(--bo); padding: 14px; margin-bottom: 10px; box-shadow: var(--bong); }
.dong { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.dong .gian { flex: 1; min-width: 0; }
.ba-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; gap: 6px; }
.ba-so > div { display: flex; flex-direction: column; gap: 2px; }
.ba-so b { display: block; font-size: 24px; font-weight: 800; color: var(--muc); font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.nhac { background: var(--cam-nhat); border-radius: 14px; padding: 11px 14px; margin-bottom: 10px; font-weight: 600; color: #6b4400; }
.nhac.do { background: var(--do-nhat); color: var(--do-dam); }

/* Máy đang làm gì – 1 dòng mảnh cuối trang */
.may-nho { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 18px 0 4px; padding: 10px 14px; border-radius: 16px; background: var(--the); box-shadow: var(--bong); font-size: 12.5px; color: var(--chu-mo); }
.may-nho .den { position: static; width: 8px; height: 8px; box-shadow: none; }
.may-nho .truc-tiep { color: #1f7a52; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* Biểu đồ cột ngang – mã hỏi nhiều */
.cot { display: grid; grid-template-columns: 7.5em 1fr 2.4em; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.cot .ma { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cot .thanh { height: 12px; background: var(--xanh-vua); border-radius: 6px; min-width: 4px; transform-origin: left; animation: moc .6s ease-out both; }
.cot.uu .thanh { background: var(--gold); }
.cot .so { text-align: right; font-variant-numeric: tabular-nums; color: var(--chu-mo); font-weight: 700; }
@keyframes moc { from { transform: scaleX(0); } }

/* ---------- Ô chuyển 2 lựa chọn (Chờ duyệt / Đã xử lý) ---------- */
.chon-hai { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; background: #e4e9e6; border-radius: 14px; padding: 4px; margin-bottom: 10px; }
.chon-hai button { height: 38px; border: 0; border-radius: 11px; background: transparent; color: var(--chu-mo); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.chon-hai button.dang { background: #fff; color: var(--muc); box-shadow: 0 1px 3px rgba(18,61,42,.12); }
.goi-y-vuot { margin: 0 2px 10px; font-size: 12.5px; color: var(--chu-mo); display: flex; align-items: center; gap: 6px; }
.truc-tiep { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #1f7a52; font-weight: 700; }
.truc-tiep::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #23a26d; animation: tho 2.4s ease-in-out infinite; }

/* ---------- Thẻ duyệt (gọn) ---------- */
.the { background: var(--the); border: 0; border-radius: var(--bo-lon); margin-bottom: 14px; overflow: hidden; box-shadow: var(--bong-lon); position: relative;
  transition: opacity .35s, transform .35s; touch-action: pan-y; }
.the.chot { box-shadow: 0 0 0 2px var(--gold), var(--bong-lon); }
.the .nhan-chot { background: var(--gold); color: #fff; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; padding: 4px 14px; }
.the .than { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.the .muc { margin-top: 0; }
.the .muc > .tieu { font-size: 11.5px; color: var(--chu-mo); font-weight: 700; letter-spacing: .3px; margin-bottom: 4px; text-transform: uppercase; }
.dau-the { display: flex; align-items: center; gap: 10px; }
.dau-the .av { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.dau-the .ten { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dau-the .ten strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dau-the .ten span { font-size: 12.5px; color: var(--chu-mo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vien-gio { font-size: 12.5px; font-weight: 700; padding: 4px 9px; border-radius: 99px; background: #eef1ef; color: #3d4a43; white-space: nowrap; }
.vien-gio.tre { background: #fdeceb; color: #b1271b; }
.tin-khach { background: #f1f4f2; border-radius: 4px 16px 16px 16px; padding: 10px 12px; white-space: pre-wrap; font-size: 14px; line-height: 1.45; flex: 1; }
.hang-tin { display: flex; gap: 10px; align-items: flex-start; }
.anh-khach { display: flex; gap: 6px; flex-wrap: wrap; }
.anh-khach img { width: 72px; height: 90px; object-fit: cover; border-radius: 14px; border: 1px solid var(--vien); display: block; }
.hop-ma { border: 1px solid var(--vach); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.hop-ma .dong-ma { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.hop-ma .dong-ma .ten-ma { flex: 1; min-width: 0; }
.hop-ma .dong-ma .ten-ma b { display: block; font-size: 14px; }
.hop-ma .dong-ma .ten-ma span { font-size: 12px; color: var(--chu-mo); }
.hop-ma .gia { font-weight: 800; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.hop-ma .ton { color: var(--chu-mo); min-width: 54px; text-align: right; white-space: nowrap; }
.hop-ma .ton.thieu { color: var(--do); font-weight: 700; }
.hop-ma .tong { display: flex; justify-content: space-between; border-top: 1px dashed var(--vien); padding-top: 8px; font-size: 14px; }
.nhan-loai { font-size: 11px; font-weight: 800; color: var(--muc); background: var(--gold-nhat); padding: 3px 8px; border-radius: 6px; letter-spacing: .3px; }
.hop-gui { background: #f7f9f8; border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.hop-gui .nd { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hop-gui .nhan-nho { font-size: 11.5px; font-weight: 700; color: var(--chu-mo); letter-spacing: .3px; }
.tin-gui { font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; background: none; border: 0; padding: 0; }
.nut-chep { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--vien); background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muc); }
.nut-chep.da { background: var(--xanh-nhat); border-color: var(--xanh-vua); color: #1f7a52; }
textarea.sua { width: 100%; min-height: 120px; border: 2px solid var(--gold); border-radius: 14px; padding: 10px; background: #fff; font-size: 15px; }
details.xem-them { font-size: 13px; color: var(--chu-mo); }
details.xem-them summary { cursor: pointer; font-weight: 700; color: var(--xanh-dam); list-style: none; padding: 2px 0; }
details.xem-them summary::-webkit-details-marker { display: none; }
details.xem-them summary::before { content: "▸ "; }
details.xem-them[open] summary::before { content: "▾ "; }
details.xem-them > div { padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
table.bang { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.bang th { text-align: left; font-weight: 700; color: var(--chu-mo); padding: 6px 4px; border-bottom: 1px solid var(--vien); font-size: 12.5px; }
table.bang td { padding: 7px 4px; border-bottom: 1px solid var(--vach); }
table.bang tr:last-child td { border-bottom: 0; }
table.bang td.so, table.bang th.so { text-align: right; font-variant-numeric: tabular-nums; }
.thieu { color: var(--do); font-weight: 700; }
.canh-bao { background: var(--do-nhat); color: var(--do-dam); border-radius: 12px; padding: 8px 12px; font-size: 13.5px; font-weight: 600; }
.hoi-nv { background: var(--gold-nhat); color: #5e4600; border-radius: 12px; padding: 8px 12px; font-size: 13.5px; }

/* Vùng nút trên thẻ */
.nut-hang { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.nut-hang.ba { grid-template-columns: 2fr 1fr 1fr; }
.nut { border: 0; border-radius: 14px; min-height: 46px; padding: 10px 8px; font-weight: 800; font-size: 14px; position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .12s ease, box-shadow .2s, background .2s; text-decoration: none; }
.nut:active { transform: scale(.95); }
.nut[disabled] { opacity: .55; }
.nut.duyet, .nut.chinh { background: var(--muc); color: #fff; }
.nut.duyet .bt { stroke: var(--gold); stroke-width: 2.6; }
.nut.sua { background: var(--gold-nhat); color: var(--gold-dam); border: 1px solid #ecd590; }
.nut.khong { background: var(--do-nhat); color: #b1271b; border: 1px solid #f0c4bf; }
.nut.boqua { background: #fff; color: #3d4a43; border: 1px solid var(--vien); }
.nut.phu { background: #fff; color: var(--chu); border: 1px solid var(--vien); font-weight: 700; }
.nut.vang { background: var(--gold); color: #fff; }
.trang-thai { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 14px 14px; padding: 10px 12px; border-radius: 14px; font-size: 13.5px; font-weight: 700; background: #eef1ef; color: #3d4a43; }
.trang-thai .gian { flex: 1; }
.trang-thai.ok { background: var(--xanh-nhat); color: #1f7a52; }
.trang-thai.hong { background: var(--do-nhat); color: #b1271b; }
.trang-thai .mo { font-weight: 500; }
.ok { color: #1f7a52; font-weight: 700; } .hong { color: var(--do); font-weight: 700; }

/* ---------- Hiệu ứng: mỗi loại nút một kiểu (bấm là chạy ngay, không hỏi lại) ---------- */
.gon { position: absolute; border-radius: 50%; pointer-events: none; transform: scale(0); animation: gon .55s ease-out forwards; background: currentColor; opacity: .22; }
@keyframes gon { to { transform: scale(2.6); opacity: 0; } }
/* Duyệt: vòng sáng xanh + dấu ✓ bật lên, thẻ bay sang phải */
.nut.duyet.bam { animation: vong-xanh .5s ease-out; }
@keyframes vong-xanh { 0% { box-shadow: 0 0 0 0 rgba(35,162,109,.55); } 100% { box-shadow: 0 0 0 14px rgba(35,162,109,0); } }
.dau-tick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 3; }
.dau-tick span { width: 64px; height: 64px; border-radius: 50%; background: #23a26d; color: #fff; display: flex; align-items: center; justify-content: center; animation: bat-len .55s cubic-bezier(.2,1.6,.4,1) both; box-shadow: 0 10px 30px rgba(35,162,109,.4); }
.dau-tick.vang span { background: var(--gold); box-shadow: 0 10px 30px rgba(212,166,42,.4); }
.dau-tick.xam span { background: #6b7a72; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.dau-tick.do span { background: var(--do); box-shadow: 0 10px 30px rgba(200,55,43,.35); }
@keyframes bat-len { from { transform: scale(.2); opacity: 0; } }
.the.hieu-duyet { animation: bay-phai .55s .25s ease-in forwards; }
@keyframes bay-phai { to { transform: translateX(115%) rotate(4deg); opacity: 0; } }
/* Sửa: ánh vàng quét ngang */
.nut.sua.bam::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.85) 50%, transparent 80%); animation: quet .55s ease-out; }
@keyframes quet { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
/* Không gửi: lắc nhẹ, thẻ xám dần */
.nut.khong.bam { animation: lac .4s; }
@keyframes lac { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.the.hieu-khong { animation: xam-dan .5s .2s forwards; }
@keyframes xam-dan { to { opacity: .0; filter: grayscale(1); transform: scale(.96); } }
/* Bỏ qua: thẻ trượt sang trái mờ dần */
.nut.boqua.bam { animation: nhun .3s; }
@keyframes nhun { 50% { transform: scale(.9); } }
.the.hieu-boqua { animation: bay-trai .45s .15s ease-in forwards; }
@keyframes bay-trai { to { transform: translateX(-115%) rotate(-3deg); opacity: 0; } }
/* Ghi chú: thẻ trượt lên */
.the.hieu-ghichu { animation: truot-len .45s .2s forwards; }
@keyframes truot-len { to { transform: translateY(-30px); opacity: 0; } }
/* Gửi hàng / việc xong: nhịp xanh */
.the.hieu-xong { animation: nhip .45s ease; }
@keyframes nhip { 50% { transform: scale(1.015); box-shadow: 0 0 0 6px rgba(35,162,109,.2), var(--bong-lon); } }
/* Vuốt thẻ: nền hiện chữ Duyệt (phải) / Bỏ qua (trái) */
.nen-vuot { position: absolute; inset: 0; border-radius: var(--bo-lon); display: flex; align-items: center; padding: 0 24px; font-weight: 800; font-size: 15px; color: #fff; z-index: 0; opacity: 0; }
.nen-vuot.phai { background: #23a26d; justify-content: flex-start; }
.nen-vuot.trai { background: #6b7a72; justify-content: flex-end; }
.the.dang-vuot { transition: none; z-index: 1; }

/* Chip (lọc) */
.chip-hang { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chip-hang::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--vien); background: #fff; border-radius: 99px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; white-space: nowrap; position: relative; overflow: hidden; }
.chip.dang { background: var(--muc); border-color: var(--muc); color: #fff; }
.chip.dam { background: var(--xanh-nhat); border-color: var(--xanh-vua); color: var(--xanh-dam); font-weight: 700; }

/* ---------- Ra lệnh ---------- */
.o-lenh { display: flex; gap: 8px; position: sticky; top: 72px; z-index: 5; background: var(--nen); padding: 4px 0 8px; align-items: flex-end; }
.o-lenh textarea { flex: 1; border: 1px solid var(--vien); border-radius: 16px; padding: 12px; min-height: 48px; max-height: 140px; resize: none; background: #fff; box-shadow: var(--bong); }
.o-lenh textarea:focus { outline: none; border-color: var(--xanh); box-shadow: 0 0 0 3px rgba(35,130,79,.15); }
.o-lenh .nut-anh { flex: none; width: 48px; font-size: 20px; }
.o-lenh .nut.chinh { min-width: 64px; }
.the-lenh .nhan { display: inline-block; border-radius: 8px; padding: 2px 9px; font-size: 12px; font-weight: 800; }
.nhan.cho { background: #eef1ef; } .nhan.dang_lam { background: var(--gold-nhat); color: var(--gold-dam); }
.nhan.cho_xac_nhan { background: var(--gold); color: #fff; } .nhan.xong { background: var(--xanh-nhat); color: var(--xanh-dam); }
.nhan.loi { background: var(--do-nhat); color: var(--do); } .nhan.huy { background: #eef1ef; color: var(--chu-mo); }
.ket-qua { white-space: pre-wrap; background: #f1f4f2; border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.xem-truoc { white-space: pre-wrap; background: var(--gold-nhat); border: 1px dashed var(--gold); border-radius: 12px; padding: 10px 12px; margin-top: 8px; }

/* ---------- Báo cáo (mẫu báo) ---------- */
.the-bc { background: var(--the); border-radius: var(--bo); box-shadow: var(--bong); margin-bottom: 12px; overflow: hidden; }
.the-bc .dau-bc { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
.the-bc .dau-bc .o-bt { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.the-bc .dau-bc .nd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.the-bc .dau-bc b { font-size: 15px; }
.the-bc .dau-bc span { font-size: 12.5px; color: var(--chu-mo); }
.the-bc .noi { padding: 0 14px; font-size: 14px; line-height: 1.55; }
.the-bc .noi .dong-bc { padding: 2px 0; }
.the-bc .noi .dong-bc.muc-bc { font-weight: 800; color: var(--muc); margin-top: 8px; }
.the-bc .noi.gon { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.the-bc .chan-bc { display: flex; gap: 8px; padding: 10px 14px 14px; }
.the-bc .chan-bc .nut { min-height: 38px; font-size: 13px; padding: 6px 12px; }
pre.bao-cao { white-space: pre-wrap; font: inherit; margin: 6px 0 0; }

/* ---------- Biểu mẫu ---------- */
.bieu-mau { max-width: 400px; margin: 10px auto; }
.bieu-mau label { display: block; font-size: 13.5px; margin: 12px 0 5px; color: var(--chu-mo); font-weight: 600; }
.bieu-mau input, .o-nhap { width: 100%; border: 1px solid var(--vien); border-radius: 14px; padding: 12px 14px; background: #fff; min-height: 48px; }
.bieu-mau input:focus, .o-nhap:focus { outline: none; border-color: var(--xanh); box-shadow: 0 0 0 3px rgba(35,130,79,.15); }
.bieu-mau .nut { width: 100%; margin-top: 16px; min-height: 50px; font-size: 15.5px; }
.o-mat-khau { position: relative; }
.o-mat-khau input { padding-right: 52px; }
.nut-mat { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--chu-mo); }
.nut-mat:active { background: var(--vach); }
.the-dn { background: var(--the); border-radius: var(--bo-lon); box-shadow: var(--bong-lon); padding: 22px 18px; margin-top: 24px; }
.the-dn .logo-dn { display: flex; justify-content: center; margin-bottom: 6px; }
.the-dn .logo-dn img { height: 64px; }
.the-dn h2 { justify-content: center; font-size: 20px; margin: 8px 0 2px; }
.the-dn p.mo { text-align: center; margin: 0 0 6px; }
.loi-chu { color: var(--do); font-size: 14px; margin-top: 10px; min-height: 1em; font-weight: 600; }

/* ---------- Toast có Hoàn tác ---------- */
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(96px + var(--an-toan-duoi)); margin: 0 auto; max-width: 480px; background: var(--muc); color: #fff;
  padding: 12px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; z-index: 30; box-shadow: 0 10px 30px rgba(18,61,42,.3);
  display: flex; align-items: center; gap: 10px; animation: hien-toast .25s ease-out; }
#toast[hidden] { display: none; }
#toast .chu-toast { flex: 1; }
#toast .hoan-tac { border: 0; background: transparent; color: var(--gold); font-size: 14px; font-weight: 800; min-height: 40px; padding: 0 6px; }
#toast .thanh-dem { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
#toast .thanh-dem i { display: block; height: 100%; background: var(--gold); animation: dem-lui linear forwards; }
@keyframes dem-lui { from { width: 100%; } to { width: 0; } }
@keyframes hien-toast { from { transform: translateY(14px); opacity: 0; } }

/* Trống */
.trong { text-align: center; color: var(--chu-mo); padding: 36px 20px; background: var(--the); border-radius: var(--bo-lon); box-shadow: var(--bong); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trong .vong-ok { width: 52px; height: 52px; border-radius: 50%; background: var(--xanh-nhat); color: #1f7a52; display: flex; align-items: center; justify-content: center; }
.trong strong { color: var(--chu); font-size: 16px; }
.dang-tai { text-align: center; color: var(--chu-mo); padding: 30px; }
.nut-lien { border: 0; background: none; color: var(--xanh-dam); font-weight: 700; padding: 6px 0; }
.trang-con-dau { display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; }
.nut-lui { width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 1px solid var(--vien); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nut-lui:active { transform: scale(.94); }
.trang-con-dau + h2 { margin-top: 6px; }

/* bản 1.2: ô tìm */
.o-tim { width: 100%; margin: 0 0 10px; }

/* bản 1.3 */
.luoi-nut { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 8px; }
.nut-viec { display: flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: var(--bo); padding: 14px; font-size: 15px; font-weight: 700; color: var(--muc); text-align: left; box-shadow: var(--bong); }
.nut-viec span { font-size: 22px; }
.nut-viec:active { transform: scale(.97); }
.vien-do { box-shadow: 0 0 0 2px #f2a9a1, var(--bong) !important; }
.huy-hieu { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 99px; background: #eef1ef; color: var(--chu-mo); white-space: nowrap; font-weight: 600; }
.huy-hieu.do { background: #fdeceb; color: #b1271b; font-weight: 700; }
.huy-hieu.xanh { background: var(--xanh-nhat); color: var(--xanh-dam); }
.cuon { overflow-x: auto; background: #fff; border-radius: var(--bo); padding: 10px; margin-bottom: 10px; box-shadow: var(--bong); }
.bang.rong { min-width: 520px; }
.bieu-mau select, .bieu-mau textarea { width: 100%; }
.nut-link { display: flex; margin: 8px 0 10px; }

.diem { font-size: 24px; color: var(--muc); font-variant-numeric: tabular-nums; }
.diem small { font-size: 12px; color: var(--chu-mo); font-weight: 500; }
.luoi-diem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
.luoi-diem div { background: #f1f4f2; border-radius: 12px; padding: 7px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.luoi-diem span { font-size: 11px; color: var(--chu-mo); }
.luoi-diem b { font-size: 18px; font-variant-numeric: tabular-nums; }
.luoi-diem em { font-style: normal; font-size: 11px; color: var(--chu-mo); }

/* bản 1.4 */
.do-chu { color: var(--do); }
.cam { color: var(--cam); }
.thanh-tien-do { height: 8px; background: #e7ece9; border-radius: 6px; overflow: hidden; margin: 8px 0 4px; }
.thanh-tien-do span { display: block; height: 100%; background: linear-gradient(90deg, var(--xanh), #3db37a); border-radius: 6px; transition: width .4s; }
.gui-dau .ba-so b { font-size: 30px; }
.the-gui .ten-lon, .ten-lon { font-size: 17px; font-weight: 800; }
.hang-gui { font-size: 16px; font-weight: 600; background: var(--gold-nhat); border-radius: 14px; padding: 11px 13px; line-height: 1.45; }
.tt-gui { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.tt-gui a { color: var(--xanh-dam); font-weight: 700; }
.nut-to { display: flex; width: calc(100% - 28px); margin: 0 14px 10px; min-height: 54px; font-size: 16px; letter-spacing: .03em; }
.nhat-ky { border-left: 3px solid var(--vien); padding: 2px 0 2px 10px; font-size: 13px; display: grid; gap: 3px; }
.chon-nho { border: 1px solid var(--vien); border-radius: 8px; padding: 3px 6px; font-size: 12px; background: #fff; color: var(--chu); }
.ma-x { font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--xanh); }
/* Sơ đồ cây hiệu suất */
.cay { display: flex; flex-direction: column; align-items: center; margin: 4px 0 10px; }
.nut-cay { border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: #fff; border: 1px solid var(--vien); min-width: 0; }
.nut-cay.goc { background: var(--muc); color: #fff; border: 0; padding: 10px 18px; }
.nut-cay.goc .mo { color: #cfe6d9; }
.nhanh { display: flex; gap: 8px; width: 100%; margin-top: 18px; position: relative; justify-content: center; }
.nhanh::before { content: ''; position: absolute; top: -18px; left: 50%; width: 2px; height: 9px; background: var(--xanh-vua); }
.cot-cay { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 8px; position: relative; padding-top: 9px; }
.cot-cay::before { content: ''; position: absolute; top: -9px; left: 0; right: 0; height: 2px; background: var(--xanh-vua); }
.cot-cay:first-child::before { left: 50%; }
.cot-cay:last-child::before { right: 50%; }
.cot-cay:only-child::before { display: none; }
.cot-cay::after { content: ''; position: absolute; top: -9px; left: 50%; width: 2px; height: 18px; background: var(--xanh-vua); }
.nut-cay.bp b { font-size: 14px; }
.nut-cay.bp span { font-size: 12px; }
.la { display: flex; flex-direction: column; gap: 6px; }
.nut-cay.nv { cursor: pointer; padding: 6px; }
.nut-cay.nv b { font-size: 13px; overflow-wrap: anywhere; }
.so-diem { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.nut-cay.tot { border-color: #8fd1ab; background: #f0f8f3; } .nut-cay.tot .so-diem { color: var(--xanh-dam); }
.nut-cay.kha { border-color: #e6cf7a; background: var(--gold-nhat); } .nut-cay.kha .so-diem { color: var(--gold-dam); }
.nut-cay.yeu { border-color: #ef9a9a; background: var(--do-nhat); } .nut-cay.yeu .so-diem { color: var(--do); }
.thanh-diem { display: flex; width: 100%; height: 8px; background: #eef1ef; border-radius: 5px; overflow: hidden; margin: 4px 0; }
.thanh-diem span { display: block; height: 100%; }
.chu-thich { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--chu-mo); margin-bottom: 10px; justify-content: center; }
.chu-thich i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* Bản 1.8 */
.nut-cach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nut-cach button { border: 1px solid var(--vien); background: #fff; border-radius: 12px; padding: 10px 4px; font-size: 13.5px; font-weight: 700; color: var(--chu); min-height: 44px; position: relative; overflow: hidden; transition: background .2s, color .2s; }
.nut-cach button.dang { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.cn-loc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 8px 0; }
.cn-loc label { font-size: 12px; color: var(--chu-mo); display: block; }
input[type=date] { -webkit-appearance: none; appearance: none; min-width: 0; }
/* Bản 1.9: xem như bộ phận khác */
#xem-nhu { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: #e9eeeb; font-size: 13px; color: #3d4a43; }
#xem-nhu[hidden] { display: none; }
#xem-nhu select { flex: 1; font-size: 14px; padding: 6px 8px; border: 1px solid var(--vien); border-radius: 10px; background: #fff; }
#xem-nhu.dang-xem { background: var(--gold-nhat); color: var(--gold-dam); }
#xem-nhu span { font-weight: 700; }

/* Bản 1.16: nút trên thẻ tin */
.nut-tin { grid-template-columns: 1.5fr 1fr 1fr; padding: 2px 0 0; }
.nut-tin .nut { font-size: 13px; padding: 10px 4px; }
.nut-tin .nut:disabled { opacity: .75; }
.tin-da { gap: 8px; color: var(--chu); }
.tin-da .nut { padding: 8px 12px; min-height: 40px; }

/* Bảng chuyển trang: hiện dần */
main.vao > * { animation: vao .28s ease-out both; }
@keyframes vao { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.trang-con-dau h2 { margin: 0; flex: 1; min-width: 0; font-size: 17px; }
.nut-hang .nut { white-space: nowrap; font-size: 13.5px; padding: 10px 4px; }
.may-nho .den { display: inline-block; vertical-align: 0; margin: 0 2px; }
.o-so b.do-chu { color: var(--do); } .o-so b.cam { color: var(--cam); }

/* ===== Bản 2.0 – Kiểu A (Quản lý): vòng tiến độ ===== */
.vong-lon { background: var(--muc); color: #fff; border-radius: 24px; padding: 18px; display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.vong { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.vong svg { width: 112px; height: 112px; }
.nen-vong { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 12; }
.mau-vong { fill: none; stroke: var(--gold); stroke-width: 12; stroke-linecap: round; animation: ve-vong 1.1s ease-out both; }
@keyframes ve-vong { from { stroke-dasharray: 0 289; } }
.so-vong { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.so-vong b { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.so-vong small { font-size: 11px; color: #cfe6d9; font-weight: 600; }
.nd-vong { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nd-vong strong { font-size: 16px; line-height: 1.3; }
.nd-vong > span { font-size: 12.5px; color: #cfe6d9; line-height: 1.4; }
.nd-vong .nut { align-self: flex-start; min-height: 40px; color: var(--muc); padding: 8px 16px; }
.luoi-gap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.o-gap { border: 0; border-radius: 18px; padding: 12px; min-height: 116px; display: flex; flex-direction: column; gap: 6px; text-align: left; position: relative; overflow: hidden; }
.o-gap svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.o-gap b { font-size: 30px; font-weight: 800; line-height: 1; }
.o-gap span { font-size: 12px; font-weight: 700; line-height: 1.3; }
.o-gap.do { background: var(--do); color: #fff; animation: nhip-do 2s ease-in-out infinite; }
@keyframes nhip-do { 50% { box-shadow: 0 0 0 5px rgba(200,55,43,.18); } }
.o-gap.vang { background: var(--gold-nhat); color: #6b4400; }
.o-gap.lam { background: var(--lam-nhat); color: var(--lam); }
.o-gap.xong { background: var(--xanh-nhat); color: #1f7a52; }
.tien-do { display: flex; flex-direction: column; gap: 6px; width: 100%; border: 0; background: none; padding: 6px 0; text-align: left; }
.dong-td { display: flex; justify-content: space-between; font-size: 13.5px; }
.vach-td { height: 10px; background: #e7ece9; border-radius: 6px; overflow: hidden; }
.vach-td i { display: block; height: 100%; border-radius: 6px; background: var(--xanh); animation: moc .7s ease-out both; transform-origin: left; }
.vach-td i.do { background: var(--do); } .vach-td i.vang { background: var(--gold); }
.dong-td b.do { color: #b1271b; } .dong-td b.xanh { color: #1f7a52; } .dong-td b.vang { color: var(--gold-dam); }
.cot-7 { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 10px; }
.cot-7 span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.cot-7 i { width: 100%; background: var(--xanh-vua); border-radius: 8px 8px 4px 4px; transform-origin: bottom; animation: moc-doc .7s ease-out both; }
.cot-7 i.nay { background: var(--gold); }
.cot-7 em { font-style: normal; font-size: 11px; color: var(--chu-mo); font-weight: 600; }
@keyframes moc-doc { from { transform: scaleY(0); } }

/* ===== Bản 2.0 – Kiểu C (nhân viên): ô màu lớn ===== */
.the-dau { width: 100%; border: 0; border-radius: 24px; padding: 18px; background: var(--muc); color: #fff; display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 12px; box-shadow: 0 12px 26px rgba(18,61,42,.25); position: relative; overflow: hidden; }
.the-dau.do { background: linear-gradient(135deg, #d8412f, #ef6b56); box-shadow: 0 14px 30px rgba(200,55,43,.3); }
.the-dau .nd { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.the-dau .nho { font-size: 14px; font-weight: 700; opacity: .9; }
.the-dau strong { font-size: 22px; font-weight: 800; line-height: 1.2; }
.the-dau .nd > span:last-child { font-size: 14px; font-weight: 600; opacity: .95; }
.the-dau .tron { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--muc); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.the-dau.do .tron { color: var(--do); }
.the-dau .tron svg { width: 28px; height: 28px; stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.luoi-mau { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.o-mau { border: 0; border-radius: 22px; padding: 14px; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; text-align: left; position: relative; overflow: hidden; }
.o-mau .dau-o { display: flex; justify-content: space-between; align-items: flex-start; }
.o-mau .bt-o { width: 42px; height: 42px; border-radius: 13px; background: rgba(255,255,255,.65); display: flex; align-items: center; justify-content: center; }
.o-mau .bt-o svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.1; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.o-mau .gap { font-size: 11px; font-weight: 800; background: #fff; color: #b1271b; padding: 3px 8px; border-radius: 99px; }
.o-mau .than-o { display: flex; flex-direction: column; gap: 2px; }
.o-mau .than-o b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.5px; }
.o-mau .than-o strong { font-size: 15.5px; font-weight: 800; line-height: 1.25; }
.o-mau .than-o span { font-size: 12.5px; font-weight: 600; opacity: .85; }
.o-mau.do { background: var(--do); color: #fff; }
.o-mau.do .bt-o { background: rgba(255,255,255,.2); }
.o-mau.vang { background: #f6dc8f; color: #4a3200; }
.o-mau.tim { background: #e9dcf8; color: #4a2c7c; }
.o-mau.lam { background: #dce6f6; color: #1d4170; }
.o-mau.xong { background: #dff1e6; color: #145c38; }
.o-mau:active, .o-gap:active, .the-dau:active { transform: scale(.97); }

/* ===== Bản 2.0 – thẻ Duyệt kiểu Yupi: dấu mộc, nhật ký, cảnh báo bấm trùng, ô trả lời, ô tích ===== */
.con-dau { position: absolute; left: 50%; top: 42%; z-index: 4; pointer-events: none; transform: translate(-50%, -50%) rotate(-12deg);
  font-size: 26px; font-weight: 900; letter-spacing: .06em; padding: 6px 18px; border: 4px solid currentColor; border-radius: 12px; background: rgba(255,255,255,.82); white-space: nowrap; opacity: .9; }
.con-dau.xanh { color: #1f7a52; } .con-dau.xam { color: #55636b; } .con-dau.vang { color: #a36b00; } .con-dau.do { color: var(--do); }
.con-dau.moi { animation: dong-dau 1.5s cubic-bezier(.2,1.6,.4,1) both; }
/* Bản 2.1: dấu mộc nhảy lên rồi mờ dần mất (không ở lại trên thẻ) */
@keyframes dong-dau { 0% { transform: translate(-50%, -50%) rotate(-12deg) scale(2.2); opacity: 0; } 22% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: .95; }
  70% { transform: translate(-50%, -50%) rotate(-12deg) scale(1); opacity: .95; } 100% { transform: translate(-50%, -62%) rotate(-12deg) scale(.9); opacity: 0; } }
.nhat-ky-the { margin: -6px 14px 14px; font-size: 12.5px; color: var(--chu-mo); line-height: 1.45; }
.bao-da-bam { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 6; width: 78%; background: var(--do); color: #fff; border-radius: 14px;
  padding: 10px 12px; font-size: 13.5px; font-weight: 700; text-align: center; box-shadow: 0 10px 26px rgba(200,55,43,.4); animation: lac .4s, hien-toast .2s; }
.o-tra-loi { display: flex; gap: 8px; padding: 0 14px 14px; }
.o-tra-loi .o-nhap { flex: 1; min-height: 46px; font-size: 14.5px; }
.o-tra-loi .nut { min-width: 64px; }
.hoi-nv b { display: block; color: var(--do); margin-bottom: 4px; }
.chon-lc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chon-lc .lc { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #ecd590; border-radius: 12px; padding: 8px 12px; min-height: 44px; font-weight: 700; font-size: 14px; }
.chon-lc .lc input { width: 20px; height: 20px; accent-color: var(--xanh); }
.chon-lc .lc:has(input:checked) { background: var(--xanh-nhat); border-color: var(--xanh-vua); }

/* ===== Ghép từ 1.16b–1.17c vào 2.1 (14/11) ===== */
/* Bản 1.16: sửa giao diện Công nợ trên iPhone – ô ngày tràn khung, đè nút; số tổng nợ quá to */
.cn-loc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.cn-loc > div { min-width: 0; }
input[type=date].o-nhap { -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; width: 100%;
  min-height: 46px; line-height: 22px; font-size: 15px; text-align: left; }
input[type=date].o-nhap::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type=date].o-nhap::-webkit-datetime-edit { padding: 0; }
.cn-loc .nut { min-height: 46px; padding: 10px 6px; font-size: 14px; white-space: nowrap; }
.khung.ba-so { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 4px; }
.khung.ba-so b { font-size: clamp(17px, 5.4vw, 24px); white-space: nowrap; }
.khung.ba-so > div:first-child b { font-size: clamp(16px, 4.7vw, 24px); }
.vien-cam { border-color: #F0B35A; background: var(--cam-nhat); }

/* Bản 1.17: chọn máy làm lệnh */
.may-lenh { margin: 4px 0 10px; }

/* Bản 1.17c – Hàng sắp hết: nhóm + chọn mã */
.sh-nhom { padding-top: 8px; }
.sh-nhom-dau { margin-bottom: 4px; }
.sh-nhom tr[onclick] { cursor: pointer; }
.sh-nhom tr.sh-chon td { background: #EAF6EC !important; }
.sh-o { font-size: 20px; line-height: 1; }
.sh-day { position: sticky; bottom: 76px; padding: 8px 0; z-index: 5; }

/* ===== Bản 2.1 (14/11) – sửa theo "Chỉnh app Ut" ===== */
.hai-nut-vong { display: flex; gap: 8px; flex-wrap: wrap; }
.nd-vong .hai-nut-vong .nut { align-self: auto; }
.nut.vien-trang { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.o-gap-boc { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.o-gap-boc > .o-gap { flex: 1; }
.nut-nhac { border: 0; border-radius: 12px; min-height: 36px; background: #fff; color: var(--muc); font-weight: 700; font-size: 13px; box-shadow: 0 1px 3px rgba(18,61,42,.12); }
.nhan-xl { font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; white-space: nowrap; border: 1.5px solid currentColor; }
.nhan-xl.xanh { color: #1f7a52; background: #e6f4ec; } .nhan-xl.xam { color: #55636b; background: #eef1f2; }
.nhan-xl.vang { color: #8a5a00; background: #fdf3dd; } .nhan-xl.do { color: var(--do); background: #fde9e7; }
.mep-vuot { position: fixed; left: 8px; top: 50%; transform: translateY(-50%); z-index: 50; width: 44px; height: 44px; border-radius: 50%; background: var(--muc); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px; line-height: 1; animation: mep-vuot .45s ease-out both; pointer-events: none; }
@keyframes mep-vuot { from { opacity: 0; transform: translate(-30px, -50%); } 40% { opacity: 1; transform: translate(0, -50%); } to { opacity: 0; transform: translate(10px, -50%); } }
.hang-pdf { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; color: var(--chu); text-decoration: none; box-shadow: 0 1px 3px rgba(18,61,42,.06); }
.hang-pdf small { display: block; font-size: 12.5px; }
.bt-pdf { flex: none; width: 40px; height: 46px; border-radius: 8px; background: #fde9e7; color: var(--do); font-weight: 900; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.mo-pdf { color: var(--muc); font-weight: 700; font-size: 14px; }
.luu-tru { margin-top: 14px; }
.hq { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.hq-tot { background: #e6f4ec; color: #1f7a52; } .hq-vua { background: #eef3fb; color: #2f5d9a; } .hq-it { background: #fdf3dd; color: #8a5a00; }
.cham-mau { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dg-tong { display: flex; align-items: center; gap: 16px; }
.dg-vong { width: 112px; height: 112px; flex: none; }
.dg-vong circle { transition: stroke-dasharray .6s; }
.dg-chu { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dg-dong { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.dg-dong span { flex: 1; color: var(--chu-mo); font-size: 13px; }
.dg-khach .dong { gap: 8px; }
.dg-hang { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.dg-thanh { height: 10px; background: #eef2ef; border-radius: 6px; margin: 8px 0 6px; overflow: hidden; }
.dg-thanh i { display: block; height: 100%; border-radius: 6px; transform-origin: left; animation: moc .6s ease-out both; }
.dg-nhan { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--chu-mo); }
.hd-loai button b { margin-left: 4px; font-weight: 800; }
.hd-dong { display: flex; align-items: center; gap: 10px; }
.hd-phai { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.nut-file { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 10px; background: var(--muc); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; }
.luu-tru .nut { white-space: normal; font-size: 13.5px; line-height: 1.25; padding: 10px 8px; text-align: center; }
.hq { white-space: normal; line-height: 1.3; }
.mau-pdf { padding: 0; overflow: hidden; }
.mau-dau { width: 100%; border: 0; background: transparent; padding: 14px; gap: 10px; text-align: left; font-size: 15px; color: var(--chu); }
.bt-mau { width: 38px; height: 38px; border-radius: 12px; background: var(--xanh-nhat, #e6f4ec); display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none; }
.mau-pdf.mo-ra { box-shadow: 0 0 0 2px var(--muc) inset; }
.form-mau { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.form-mau .o-nhap { width: 100%; }
.o-sl { width: 64px; min-height: 38px; border: 1.5px solid var(--muc); border-radius: 10px; text-align: center; font-size: 15px; font-weight: 800; color: var(--muc); background: #fff; }
.sh-nhom .bang { width: 100%; table-layout: fixed; }
.sh-nhom .bang th:nth-child(1), .sh-nhom .bang td:nth-child(1) { width: 30px; padding-left: 2px; padding-right: 2px; }
.sh-nhom .bang th:nth-child(3), .sh-nhom .bang td:nth-child(3) { width: 38px; }
.sh-nhom .bang th:nth-child(4), .sh-nhom .bang td:nth-child(4) { width: 58px; }
.sh-nhom .bang th:nth-child(5), .sh-nhom .bang td:nth-child(5) { width: 62px; }
.sh-nhom .bang td:nth-child(2) { overflow-wrap: anywhere; }
.o-sl { width: 56px; }
a.nut-link[href="#mau-pdf"] { display: block; text-align: center; }
.nho-tk { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.nho-tk input { width: 20px; height: 20px; accent-color: var(--muc); margin: 0; }
.nho-tk .mo { font-weight: 400; font-size: 12px; }
#bao-ban-moi { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--muc); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; font-weight: 700; box-shadow: 0 10px 26px rgba(18,61,42,.35); animation: hien-toast .3s; }
#bao-ban-moi span { flex: 1; }
#bao-ban-moi button { border: 0; border-radius: 12px; background: var(--gold); color: #1d2a24; font-weight: 800; padding: 10px 16px; min-height: 42px; }
.nho-tk input[type=checkbox] { width: 20px !important; height: 20px; min-height: 0 !important; flex: none; padding: 0; }
.nho-tk { flex-wrap: nowrap; }
.bang.pq th, .bang.pq td { padding: 8px 4px; font-size: 13px; }
.bang.pq input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--muc); }
.bang.pq .pq-duyet td { background: #fdf6e3; }
.tk-dong { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--vien, #e3e9e5); }
.tk-dong:last-child { border-bottom: 0; }
.tk-dong.tk-khoa { opacity: .6; }
.tk-nut { display: flex; flex-direction: column; gap: 6px; }
.tk-nut .nut { min-height: 36px; padding: 6px 10px; font-size: 13px; }

/* 2.7 xem PDF công nợ trong app */
#xem-pdf{position:fixed;inset:0;z-index:999;background:#fff;display:flex;flex-direction:column}
#xem-pdf .xp-dau{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:calc(env(safe-area-inset-top) + 8px) 10px 8px;background:#123d2a;color:#fff}
#xem-pdf .xp-dau .nut{margin:0;width:auto;padding:8px 12px}
#xem-pdf iframe{flex:1;border:0;width:100%}

.pdf-da{display:grid;grid-template-columns:1fr auto;gap:6px}.pdf-da .nut{margin:0}.pdf-da small{display:block;font-size:11px;opacity:.7;font-weight:500}.pdf-da .tao-lai{width:auto;padding:8px 12px}

.file-dong{width:100%;background:none;border:0;border-top:1px solid var(--vien,#e3e9e5);padding:10px 2px;gap:8px;text-align:left;font:inherit;color:inherit}.file-dong small{white-space:nowrap}

.sh-xep{gap:8px;flex-wrap:wrap;margin:0 0 8px;align-items:center}.sh-xep select{flex:1;min-width:180px;margin:0}.sh-gop{display:flex;align-items:center;gap:6px;font-size:14px;white-space:nowrap}.sh-gop input{width:18px;height:18px}

#xem-pdf .xp-nut{display:flex;gap:6px}#xem-pdf .xp-dau b{flex:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#xem-pdf iframe{background:#e9eeea}

/* 2.7g Hàng sắp hết: gọn, nhìn được nhiều mã, bấm để xem chi tiết + khách mua */
.shl-dau,.shl{display:grid;grid-template-columns:30px 1fr 40px 56px 52px;gap:4px;align-items:center}
.shl-dau{font-size:11.5px;color:var(--mo,#6b7a72);font-weight:600;padding:4px 0;border-bottom:1px solid #e3e9e5}.shl-dau span:nth-child(n+3){text-align:right}
.shl{padding:7px 0;border-bottom:1px solid #eef2ef}.shl.sh-chon{background:#EAF6EC}
.shl-o{background:none;border:0;font-size:18px;padding:0;width:30px;height:30px}
.shl-ten{min-width:0;cursor:pointer}.shl-ten b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.shl-ten span{display:block;font-size:12px;color:var(--mo,#6b7a72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shl-so{text-align:right;font-size:14px;cursor:pointer}.shl-so small{display:block;font-size:11px;color:var(--mo,#6b7a72)}.shl-so.thieu{color:#b3261e;font-weight:700}.shl-so .o-sl{width:50px;padding:4px;font-size:14px}
.shl-ct{grid-column:1/-1;background:#f6f9f7;border-radius:10px;padding:8px 10px;margin-top:4px;display:flex;flex-direction:column;gap:5px}
.shl-ct-so{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:12.5px;color:#55635b}.shl-kh{display:flex;justify-content:space-between;font-size:13px;border-top:1px dashed #dde5df;padding-top:4px}

/* 2.8 Công nợ gọn – nhìn được nhiều khách */
.cnl-khung{padding:4px 12px}
.cnl{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:9px 0;border-bottom:1px solid #eef2ef}.cnl:last-child{border-bottom:0}.cnl.da{opacity:.75}
.cnl-ten{min-width:0}.cnl-ten b{display:block;font-size:14px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.cnl-ten span{font-size:12px;color:var(--mo,#6b7a72)}.cnl-ten i{font-style:normal}
.cnl-tien{font-size:15px;white-space:nowrap;align-self:start}
.cnl-nut{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.nut-nho{border:1px solid #d7e0da;background:#fff;border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;font-weight:600;color:#123d2a}.nut-nho.chinh{background:#123d2a;color:#fff;border-color:#123d2a}.nut-nho.mo-nhat{color:#6b7a72;margin-left:auto}
.hop-file{display:flex;flex-direction:column;gap:6px;margin:8px 0}

.cn-tuy summary{cursor:pointer;font-size:14px;list-style:none}.cn-tuy summary::-webkit-details-marker{display:none}.cn-tuy[open] summary{margin-bottom:8px}.cn-dot{margin-top:10px;padding-top:10px;border-top:1px solid #eef2ef}
#o-tim-cn{margin:8px 0}

.xp-cho{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:20px;text-align:center}
.xoay{width:42px;height:42px;border:4px solid #dfe8e2;border-top-color:#123d2a;border-radius:50%;animation:xoay 0.9s linear infinite}@keyframes xoay{to{transform:rotate(360deg)}}

#xem-pdf .xp-tim{display:flex;gap:8px;align-items:center;padding:6px 10px;background:#f3f6f4;border-bottom:1px solid #e3e9e5}#xem-pdf .xp-tim input{flex:1;border:1px solid #d7e0da;border-radius:10px;padding:8px 10px;font:inherit;font-size:15px}#xp-dem{white-space:nowrap;font-size:13px}

.cnl-dx{grid-column:1/-1;background:#f6f9f7;border:1px solid #e3e9e5;border-radius:12px;padding:8px 10px;margin-top:6px;display:flex;flex-direction:column;gap:6px}
.cnl-tin{font-size:14px;line-height:1.4;min-height:84px;margin:0;resize:vertical}.nhan-tt{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:#eef2ef}.nhan-tt.cam{background:#fdf3dd;color:#8a5a00}.nhan-tt.xanh{background:#e6f4ec;color:#1f7a52}.nhan-tt.do{background:#fde8e6;color:#b3261e}
.cnl-dx>summary{list-style:none;display:flex;align-items:center;gap:8px;cursor:pointer;min-width:0}.cnl-dx>summary::-webkit-details-marker{display:none}
.cnl-xem{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6b7a72;font-size:12.5px}
.cnl-mui{color:#6b7a72;transition:transform .2s}.cnl-dx[open] .cnl-mui{transform:rotate(180deg)}.cnl-dx[open] .cnl-xem{display:none}
.cnl-dx:not([open]){padding:6px 10px}
.hs-kv-dong{padding:8px 0;border-top:1px solid #eef2ef}.hs-kv-dong:first-of-type{border-top:0}
.hs-kv-thanh{height:6px;background:#eef2ef;border-radius:99px;overflow:hidden;margin:4px 0}.hs-kv-thanh span{display:block;height:100%;background:linear-gradient(90deg,#2E7D32,#C9A227);border-radius:99px}
.nk{padding:4px 12px}.nk-ngay{font-weight:800;color:#123d2a;font-size:13px;padding:10px 0 4px;border-bottom:2px solid #d4a62a;margin-bottom:2px}
.nk-dong{display:flex;gap:10px;padding:7px 0;border-bottom:1px solid #eef2ef;font-size:14px}.nk-gio{font-variant-numeric:tabular-nums;color:#6b7a72;min-width:42px;font-size:13px;padding-top:1px}
.nk-nd{flex:1;min-width:0}.nk-ct{font-size:12.5px;color:#4a5a52;margin-top:2px;word-break:break-word}.nk-k{color:#8a978f}.nk-loi{background:#fff6f5}

/* ===================== 3.0: Giao diện máy tính (≥1024px) – thanh menu trái kiểu Linear / Notion ===================== */
@media (min-width: 1024px) {
  html, body { font-size: 14.5px; }
  body.pc { padding: 0 0 0 256px; background: #f6f8f7; }
  body.pc #thanh-duoi { top: 0; right: auto; bottom: 0; left: 0; width: 256px; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px;
    background: #fbfcfb; border-top: 0; border-right: 1px solid var(--vien); overflow-y: auto; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.pc #thanh-duoi a { flex-direction: row; justify-content: flex-start; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 9px;
    font-size: 14px; font-weight: 600; color: #3f4f47; }
  body.pc #thanh-duoi a:hover { background: #eef3f0; color: var(--muc); }
  body.pc #thanh-duoi a:active { transform: none; }
  body.pc #thanh-duoi a.dang { background: var(--xanh-nhat); color: var(--muc); }
  body.pc #thanh-duoi a.dang::after { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; height: auto; border-radius: 0 3px 3px 0; background: var(--gold); }
  body.pc #thanh-duoi a svg, body.pc .mn-bt svg { width: 18px; height: 18px; }
  .mn-bt { width: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
  .mn-ten { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mn-dem { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--do); color: #fff; font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center; }
  .mn-dau { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--vach); }
  .mn-dau img { width: 38px; height: 38px; object-fit: contain; background: #fff; border: 1px solid var(--vien); border-radius: 10px; padding: 3px; }
  .mn-dau b { display: block; font-size: 16px; font-weight: 800; color: var(--muc); letter-spacing: -.2px; }
  .mn-dau small { display: block; font-size: 12px; color: var(--chu-mo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
  .mn-tieu { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chu-nhat); padding: 16px 10px 6px; }
  .mn-nhom { display: flex; flex-direction: column; gap: 2px; }
  .mn-cuoi { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--vach); display: flex; flex-direction: column; gap: 4px; }
  .mn-cuoi .mo { padding: 0 10px; font-size: 11.5px; }

  body.pc #dau { padding: 14px 32px; background: rgba(246,248,247,.88); border-bottom: 1px solid var(--vach); }
  body.pc #dau .o-logo { display: none; }
  body.pc .ten-app b { font-size: 22px; }
  body.pc #xem-nhu, body.pc #bao-loi { padding-left: 32px; padding-right: 32px; }
  body.pc main { max-width: 1240px; padding: 20px 32px 48px; margin: 0; }
  body.pc #toast { left: 256px; bottom: 24px; }

  /* thẻ & danh sách: phẳng hơn, viền mảnh, có hover */
  body.pc .khung { border: 1px solid var(--vien); box-shadow: none; border-radius: 14px; }
  body.pc .ds-hang { border: 1px solid var(--vien); box-shadow: none; border-radius: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.pc .ds-hang .hang { border-bottom: 1px solid var(--vach); min-height: 56px; }
  body.pc .ds-hang .hang:nth-child(odd) { border-right: 1px solid var(--vach); }
  body.pc .hang:hover { background: #f4f8f5; }
  body.pc button, body.pc .nut, body.pc .chip { transition: background .15s, box-shadow .15s, transform .1s; }
  body.pc .nut:hover { filter: brightness(1.05); box-shadow: 0 2px 8px rgba(18,61,42,.12); }
  body.pc h2 { font-size: 15px; margin-top: 26px; }

  /* Bảng tổng & trang con: chia cột cho rộng */
  body.pc .o-so, body.pc .bon-o { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  body.pc .cnl-ds, body.pc .shl-ds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  body.pc .luoi-diem { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.pc .khung.cuon { overflow: visible; }
  body.pc table.bang th, body.pc table.bang td { padding: 8px 10px; }
  body.pc #xem-pdf .xp-khung, body.pc #xem-pdf iframe { max-width: 980px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1024px) {
  /* Công nợ: 1 dòng ngang – tên | nút | số tiền */
  body.pc .cnl { grid-template-columns: minmax(0, 1fr) auto 150px; align-items: center; gap: 4px 16px; padding: 10px 4px; }
  body.pc .cnl-ten { grid-column: 1; grid-row: 1; }
  body.pc .cnl-nut { grid-column: 2; grid-row: 1; margin: 0; flex-wrap: nowrap; }
  body.pc .cnl-tien { grid-column: 3; grid-row: 1; text-align: right; align-self: center; }
  body.pc .cnl:hover { background: #f7faf8; }
  body.pc .sh-day { bottom: 16px !important; max-width: 520px; margin-left: auto; margin-right: auto; }
  body.pc .shl:hover, body.pc tr:hover > td { background: #f7faf8; }
}
@media (min-width: 1440px) { body.pc main { max-width: 1360px; } }
.o-tim-dg{width:100%;margin:8px 0 10px}
.kl-tom .pdf-da{min-width:0}
.kl-phai{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.kl-ngay{font-size:11.5px;font-weight:700;padding:2px 8px;border-radius:999px;background:#eef2ef;color:#4a5a52;white-space:nowrap}.kl-ngay.cam{background:#fdf3dd;color:#8a5a00}.kl-ngay.do{background:#fde8e6;color:#b3261e}
/* 3.2: Bảng tổng nhân viên – nhóm gọn */
.tn-nhom{margin-top:14px}.tn-nhom h2{display:flex;align-items:center;gap:8px;margin:0 0 8px}
.tn-dem{font-size:12px;font-weight:800;background:var(--do,#c62828);color:#fff;border-radius:999px;padding:1px 8px}.tn-ok{font-size:12px;font-weight:700;color:#1f7a52}
.tn-khung{background:#fff;border:1px solid var(--vien,#e3e9e5);border-radius:16px;overflow:hidden}
.tn-dong{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;background:none;border:0;border-bottom:1px solid var(--vach,#eef2ef);text-align:left;font:inherit;color:inherit;cursor:pointer}
.tn-dong:last-child{border-bottom:0}.tn-dong:active{background:#f4f8f5}
.tn-bt{width:38px;height:38px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:#eef3f0;color:#123d2a}.tn-bt svg{width:20px;height:20px}
.tn-dong.do .tn-bt{background:#fde8e6;color:#b3261e}.tn-dong.vang .tn-bt{background:#fdf3dd;color:#8a5a00}.tn-dong.tim .tn-bt{background:#efe9fb;color:#5b3fa6}.tn-dong.lam .tn-bt{background:#e5edf9;color:#1f4f86}
.tn-nd{flex:1;min-width:0;display:flex;flex-direction:column}.tn-nd b{font-size:15px}.tn-nd small{font-size:12.5px;color:var(--chu-mo,#6b7a72);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tn-so{font-size:24px;font-weight:800;letter-spacing:-.5px;color:#123d2a;min-width:34px;text-align:right}.tn-dong.do .tn-so{color:#b3261e}.tn-dong.vang .tn-so{color:#8a5a00}
.tn-mui{color:#9aa5ad;font-size:22px;line-height:1}
.tn-gap{font-style:normal;font-size:10px;font-weight:800;background:#b3261e;color:#fff;border-radius:6px;padding:1px 5px;vertical-align:2px}
.tn-xong{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.tn-xong .chip{background:#e6f4ec;color:#1f7a52;border-color:#cfe8da;font-size:12.5px}
.tn-dem.xam{background:#dfe6e2;color:#3f4f47}
/* 3.4: chất lượng hôm nay */
.cl-dau{display:flex;align-items:center;gap:14px;margin-bottom:8px}
.cl-diem{width:68px;height:68px;border-radius:50%;border:5px solid;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}.cl-diem b{font-size:22px;line-height:1}.cl-diem small{font-size:10px;color:#6b7a72}
.cl-hang{font-size:17px}.cl-hang.xanh{color:#1f7a52}.cl-hang.vang{color:#8a5a00}.cl-hang.do{color:#c62828}
.cl-dong{padding:7px 0;border-top:1px solid #eef2ef}.cl-thanh{height:6px;background:#eef2ef;border-radius:99px;overflow:hidden;margin:4px 0 2px}.cl-thanh i{display:block;height:100%;border-radius:99px}

/* 3.5 (15/11): chống iPhone tự phóng to khi bấm ô nhập (chữ < 16px) → trang bị lệch / mất bên phải */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 1023px) {
  input, select, textarea, .o-nhap, .o-lenh textarea, .shl-so .o-sl, #xem-nhu select { font-size: 16px; }
  #xem-nhu { padding: 6px 12px; gap: 6px; }
  #xem-nhu label { font-size: 0; flex: none; }
  #xem-nhu label::before { content: '👁'; font-size: 18px; }
  #xem-nhu span { font-size: 12px; white-space: nowrap; }
}
/* 3.5: Công nợ – đầu trang gọn 1 dòng */
.cn-gon { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; background: #fff; border-radius: var(--bo); padding: 10px 12px; margin-bottom: 10px; box-shadow: var(--bong); }
.cn-gon-so { flex: 1; min-width: 0; }
.cn-gon-so > b { display: block; font-size: clamp(18px, 5.2vw, 22px); font-weight: 800; color: var(--muc); font-variant-numeric: tabular-nums; }
.cn-gon-so .mo { font-size: 12.5px; }
.cn-gon-so .thanh-tien-do { height: 5px; margin: 6px 0 0; }
.cn-gon .cn-tuy { margin: 0; padding: 6px 10px; box-shadow: none; border: 1px solid var(--vien); flex: none; max-width: 100%; }
.cn-gon .cn-tuy summary { font-size: 13px; white-space: nowrap; cursor: pointer; }
.cn-gon .cn-tuy[open] { flex: 1 1 100%; }

/* 15/11 (doc Chỉnh app Ut): ghi chú màu vàng xuống dòng thẳng hàng, dễ đọc */
.hoi-nv { white-space: pre-line; line-height: 1.55; text-align: left; }
.hoi-nv .hn-dau { font-weight: 700; display: block; margin-bottom: 2px; }

/* ===== 3.9a (16/11, doc chị: giao diện PC bị nhoè) – máy tính: chữ nét, không làm mờ nền, không hiệu ứng trượt ===== */
@media (min-width: 1024px) {
  body.pc { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; text-rendering: optimizeLegibility; font-size: 15px; }
  body.pc #dau { -webkit-backdrop-filter: none; backdrop-filter: none; background: #f6f8f7; }
  body.pc main.vao > *, body.pc .the, body.pc .khung { animation: none !important; }
  body.pc .the, body.pc .khung, body.pc .o-so { box-shadow: none; }
  body.pc { --chu-mo: #46564e; --chu-nhat: #6f7d76; }
  body.pc .mo { color: #4f5f57; }
}
/* ===== 4.2a (16/11): PC kiểu Base – trắng, viền mảnh, không bóng, không hiệu ứng ===== */
@media (min-width: 1024px) {
  body.pc { padding-left: 240px; background: #f5f6f8; --vien: #e5e7eb; --vach: #f0f1f3; }
  body.pc #thanh-duoi { width: 240px; background: #ffffff; border-right: 1px solid #e5e7eb; box-shadow: none; padding: 12px; overflow-y: auto; }
  body.pc #thanh-duoi a { min-height: 38px; border-radius: 8px; color: #374151; font-weight: 500; font-size: 14px; }
  body.pc #thanh-duoi a .mn-bt { color: #6b7280; }
  body.pc #thanh-duoi a:hover { background: #f3f4f6; color: #111827; }
  body.pc #thanh-duoi a.dang { background: #e8f3ec; color: #14532d; font-weight: 600; }
  body.pc #thanh-duoi a.dang .mn-bt { color: #1f7a3f; }
  body.pc #thanh-duoi a.dang::after { display: none; }
  body.pc .mn-tieu { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; padding: 16px 10px 6px; }
  body.pc .mn-dem { background: #dc2626; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; margin-left: auto; }
  body.pc .mn-dau { padding: 4px 6px 12px; border-bottom: 1px solid #f0f1f3; margin-bottom: 4px; }
  body.pc #dau { background: #ffffff !important; border-bottom: 1px solid #e5e7eb; min-height: 56px; padding: 8px 28px; box-shadow: none; }
  body.pc main { padding: 24px 28px 48px; max-width: 1320px; }
  body.pc .khung, body.pc .the, body.pc .ds-hang, body.pc .o-so > *, body.pc .bon-o > * { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: none !important; }
  body.pc .nut:hover { box-shadow: none; filter: none; }
  body.pc button, body.pc .nut, body.pc .chip { transition: none; }
  body.pc h1 { font-size: 22px; font-weight: 700; }
  body.pc h2 { font-size: 15px; font-weight: 600; color: #111827; }
  body.pc .hang:hover, body.pc tr:hover > td, body.pc .cnl:hover, body.pc .shl:hover { background: #f9fafb; }
  body.pc table.bang th { background: #f9fafb; color: #4b5563; font-size: 12px; font-weight: 600; text-align: left; border-bottom: 1px solid #e5e7eb; }
  body.pc table.bang td { border-bottom: 1px solid #f0f1f3; }
  body.pc #toast { left: 240px; }
}
/* ===== 4.3a (16/11): ĐIỆN THOẠI theo mẫu chị duyệt – trắng, viền mảnh, chữ to, nút to, không bóng/hiệu ứng ===== */
.nhan-viec { display: inline-block; font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; margin-right: 4px; vertical-align: 1px; }
.nv-lam { background: #dbeafe; color: #1e40af; } .nv-tim { background: #ede9fe; color: #5b21b6; } .nv-xanh { background: #dcfce7; color: #166534; }
.nv-cam { background: #ffedd5; color: #9a3412; } .nv-vang { background: #fef9c3; color: #854d0e; } .nv-hong { background: #fce7f3; color: #9d174d; }
.nv-troi { background: #e0f2fe; color: #075985; } .nv-xam { background: #f3f4f6; color: #374151; }
.nut-dt { display: none; }
@media (max-width: 1023px) {
  body { background: #f5f6f8; font-size: 16px; }
  #dau { background: #ffffff !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 1px solid #e5e7eb; box-shadow: none; }
  .the, .khung, .ds-hang, .o-so > *, .bon-o > *, .the-bc { background: #ffffff; border: 1px solid #e5e7eb !important; border-radius: 12px !important; box-shadow: none !important; }
  .the.chot { border-color: #bbf7d0 !important; }
  main.vao > *, .the, .khung { animation: none !important; }
  button, .nut, .chip { transition: none !important; }
  .nut { min-height: 48px; font-size: 16px; }
  #thanh-duoi { background: #ffffff !important; border-top: 1px solid #e5e7eb; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  #thanh-duoi a { min-height: 56px; font-size: 11px; }
  #thanh-duoi a.dang { color: #1f7a3f; }
  /* thẻ Zalo: 1 nút "Duyệt & gửi" to, các nút khác vào ⋯ */
  .the .nut-hang[style*="1fr 1fr"] { display: none !important; }
  .the .nut-dt { display: flex; gap: 10px; align-items: flex-start; padding: 0 14px 12px; }
  .nut-dt .nut-to { flex: 1; min-height: 52px; font-size: 17px; font-weight: 700; border-radius: 12px; margin: 0; }
  .nut-them { position: relative; }
  .nut-them > summary { list-style: none; width: 52px; height: 52px; border: 1px solid #d1d5db; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #374151; cursor: pointer; }
  .nut-them > summary::-webkit-details-marker { display: none; }
  .nut-them[open] > div { position: absolute; right: 0; bottom: 60px; z-index: 5; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
  .nut-them[open] > div .nut { margin: 0; min-height: 44px; }
}
/* ===== 4.3b (doc Chỉnh app Ut: mọi bộ phận dùng giao diện Base, mượt) – nút gọn, màu trung tính, không nhún ===== */
.nut:not(.duyet):not(.chinh):not(.sua):not(.khong):not(.boqua):not(.phu):not(.vang) { background: #ffffff; color: #111827; border: 1px solid #d1d5db; }
.nut { font-weight: 600; transition: none; }
.nut:active { transform: none; }
.nut.sua { background: #ffffff; color: #111827; border: 1px solid #d1d5db; }
.nut.duyet, .nut.chinh { background: #1f7a3f; }
.nut.duyet .bt { stroke: #ffffff; }
@media (min-width: 1024px) { body.pc .nut { border-radius: 8px; } body.pc .chip { border-radius: 8px; border-color: #d1d5db; font-weight: 500; } body.pc .chip.dang { background: #111827; border-color: #111827; } }
/* 4.3c: nút ⋯ đóng/mở bằng JS (Safari không đóng được details) + hộp xác nhận kiểu Base */
.nut-them { position: relative; }
.nut-them-mo { width: 52px; height: 52px; border: 1px solid #d1d5db; border-radius: 12px; background: #fff; font-size: 22px; color: #374151; cursor: pointer; }
.nut-them-ds { display: none; }
.nut-them.mo .nut-them-ds { display: flex; position: absolute; right: 0; bottom: 60px; z-index: 5; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 8px; flex-direction: column; gap: 6px; min-width: 170px; }
.nut-them.mo .nut-them-ds .nut { margin: 0; min-height: 44px; }
.xn-nen { position: fixed; inset: 0; z-index: 100; background: rgba(17,24,39,.35); display: flex; align-items: center; justify-content: center; padding: 20px; }
.xn-hop { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; width: 100%; max-width: 380px; padding: 20px; }
.xn-cau { font-size: 16px; line-height: 1.5; color: #111827; margin-bottom: 16px; }
.xn-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xn-nut .nut { margin: 0; min-height: 44px; border-radius: 8px; }
/* 4.3e: mã gần cỡ tô màu khác, mã đang chọn bằng phím */
.kh-mon.kh-gan { background: #fffbeb; border-color: #fcd34d !important; }
.kh-mon.kh-gan::before { content: "Gần cỡ"; font-size: 11px; font-weight: 600; color: #92400e; background: #fde68a; border-radius: 4px; padding: 1px 6px; margin-right: 8px; align-self: center; }
.kh-mon.kh-chon { outline: 2px solid #1f7a3f; outline-offset: -2px; background: #e8f3ec; }
.nut-mic { display: none !important; }
/* 4.3g: Dây chuyền đơn (xem trực tiếp) */
.lu-khung { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.lu-cot { background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px; min-height: 240px; scroll-snap-align: start; display: flex; flex-direction: column; }
.lu-cot h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #374151; display: flex; align-items: center; gap: 6px; }
.lu-cot h3 b { margin-left: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 0 8px; font-size: 12px; color: #111827; }
.lu-ds { display: flex; flex-direction: column; gap: 8px; }
.lu-the { display: block; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; text-decoration: none; color: #111827; will-change: transform; }
.lu-the.tre { border-color: #fca5a5; }
.lu-the.lu-moi { animation: luMoi 1.2s ease; }
.lu-the.lu-qua { box-shadow: 0 0 0 2px #1f7a3f; }
@keyframes luMoi { from { background: #e8f3ec; } to { background: #fff; } }
.lu-dau { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lu-dau b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-gio { font-size: 12px; color: #4b5563; white-space: nowrap; }
.lu-the.tre .lu-gio { color: #b91c1c; font-weight: 600; }
.lu-phu { margin-top: 4px; font-size: 12px; color: #4b5563; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lu-trong { font-size: 13px; color: #6b7280; text-align: center; padding: 18px 0; }
@media (max-width: 1023px) { .lu-khung { grid-template-columns: repeat(5, 82vw); } }
/* 4.3h: nút 📷 chụp toa cạnh ô tìm mã */
.co-toa { position: relative; }
.co-toa > input[id^="kt-"] { padding-right: 48px; }
.nut-toa { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #374151; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.nut-toa svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* 4.3j: mục Đã đọc (thu gọn) */
.da-doc { margin-top: 12px; }
.da-doc > summary { cursor: pointer; font-size: 14px; font-weight: 600; color: #4b5563; padding: 10px 2px; list-style: none; }
.da-doc > summary::before { content: "▸ "; } .da-doc[open] > summary::before { content: "▾ "; }
.da-doc .khung { opacity: .8; }
/* 4.3o: gợi ý đơn khác cũng cần món đang soạn */
.sd-cung { margin: 4px 0 6px 34px; font-size: 13px; color: #92400e; text-decoration: underline dashed #f59e0b; text-underline-offset: 3px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sd-cung-nut { text-decoration: none; border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; min-height: 32px; }
/* 4.4: khách hối / ưu tiên / hết hàng / chuyển kho HB */
@keyframes qp-lac { 0%,100% { transform: translateX(0) } 15% { transform: translateX(-5px) rotate(-.6deg) } 30% { transform: translateX(5px) rotate(.6deg) } 45% { transform: translateX(-4px) } 60% { transform: translateX(4px) } 75% { transform: translateX(-2px) } }
.the-hoi { animation: qp-lac .7s ease-in-out 0s 4, qp-lac .7s ease-in-out 6s 3; box-shadow: 0 0 0 3px #f97316 !important; }
.the-uu { box-shadow: 0 0 0 2px #eab308; }
.nhan-hoi { background: #dc2626; color: #fff; border-radius: 6px; padding: 1px 7px; margin-left: 6px; font-size: 12px; animation: qp-nhap 1s infinite; }
.nhan-uu { background: #facc15; color: #713f12; border-radius: 6px; padding: 1px 7px; margin-left: 6px; font-size: 12px; }
@keyframes qp-nhap { 50% { opacity: .55 } }
.hoi-hang { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.hoi-hang .chip { min-height: 34px; }
.hoi-nut { border-color: #fdba74 !important; color: #c2410c !important; }
.sd-nut-het { color: #b91c1c !important; font-weight: 700; font-size: 12px !important; padding: 0 8px !important; }
.sd-het-hb { background: #eff6ff; } .sd-het-thieu { background: #fef2f2; opacity: .85; }
.sd-het-thieu b { text-decoration: line-through; }
.sd-cho-hb { color: #1d4ed8 !important; font-weight: 600; }
.sd-nhan-them { color: #7c3aed !important; font-style: normal !important; } .sd-nhan-hb { color: #047857 !important; font-style: normal !important; }
.sd-mua-them { border-left: 3px solid #a78bfa; }
.kh-hb { font-size: 11px; color: #1d4ed8; background: #eff6ff; border-radius: 5px; padding: 0 5px; margin-left: 4px; }
.ck-the.ck-cho { border-left: 4px solid #f59e0b; } .ck-the.ck-da_gui { border-left: 4px solid #3b82f6; } .ck-the.ck-khong_co { border-left: 4px solid #ef4444; }
.ck-nut { gap: 8px; flex-wrap: wrap; margin-top: 8px; } .ck-nut .nut { flex: 1 1 auto; margin: 0; }
@media (prefers-reduced-motion: reduce) { .the-hoi, .nhan-hoi { animation: none; } }
/* 4.4c (doc Ut): 3 ô Gửi hàng cân đối – chữ nhãn & số không bị viền nút */
.o-so .nhan, .o-so b { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; border-radius: 0 !important; width: auto !important; }
/* 4.4c: Hàng sắp hết trên điện thoại – nút gọn 1 hàng cuộn ngang, sát nhau */
@media (max-width: 700px) {
  .sh-cong-cu { flex-wrap: nowrap !important; overflow-x: auto; gap: 6px !important; padding-bottom: 4px; scrollbar-width: none; margin: 4px 0 6px !important; }
  .sh-cong-cu::-webkit-scrollbar { display: none; }
  .sh-cong-cu .nut { flex: 0 0 auto; padding: 6px 10px !important; min-height: 34px !important; font-size: 13px !important; border-radius: 17px !important; white-space: nowrap; margin: 0 !important; }
  .sh-xep { gap: 6px !important; font-size: 13px; } .sh-xep .o-nhap { padding: 6px 8px !important; min-height: 34px !important; font-size: 13px !important; }
  .sh-day { padding: 6px 0 !important; } .sh-day .nut { min-height: 42px !important; font-size: 14.5px !important; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
}
.zalo-tt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12.5px; margin-top: 4px; }
.den.vang { background: #f59e0b; }
.am-thu { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .am-thu .chip { min-height: 34px; }
/* 4.5 */
.sd-nhan-doi { color: #b45309 !important; font-style: normal !important; font-weight: 700; background: #fff7ed; border-radius: 5px; padding: 0 5px; }
.sd-tra-ke { color: #fff !important; font-style: normal !important; font-weight: 800; background: #dc2626; border-radius: 5px; padding: 0 6px; animation: qp-nhap 1s infinite; }
.sd-huy b { text-decoration: line-through; opacity: .6; }
.om-ds { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; } .om-dong { display: flex; justify-content: space-between; align-items: center; background: #f1f5f2; border-radius: 8px; padding: 6px 10px; }
.om-dong button { border: 0; background: none; color: #b91c1c; font-size: 16px; cursor: pointer; }
/* 4.6: chuyến chuyển kho */
.ck-tick { background: #f0fdf4; } .ck-sl { width: 70px !important; text-align: center; padding: 6px !important; }
.ck-chot { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); background: var(--nen, #f3f6f4); padding: 8px 0; z-index: 3; margin-top: 8px; }
.ck-ds { display: flex; flex-direction: column; gap: 3px; margin: 6px 0; font-size: 14px; }
.mh-zalo summary { cursor: pointer; font-size: 12.5px; color: #1d4ed8; } .mh-zalo .mo { font-size: 12px; border-left: 2px solid #bfdbfe; padding-left: 6px; margin-top: 4px; }
/* 4.8 */
.hk-sau { display: flex !important; justify-content: space-between; gap: 10px; } .hk-sau b { white-space: nowrap; color: #1b5e3b; }
.sl-sau { color: #1b5e3b; white-space: nowrap; }
.om-bot { width: 40px; height: 40px; border-radius: 10px; border: 1px solid #cfd9d3; background: #fff; font-size: 20px; font-weight: 700; color: #1b5e3b; cursor: pointer; }
.th-dong { background: #f6f8f7; border-radius: 10px; padding: 6px 8px; }
/* 4.8: trang chủ điện thoại – đầu MoMo + lưới & đơn kiểu Shopee */
.dt-dau { background: #1b5e3b; color: #fff; margin: -6px -16px 0; padding: 16px 16px 62px; border-radius: 0 0 26px 26px; }
.dt-chao { display: flex; align-items: center; gap: 10px; } .dt-chao small { display: block; font-size: 12px; opacity: .85; } .dt-chao b { font-size: 16px; }
.dt-av { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; } .dt-av svg { width: 20px; height: 20px; stroke: #fff; }
.dt-the { margin: -48px 4px 0; background: #fff; border-radius: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.08); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.dt-so { display: flex; align-items: baseline; gap: 6px; } .dt-so b { font-size: 30px; line-height: 1; } .dt-so span { font-size: 13.5px; color: var(--chu-mo, #5b6b63); }
.dt-thanh { height: 8px; background: #eaf5ee; border-radius: 4px; overflow: hidden; } .dt-thanh span { display: block; height: 100%; background: #1b5e3b; border-radius: 4px; }
.dt-luoi { background: #fff; margin: 12px 0 0; border-radius: 14px; padding: 10px 6px; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 6px; }
.dt-o { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; font: inherit; font-size: 12px; color: inherit; position: relative; cursor: pointer; min-height: 76px; }
.dt-o-ic { width: 46px; height: 46px; border-radius: 14px; background: #eaf5ee; display: flex; align-items: center; justify-content: center; } .dt-o-ic svg { width: 22px; height: 22px; stroke: #1b5e3b; }
.dt-dem { position: absolute; top: 0; right: calc(50% - 32px); background: #e4572e; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 0 6px; min-width: 18px; text-align: center; }
.dt-h { margin: 16px 2px 8px; font-size: 15px; justify-content: space-between; } h2.dt-h { font-size: 15px; }
.dt-can { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .dt-can::-webkit-scrollbar { display: none; }
.dt-can-o { flex: 0 0 132px; border: 0; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; cursor: pointer; }
.dt-can-o svg { width: 22px; height: 22px; stroke: currentColor; } .dt-can-o b { font-size: 26px; line-height: 1; } .dt-can-o span { font-size: 12.5px; font-weight: 600; }
.dt-dons { display: flex; flex-direction: column; gap: 8px; }
.dt-don { background: #fff; border: 0; border-radius: 12px; padding: 12px; display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.dt-don-ic { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .dt-don-ic svg { width: 22px; height: 22px; stroke: currentColor; }
.dt-don-nd { flex: 1; min-width: 0; } .dt-don-nd b { display: block; font-size: 14px; } .dt-don-nd small { display: block; font-size: 12px; color: var(--chu-mo, #5b6b63); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-nhan { font-size: 10.5px; font-weight: 800; border: 1px solid; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
