/* HCL ONE — module CHẤM TRƯNG BÀY (0.9.9 · s099-e1). Tiền tố lớp riêng .tb-* — điện thoại 390 px trước; bản web (body.hc-web) lưới rộng hơn. */

/* ---- khối trên màn điểm bán */
.tb-khoi .hc-muc a{margin-left:auto}
.tb-khoi .dem.do{background:var(--do,#C62828);color:#fff}
.tb-the{margin-bottom:10px}
.tb-the h3{margin:0;font:800 16px/1.3 var(--tieu-de)}
.tb-dong{display:flex;gap:6px;align-items:flex-start;margin:6px 0 0;font-size:14px;line-height:1.45}
.tb-dong>svg{flex:none;margin-top:2px;opacity:.75}
.tb-nut{margin-top:10px}
.tb-anh-may{margin-top:10px}
.tb-anh-may figure{position:relative;margin:0}
.tb-anh-may figure img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;display:block}
.tb-anh-may figcaption{position:absolute;left:6px;bottom:6px;padding:1px 7px;border-radius:99px;background:rgba(0,0,0,.6);color:#fff;font:700 11px var(--noi-dung)}
.tb-huong-dan{display:flex;flex-direction:column;gap:6px;background:var(--cam-nhat,#fff4e0);border:1px solid rgba(230,140,0,.25)}
.tb-huong-dan .tb-so-do{width:100%;max-width:340px;height:auto;align-self:center;color:var(--chu,#1f2937)}
.tb-huong-dan p{margin:0;font-size:14px;line-height:1.5}
.tb-nhay{animation:tb-nhay 1.4s ease 1}
@keyframes tb-nhay{0%,100%{box-shadow:none}30%,70%{box-shadow:0 0 0 4px var(--do,#C62828);border-radius:14px}}

/* ---- khung ngắm chèn vào camera trong app của lõi (.hc-cam) */
.tb-ngam{position:absolute;left:0;right:0;top:calc(62px + env(safe-area-inset-top));bottom:calc(128px + env(safe-area-inset-bottom));pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:10px}
.tb-ngam-nhac{max-width:340px;margin:0 14px;padding:8px 14px;border-radius:12px;background:rgba(0,0,0,.62);color:#fff;text-align:center;font:600 14px/1.35 var(--noi-dung)}
.tb-ngam-nhac b{display:block;color:var(--vang,#FEC12B);font-size:15px}
.tb-ngam-khung{flex:1;width:calc(100% - 20px);max-width:760px;display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:0;min-height:120px;max-height:62%}
.tb-ngam-khung>span{display:flex;align-items:flex-end;justify-content:center;padding-bottom:8px;color:#fff;font:800 14px var(--noi-dung);text-shadow:0 1px 3px #000}
.tb-ngam-ben{border:2px dashed rgba(255,255,255,.8);border-radius:6px}
.tb-ngam-ben:first-child{border-right:0;border-radius:6px 0 0 6px}
.tb-ngam-ben:last-child{border-left:0;border-radius:0 6px 6px 0}
.tb-ngam-giua{border:3px solid var(--vang,#FEC12B);border-radius:4px;background:rgba(254,193,43,.08)}

/* ---- màn chấm (#/trung-bay), album, đội */
.tb-man{display:flex;flex-direction:column;gap:12px}
.tb-tab{overflow-x:auto}
.tb-loc{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.tb-o{display:flex;flex-direction:column;gap:3px;font:600 12px var(--noi-dung);color:var(--chu-phu,#555)}
.tb-o input,.tb-o select{min-height:44px;padding:8px 10px;border:1px solid var(--vien,#d6d9e0);border-radius:10px;font:500 15px var(--noi-dung);background:var(--nen-the,#fff);color:var(--chu,#111)}
.tb-o-hop{flex-direction:row;align-items:center;gap:8px;font-size:14px;min-height:44px}
.tb-o-hop input{width:22px;height:22px;min-height:0}
.tb-nhom-dau{flex-wrap:wrap;row-gap:2px}
.tb-nhom-dau>span:first-child{text-transform:none;letter-spacing:0;font:800 14.5px/1.35 var(--tieu-de);color:var(--chu,#111)}
.tb-nhom-ds .hc-muc small{font:500 12px var(--noi-dung);text-transform:none;letter-spacing:0;color:var(--chu-phu,#666)}
.tb-luoi{display:grid;grid-template-columns:1fr;gap:12px}
.tb-cham{display:flex;flex-direction:column;gap:6px}
.tb-cham.chon{outline:3px solid var(--cham,#2b3a8c);outline-offset:-1px}
.tb-cham-dau{align-items:flex-start;gap:8px}
.tb-cham-quan{flex:1;min-width:0}
.tb-cham-quan h3{margin:0;font:800 16px/1.3 var(--tieu-de)}
.tb-cham-quan a{color:inherit;text-decoration:none}
.tb-o-chon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-8px 0 0 -8px;flex:none;cursor:pointer}
.tb-o-chon input{width:22px;height:22px}
.tb-yc{margin:0;font-size:13.5px;line-height:1.45;color:var(--chu,#222)}
.tb-album{display:flex;flex-direction:column;gap:6px}
.tb-tc{position:relative;margin:0}
.tb-tc img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:12px;background:#111;display:block;cursor:zoom-in}
.tb-tc figcaption{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);padding:3px 9px;border-radius:99px;background:rgba(0,0,0,.65);color:#fff;font:500 12px var(--noi-dung)}
.tb-dh-anh{position:absolute;left:8px;top:8px;right:8px;display:flex;flex-wrap:wrap;gap:4px}
.tb-can{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tb-can figure{margin:0}
.tb-can img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#111;display:block;cursor:zoom-in}
.tb-can figcaption{font:500 11px var(--noi-dung);color:var(--chu-phu,#666);margin-top:2px}
.tb-dh{font-size:11.5px}
.tb-dh-hang{display:flex;flex-wrap:wrap;gap:4px}
.tb-nut-cham{margin-top:4px}
.tb-nut-cham .hc-nut{flex:1;min-height:48px}
.tb-kq{align-items:flex-start;margin-top:4px}
.tb-kq>div{flex:1}
.tb-ly-do{flex-wrap:wrap}
.tb-ly-do button{flex:1 1 auto}
.tb-chon-day{position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--nen-the,#fff);box-shadow:0 -6px 18px rgba(0,0,0,.14)}
.tb-chon-trong{display:flex;flex-wrap:wrap;gap:8px;align-items:center;max-width:1100px;margin:0 auto}
.tb-chon-trong b{flex:1 1 100%;font-size:15px}
.tb-chon-trong .hc-nut{flex:1}
.tb-xem{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center}
.tb-xem img{max-width:100%;max-height:100%;object-fit:contain}
.tb-xem-chu{position:absolute;left:0;right:0;bottom:0;padding:12px 16px calc(14px + env(safe-area-inset-bottom));background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.8));color:#fff;display:flex;flex-direction:column;gap:4px;font:500 13px/1.4 var(--noi-dung)}
.tb-xem-chu>div{display:flex;flex-wrap:wrap;gap:4px}
.tb-xem-dong,.tb-xem-lui,.tb-xem-toi{position:absolute;width:52px;height:52px;border:0;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.tb-xem-dong{top:calc(10px + env(safe-area-inset-top));right:10px}
.tb-xem-lui{left:8px;top:50%;transform:translateY(-50%)}
.tb-xem-toi{right:8px;top:50%;transform:translateY(-50%)}
.tb-diem-dau h2{margin:0;font:800 19px/1.3 var(--tieu-de)}
.tb-dk-ds{margin-top:8px;box-shadow:none;border:0}
.tb-thang{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.tb-po .tb-dk-chip{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.tb-po-form{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.tb-po-so{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.tb-po-so .tb-o{flex:1 1 140px}
.tb-po-on{flex-wrap:wrap}
.tb-vt{display:flex;flex-direction:column;gap:10px}
.tb-vt-anh{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tb-vt-o{position:relative;display:block;cursor:pointer}
.tb-vt-o img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#111;display:block}
.tb-vt-o input{position:absolute;right:6px;top:6px;width:24px;height:24px}
.tb-vt-o.tu-chup{opacity:.45;cursor:not-allowed}
.tb-so .hc-so b small{font-size:.6em;opacity:.7}
.tb-bang td a{font-weight:700}
.tb-tc-so{margin-top:10px}
.tb-po-lk{font-weight:700;color:var(--chinh,#2b3a8c);text-decoration:none;display:inline-flex;align-items:center;gap:4px;min-height:44px}
.tb-tc-dau{display:flex;gap:10px;align-items:center}
.tb-tc-dau h3{margin:0}

/* ---- bản web (≥ 1024 px): lưới 2–3 cột, thanh chọn nhiều gọn */
body.hc-web .tb-luoi{grid-template-columns:repeat(auto-fill,minmax(360px,1fr))}
body.hc-web .tb-chon-day{left:auto;right:24px;bottom:20px;border-radius:14px;max-width:620px}
body.hc-web .tb-vt-anh{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}
/* 0.9.10 (s0910-r): chấm PO / PO-ON từng tiêu chí theo ảnh */
.tb-po-anh .tb-tc { border-top: 1px solid var(--vien, #e5e0d5); padding: 10px 0; display: grid; gap: 8px; }
.tb-po-anh .tb-tc-dau { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tb-po-anh .hc-chon button { min-height: 44px; }
.tb-po-anh .tb-tc-ly { width: 100%; min-height: 44px; }
/* 2.1 (s21-c): KHIẾU NẠI kết quả chấm — nút còn hạn, khối khiếu nại trên thẻ lần chụp, tấm gửi, nút xử lý của sales admin */
.tb-kn-nut{margin-top:8px}
.tb-kn-chip{white-space:nowrap}
.tb-kn-dong>span{flex-wrap:wrap}
.tb-kn{display:flex;flex-direction:column;gap:6px;margin-top:6px;padding:10px 12px;border-radius:12px;background:var(--cam-nhat,#FFF1DB);border:1px solid rgba(227,139,0,.25)}
.tb-kn.tb-kn-giu{background:var(--nen,#FAF7F0);border-color:var(--vien,#E3DFD3)}
.tb-kn.tb-kn-cham_lai{background:var(--xanh-nhat,#E4EFE3);border-color:rgba(46,125,50,.25)}
.tb-kn .tb-dong{margin:0}
.tb-kn-dau{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tb-kn-anh{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tb-kn-anh img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#111;display:block;cursor:zoom-in}
.tb-kn-xl{margin-top:2px}
.tb-kn-xl .hc-nut{flex:1;min-height:48px}
.tb-kn-kq .hc-nut.chon{outline:3px solid var(--chinh,#2b3a8c);outline-offset:2px}
.tb-kn-han{display:flex;gap:6px;align-items:center}
.tb-kn-anh-moi{margin:4px 0 10px}
.tb-kn-anh-o{position:relative;margin:0}
.tb-kn-anh-o img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block}
.tb-kn-bo{position:absolute;top:4px;right:4px;width:32px;height:32px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.tb-tab-kn{margin-left:auto}
.tb-tab .dem.do{background:var(--do,#C62828);color:#fff}
.tb-bao-kn{text-decoration:none;color:inherit}
/* 2.7 (s27-d · góp ý sales admin 31/10 #4, #12): bộ lọc hàng chờ chấm PO · nút phóng to ảnh viếng thăm · xem ảnh chạm để phóng to */
.tb-po-loc{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.tb-po-loc .tb-o{flex:1 1 160px}
.tb-po-loc select{width:100%;min-height:44px}
/* 2.7 (s27-o · rà R2 #1, #6): chip tháng của hàng chờ Chấm PO (tháng này / tháng trước còn hạn chấm) · thẻ điểm có đề nghị chờ + nút "Đóng đề nghị" (nằm ngoài liên kết) */
.tb-po-thang{margin:8px 0}
.tb-po-the{border-bottom:1px solid var(--vien-2)}
.tb-po-the>.hc-dong{border-bottom:0}
.hc-ds>.tb-po-the:last-child{border-bottom:0}
.tb-po-dn{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;padding:0 14px 10px}
.tb-po-dn .hc-phu{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}
.tb-po-dn .hc-nut{min-height:44px;white-space:nowrap}
.tb-vt-to{position:absolute;left:6px;bottom:6px;width:36px;height:36px;border:0;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.tb-xem.to{overflow:auto;display:block}
.tb-xem.to img{max-width:none;max-height:none;width:200%;height:auto;cursor:zoom-out}
.tb-xem img{cursor:zoom-in}
/* 2.7 (s27-e · góp ý sales admin 31/10 #3): SỬA MỨC đăng ký trưng bày (album, tấm sửa, khối trên màn chi tiết đăng ký) + lọc NPP / SS, trả thưởng ở kết quả tháng */
.hc-dong-giua .p.tb-muc-dong{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.tb-dk .hc-dong-cuoi{align-self:center}
.tb-nut-muc{white-space:nowrap}
.tb-muc-tam .hc-chon>button:disabled{opacity:.55;cursor:not-allowed}
.tb-muc-tam .hc-chon.doc>button{width:100%}
.tb-muc-tam .tb-muc-dang{align-items:flex-start;line-height:1.6}
.tb-muc-tam .tb-muc-dang-la{font-style:normal;font-weight:700}
.tb-muc-ls-dau{margin:14px 0 4px;font:800 14px var(--tieu-de)}
.tb-muc-ls{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}
.tb-muc-ls li{display:flex;flex-direction:column;gap:2px;padding-top:8px;border-top:1px solid var(--vien-2,#ece8de);font-size:13.5px;line-height:1.4;overflow-wrap:anywhere}
.tb-muc-khoi .tb-dong>span{flex-wrap:wrap;display:inline-flex;gap:4px;align-items:center}
.tb-muc-khoi .tb-nut-muc{margin-top:10px}
.tb-o-loc{flex:1 1 150px;min-width:0}
.tb-o-loc select{width:100%;max-width:100%}
.tb-tra-thuong{align-items:flex-start;line-height:1.5}
/* 2.7 (s27-p · rà R2 #4): album khi chấm — ảnh lượt ghé của tháng đang chấm theo hai nửa (tiêu đề nửa, chip tháng này / tháng trước còn hạn chấm) */
.tb-vt-thang{margin:4px 0 8px}
.tb-vt-nua{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:14px 0 8px;font:800 15px var(--tieu-de)}
.tb-vt-nua small{font-weight:500}
/* 2.9 (s29-d · K01): Kết quả trưng bày tháng — bộ chọn kỳ chung (chế độ tháng) + dòng chữ kỳ */
.tb-man > .hc-chon-ky{margin:0 0 4px}
.tb-man .tb-ky-chu{margin:2px 0 10px;font-size:12.5px}
/* 2.9 (s29-d · K03): "Đầu tháng: mở sẵn tháng 10 (tới hết ngày 05/11) — bấm ‹ › để đổi tháng." */
.tb-man .tb-mo-san{margin:0 0 10px;font-weight:700;font-size:13px}
/* 3.0 (s30-u · N4): sales "Đề nghị sửa mức" — dòng trạng thái trên thẻ đăng ký (khối điểm bán) · dòng đề nghị + ảnh kèm trên album */
.tb-the .tb-nut-dn-muc{margin-top:8px}
.tb-dn-muc span{overflow-wrap:anywhere}
.tb-dn-muc-album{display:flex;flex-wrap:wrap;align-items:center;gap:6px;overflow-wrap:anywhere}
.tb-dn-anh{display:flex;gap:6px;flex-basis:100%}
.tb-dn-anh img{width:64px;height:64px;object-fit:cover;border-radius:10px;background:var(--nen-2,#f2efe8)}
