/* ============================================================
   hcxacnhan.css - TIN XÁC NHẬN (HcXacNhan.js, 29/10/2026, _docs/77 mục 35). Lớp gốc .hcxn - mọi bộ chọn bó trong nó (tên lớp là không gian chung).
   Phần đầu: CHUYỂN NGUYÊN từ mockup anh duyệt (_Ngoai/_Claude/Xem/chat-xac-nhan-soan.html lần 13) bằng script gắn tiền tố .hcxn; phần cuối: riêng engine.
   ============================================================ */
.hcxn * { box-sizing: border-box; }
.hcxn { --xanh: #1d4ed8; }
.hcxn button, .hcxn input, .hcxn textarea { font: inherit; }
.hcxn .hop { width: 1360px; height: calc(100vh - 76px); min-height: 720px; margin: 0 auto; background: #f5f6f8; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.18);
         padding: 10px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.hcxn .hop::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; background: linear-gradient(135deg, transparent 50%, #98a2b3 50%, #98a2b3 58%, transparent 58%, transparent 70%, #98a2b3 70%, #98a2b3 78%, transparent 78%); }
.hcxn .luoi3 { display: grid; gap: 10px; flex: 1; min-height: 0; }
.hcxn .khung { background: #fff; border: 1px solid #dfe4eb; border-radius: 10px; padding: 10px 12px; min-height: 0; display: flex; flex-direction: column; }
.hcxn .khung-dau { display: flex; align-items: center; gap: 8px; height: 36px; padding-bottom: 6px; margin: 0 2px 8px; border-bottom: 2px solid var(--xanh); flex: none; }
.hcxn .khung-dau > i { color: var(--xanh); font-size: 19px; }
.hcxn .khung-dau b { font-size: 15px; }
.hcxn .khung-dau .dem { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--xanh); background: #e0eaff; border-radius: 999px; padding: 2px 10px; }
.hcxn .cuon { overflow-y: auto; flex: 1; min-height: 0; padding-right: 4px; }
.hcxn .chan { display: flex; gap: 8px; flex: none; }
.hcxn .chan .phu { height: 36px; min-width: 90px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; justify-content: center; padding: 0 12px; }
.hcxn .chan .chinh { flex: 1; height: 36px; border: 0; border-radius: 8px; background: var(--xanh); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.hcxn .chan .chinh:disabled { background: #98a2b3; cursor: not-allowed; }
.hcxn .thanh-mau { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #dfe4eb; border-radius: 10px; padding: 8px 10px; flex: none; }
.hcxn .thanh-mau .hc-cbo { width: 380px; height: 34px; border: 1px solid #d0d5dd; border-radius: 8px; }
.hcxn .thanh-mau .nhan-o { background: #e3eaf3; color: #1f2a44; font-weight: 600; border-radius: 6px; height: 34px; display: flex; align-items: center; padding: 0 12px; }
.hcxn .thanh-mau .noi { margin-left: auto; display: flex; gap: 8px; align-items: center; color: #475467; }
.hcxn .chipdk { display: inline-flex; align-items: center; gap: 5px; background: #eef4ff; color: #1d4ed8; border-radius: 6px; height: 28px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
.hcxn .nut-nho { height: 30px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 0 10px; display: inline-flex; gap: 5px; align-items: center; cursor: pointer; font-weight: 600; color: #344054; white-space: nowrap; }
.hcxn .hc-area.f { --cols: 12; gap: 6px 8px; grid-auto-rows: minmax(32px, auto); margin-bottom: 4px; }
.hcxn .f > .s2 { grid-column: span 2; }
.hcxn .f > .s4 { grid-column: span 4; }
.hcxn .f > .s6 { grid-column: span 6; }
.hcxn .f > .s8 { grid-column: span 8; }
.hcxn .f > .s10 { grid-column: span 10; }
.hcxn .f > .s12 { grid-column: span 12; }
.hcxn .f > .hc-label { display: flex; align-items: center; }
.hcxn .f input.hc-ctl, .hcxn .f textarea.hc-ctl { outline: 0; }
.hcxn .f textarea.hc-ctl { padding: 6px 10px; line-height: 1.45; resize: vertical; }
.hcxn .f > .hc-groupbox { display: flex; align-items: center; gap: 8px; }
.hcxn .tron-ic { width: 20px; height: 20px; border-radius: 50%; background: #1e3a8a; color: #fff; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.hcxn .o-trong { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; border: 0 !important; background: none !important; padding: 0 !important; }
.hcxn .goi-y { font-size: 11.5px; color: #98a2b3; margin-left: auto; }
.hcxn .chip { height: 30px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 0 10px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: #344054; white-space: nowrap; }
.hcxn .chip.on { background: var(--xanh); border-color: var(--xanh); color: #fff; font-weight: 600; }
.hcxn .ray { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 0; cursor: pointer; color: #344054; white-space: nowrap; }
.hcxn .ray b { width: 32px; height: 18px; border-radius: 9px; background: #d0d5dd; position: relative; transition: .15s; flex: none; }
.hcxn .ray b::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .15s; }
.hcxn .ray.on b { background: #6d28d9; }
.hcxn .ray.on b::after { left: 16px; }
.hcxn .ray:disabled { opacity: .4; cursor: not-allowed; }
.hcxn .o-anh { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hcxn .o-anh img { height: 56px; border-radius: 6px; border: 1px solid #e4e7ec; cursor: pointer; }
.hcxn .o-anh .them { height: 56px; width: 76px; border: 1px dashed #98a2b3; border-radius: 6px; display: grid; place-items: center; color: #667085; cursor: pointer; background: #fff; }
.hcxn .dong-tep { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; width: 100%; }
.hcxn .dong-tep i.f { color: #d92d20; font-size: 18px; }
.hcxn .dong-tep span { flex: 1; }
.hcxn .dong-tep small { color: #667085; }
.hcxn .dong-tep .x { color: #98a2b3; cursor: pointer; }
.hcxn .bdau { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; }
.hcxn .bdau b { font-size: 13.5px; color: #1f2a44; }
.hcxn .bdau small { color: #667085; }
.hcxn .bdau .them { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--xanh); color: #fff; display: grid; place-items: center; font-size: 17px; cursor: pointer; }
.hcxn .bang { width: 100%; border-collapse: separate; border-spacing: 0 5px; table-layout: fixed; margin-top: -5px; }
.hcxn .bang th { background: #e3eaf3; height: 34px; font-size: 13px; font-weight: 700; color: #1f2a44; text-align: center; padding: 0 6px; white-space: nowrap; }
.hcxn .bang th:first-child { border-radius: 8px 0 0 8px; }
.hcxn .bang th:last-child { border-radius: 0 8px 8px 0; }
.hcxn .bang td { border-top: 1px solid #e4e7ec; border-bottom: 1px solid #e4e7ec; height: 40px; padding: 0 6px; background: #fff; }
.hcxn .bang td:first-child { border-left: 1px solid #e4e7ec; border-radius: 8px 0 0 8px; }
.hcxn .bang td:last-child { border-right: 1px solid #e4e7ec; border-radius: 0 8px 8px 0; }
.hcxn .bang td.gc { text-align: center; }
.hcxn .bang input { width: 100%; height: 30px; border: 1px solid #d0d5dd; border-radius: 6px; padding: 0 8px; outline: 0; }
.hcxn .bang input:focus { border-color: #84adff; box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .bang .keo { color: #98a2b3; cursor: grab; }
.hcxn .bang .xoa { color: #98a2b3; cursor: pointer; font-size: 16px; }
.hcxn .bang .xoa:hover { color: #d92d20; }
.hcxn .bang .rong td { text-align: center; color: #98a2b3; font-style: italic; border-style: dashed; }
.hcxn .loi { color: #d92d20; font-size: 12.5px; display: flex; gap: 5px; align-items: center; margin: 2px 0 6px; }
.hcxn .mau3 { display: inline-flex; gap: 5px; }
.hcxn .mau3 button { width: 26px; height: 26px; border-radius: 7px; cursor: pointer; padding: 0; display: grid; place-items: center; font-size: 13px; }
.hcxn .mau3 .m-xanh { background: #16a34a; border: 1px solid #16a34a; color: #fff; }
.hcxn .mau3 .m-do { background: #fff; border: 1.5px solid #fda29b; color: #b42318; }
.hcxn .mau3 .m-phu { background: #fff; border: 1.5px solid #b2ccff; color: #1d4ed8; }
.hcxn .mau3 button.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #101828; }
.hcxn .tg { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed #98a2b3; background: #fff; cursor: pointer; display: inline-grid; place-items: center; padding: 0; color: transparent; font-size: 15px; }
.hcxn .tg.on { border: 0; background: #6d28d9; color: #fff; }
.hcxn .tg:disabled { opacity: .3; cursor: not-allowed; }
.hcxn .km-day { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.hcxn .km { width: 138px; border: 1.5px solid #d0d5dd; border-radius: 10px; background: #fff; padding: 5px; cursor: pointer; text-align: center; color: #344054; font-size: 12.5px; }
.hcxn .km.on { border-color: var(--xanh); box-shadow: 0 0 0 3px #dbe5fd; color: var(--xanh); font-weight: 600; }
.hcxn .km .mini { height: 66px; border-radius: 6px; border: 1px solid #eef1f5; overflow: hidden; display: flex; flex-direction: column; margin-bottom: 4px; }
.hcxn .km .mini .h { height: 30px; flex: none; position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid #eef1f5; }
.hcxn .km .mini .t { flex: 1; position: relative; }
.hcxn .km .mini .t::after { content: ""; position: absolute; left: 8px; top: 8px; width: 70%; height: 5px; border-radius: 3px; background: #cbd5e144; box-shadow: 0 9px 0 #cbd5e144; }
.hcxn .km.tuy .mini { display: grid; place-items: center; color: #667085; font-size: 22px; border-style: dashed; }
.hcxn .dang4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.hcxn .dang { border: 1.5px solid #d0d5dd; border-radius: 10px; background: #fff; padding: 6px; cursor: pointer; text-align: center; color: #344054; }
.hcxn .dang.on { border-color: var(--xanh); box-shadow: 0 0 0 3px #dbe5fd; color: var(--xanh); font-weight: 600; }
.hcxn .dang.tat { opacity: .4; cursor: not-allowed; }
.hcxn .dang .h { height: 40px; border-radius: 6px; border: 1px solid #eef1f5; margin-bottom: 4px; position: relative; overflow: hidden; background: #fff; }
.hcxn .h-gon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--m); }
.hcxn .h-gon::after { content: ""; position: absolute; left: 10px; top: 9px; width: 60%; height: 6px; border-radius: 4px; background: var(--m); box-shadow: 0 9px 0 -1px #cbd5e1; }
.hcxn .h-bang { background: var(--m) !important; }
.hcxn .h-bang::after { content: ""; position: absolute; left: 10px; top: 9px; width: 60%; height: 6px; border-radius: 4px; background: rgba(255,255,255,.85); box-shadow: 0 9px 0 -1px rgba(255,255,255,.5); }
.hcxn .h-lich::before { content: ""; position: absolute; left: 8px; top: 3px; width: 20px; height: 24px; border-radius: 4px; background: #fff; border: 1.5px solid var(--m); box-shadow: inset 0 7px 0 var(--m); }
.hcxn .h-lich::after { content: ""; position: absolute; left: 36px; top: 8px; width: 50%; height: 6px; border-radius: 4px; background: #cbd5e1; box-shadow: 0 9px 0 -1px #e4e7ec; }
.hcxn .h-bia { background: linear-gradient(135deg, #03045e, #698cd5) !important; }
.hcxn .h-bia::after { content: ""; position: absolute; right: 8px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #f25a1a; box-shadow: -50px 12px 0 -2px rgba(255,255,255,.75); }
.hcxn .sw { width: 26px; height: 26px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; }
.hcxn .sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #101828; }
.hcxn .ic-o { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e4e7ec; background: #fff; display: grid; place-items: center; font-size: 18px; color: #475467; cursor: pointer; padding: 0; }
.hcxn .ic-o.on { background: var(--m); border-color: var(--m); color: #fff; }
.hcxn .nen-o { width: 64px; height: 40px; border-radius: 8px; border: 1.5px solid #d0d5dd; cursor: pointer; font-size: 11px; color: #475467; display: grid; place-items: end center; padding: 0 0 2px; }
.hcxn .nen-o.on { border-color: var(--xanh); box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .tuy-mo { border: 0; background: none; color: var(--xanh); font-weight: 600; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; padding: 0; }
.hcxn .xem { background: #eef0f4; border-radius: 8px; padding: 14px; flex: 1; overflow: auto; }
.hcxn .xem-ai { text-align: center; font-size: 11.5px; color: #667085; margin-bottom: 4px; }
.hcxn .xem-ai b { color: #344054; font-weight: 600; }
.hcxn .xn-the { background: #fff; border: 1px solid #dfe4eb; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,.06); max-width: 560px; margin: 0 auto; }
.hcxn .nhan { font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--m) 14%, #fff); color: var(--m); white-space: nowrap; }
.hcxn .d-gon { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #eef1f5; position: relative; background: #fff; }
.hcxn .d-gon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--m); }
.hcxn .d-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--m); flex: none; }
.hcxn .d-g { flex: 1; min-width: 0; }
.hcxn .d-g b { display: block; font-size: 15.5px; line-height: 1.3; }
.hcxn .d-g small { color: #667085; display: block; }
.hcxn .d-bang { background: var(--m); color: #fff; padding: 16px 18px 14px; position: relative; overflow: hidden; }
.hcxn .d-bang::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.hcxn .d-bang .nhan { background: rgba(255,255,255,.2); color: #fff; }
.hcxn .d-bang .d-ic { background: rgba(255,255,255,.18); width: 30px; height: 30px; font-size: 17px; }
.hcxn .d-bang b { display: block; font-size: 20px; line-height: 1.25; margin: 8px 0 3px; }
.hcxn .d-bang small { opacity: .85; font-size: 13px; display: block; }
.hcxn .d-lich { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eef1f5; background: color-mix(in srgb, var(--m) 5%, #fff); }
.hcxn .tolich { width: 64px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--m) 40%, #fff); text-align: center; background: #fff; box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.hcxn .tolich div { background: var(--m); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 0; letter-spacing: .04em; }
.hcxn .tolich b { display: block; font-size: 26px; line-height: 1.15; color: #101828; }
.hcxn .tolich span { display: block; font-size: 10.5px; color: #667085; padding-bottom: 3px; font-weight: 600; }
.hcxn .d-bia { position: relative; height: 170px; background: radial-gradient(circle at 82% 22%, rgba(255,255,255,.28) 0 38px, transparent 39px), radial-gradient(circle at 70% 70%, rgba(255,255,255,.14) 0 64px, transparent 65px), radial-gradient(circle at 12% 30%, rgba(255,255,255,.12) 0 26px, transparent 27px), linear-gradient(135deg, var(--m), #1e1b4b); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px; }
.hcxn .d-bia::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72)); }
.hcxn .d-bia > * { position: relative; }
.hcxn .d-bia .nhan { position: absolute; top: 12px; left: 14px; background: rgba(255,255,255,.92); }
.hcxn .d-bia b { font-size: 20px; line-height: 1.25; display: block; }
.hcxn .d-bia small { opacity: .9; display: block; }
.hcxn .than { padding: 12px 14px; }
.hcxn .than p { margin: 0 0 8px; }
.hcxn .than p:last-child { margin-bottom: 0; }
.hcxn .than ul { margin: 0 0 8px; padding-left: 20px; }
.hcxn .than:empty { display: none; }
.hcxn .nen-nhat { background: color-mix(in srgb, var(--m) 6%, #fff); }
.hcxn .nen-tet { background-color: #fff8f0; background-image: radial-gradient(#f59e0b40 1.6px, transparent 1.8px), radial-gradient(#dc262622 1.6px, transparent 1.8px); background-size: 18px 18px, 18px 18px; background-position: 0 0, 9px 9px; }
.hcxn .nen-hoa { background-color: #fff5f8; background-image: radial-gradient(circle at 20% 30%, #f9a8d455 0 10px, transparent 11px), radial-gradient(circle at 75% 70%, #fbcfe855 0 14px, transparent 15px); background-size: 70px 60px; }
.hcxn .nen-phao { background: radial-gradient(circle at 15% 25%, #fbbf2466 0 2px, transparent 3px), radial-gradient(circle at 70% 15%, #f472b666 0 2px, transparent 3px), radial-gradient(circle at 85% 60%, #60a5fa66 0 2px, transparent 3px), #0f172a; background-size: 90px 80px, 110px 90px, 70px 70px, auto; color: #f8fafc; }
.hcxn .nen-anh { background: linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)), url("../../../HCC.BusinessCore.Web/wwwroot/kehoach/app-plx-ha-tinh/anh-dai-dien.jpg") center/cover; }
.hcxn .anh-than { display: grid; gap: 6px; margin: 0 0 8px; }
.hcxn .anh-than img { display: block; width: 100%; border-radius: 8px; border: 1px solid #e4e7ec; }
.hcxn .bang-tt { display: grid; grid-template-columns: 92px 1fr; border: 1px solid #e4e7ec; border-radius: 8px; overflow: hidden; margin: 0 0 8px; background: rgba(255,255,255,.7); }
.hcxn .bang-tt span { padding: 6px 10px; border-top: 1px solid #eef1f5; }
.hcxn .bang-tt span:nth-child(-n+2) { border-top: 0; }
.hcxn .bang-tt span:nth-child(odd) { background: color-mix(in srgb, var(--m) 8%, #f8fafc); color: #475467; font-weight: 600; }
.hcxn .nen-phao .bang-tt { background: rgba(255,255,255,.08); border-color: #334155; }
.hcxn .nen-phao .bang-tt span:nth-child(odd) { background: rgba(255,255,255,.08); color: #e2e8f0; }
.hcxn .nen-phao .bang-tt span { border-color: #334155; }
.hcxn .dem-nguoc { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--m) 10%, #fff); color: var(--m); font-weight: 700; }
.hcxn .dem-nguoc .so { display: flex; gap: 6px; margin-left: auto; }
.hcxn .dem-nguoc .so span { background: #fff; border-radius: 6px; padding: 2px 8px; color: #101828; text-align: center; min-width: 44px; font-size: 16px; line-height: 1.1; }
.hcxn .dem-nguoc .so small { display: block; font-size: 10px; color: #667085; font-weight: 600; }
.hcxn .tep-o { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid #e4e7ec; border-radius: 8px; margin: 0 0 6px; background: #fff; color: #101828; }
.hcxn .tep-o i { color: #d92d20; font-size: 20px; }
.hcxn .tep-o span { flex: 1; font-weight: 600; }
.hcxn .tep-o small { color: #667085; }
.hcxn .lien-ket { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.hcxn .lien-ket a { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--m) 50%, #fff); color: var(--m); background: #fff; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; cursor: pointer; }
.hcxn .tl { padding: 10px 14px 12px; border-top: 1px solid #eef1f5; background: #fff; }
.hcxn .tl-hoi { font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; }
.hcxn .tl-hoi small { margin-left: auto; color: #667085; font-weight: 400; font-size: 11.5px; white-space: nowrap; }
.hcxn .pc-chon { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 9px 10px; border: 1px solid #e4e7ec; border-radius: 8px; margin-bottom: 5px; cursor: pointer; }
.hcxn .pc-chon:hover { border-color: #b2ccff; }
.hcxn .pc-chon.on { background: #eef4ff; border-color: #84adff; font-weight: 600; }
.hcxn .pc-chon .o { width: 18px; height: 18px; flex: none; border: 2px solid #98a2b3; border-radius: 50%; margin-top: 1px; display: grid; place-items: center; color: #fff; font-size: 12px; }
.hcxn .pc-chon .o.vuong { border-radius: 4px; }
.hcxn .pc-chon.on .o { border-color: var(--xanh); }
.hcxn .pc-chon.on .o:not(.vuong)::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--xanh); }
.hcxn .pc-chon.on .o.vuong { background: var(--xanh); }
.hcxn .tl.khoa .pc-chon { cursor: default; }
.hcxn .tl.khoa .pc-chon:not(.on) { opacity: .55; }
.hcxn .pc-nhap { font-size: 12px; color: #667085; font-style: italic; margin: 2px 0 6px; display: flex; gap: 4px; align-items: center; }
.hcxn .pc-nut { display: grid; gap: 6px; margin-top: 6px; }
.hcxn .pn { height: 36px; border-radius: 8px; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 8px; }
.hcxn .pn.xanh { background: #16a34a; border: 0; color: #fff; }
.hcxn .pn.do { background: #fff; border: 1px solid #fda29b; color: #b42318; }
.hcxn .pn.phu { background: #fff; border: 1px solid #b2ccff; color: #1d4ed8; }
.hcxn .pn:disabled { opacity: .4; cursor: not-allowed; }
.hcxn .pc-lydo { margin-top: 8px; border: 1px solid #fda29b; background: #fffbfa; border-radius: 8px; padding: 8px; }
.hcxn .pc-lydo textarea { width: 100%; border: 1px solid #d0d5dd; border-radius: 6px; padding: 6px 8px; resize: none; outline: 0; }
.hcxn .pc-lydo div { display: flex; gap: 6px; margin-top: 6px; }
.hcxn .pc-lydo button { height: 32px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.hcxn .pc-lydo .h { border: 1px solid #d0d5dd; background: #fff; min-width: 70px; }
.hcxn .pc-lydo .g { flex: 1; border: 0; background: #d92d20; color: #fff; }
.hcxn .xb-da { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 1px solid #abefc6; background: #f6fef9; border-radius: 8px; margin-top: 6px; }
.hcxn .xb-da .ok { width: 24px; height: 24px; border-radius: 50%; background: #6d28d9; color: #fff; display: grid; place-items: center; flex: none; }
.hcxn .xb-da .g { flex: 1; min-width: 0; }
.hcxn .xb-da small { color: #667085; }
.hcxn .xb-da a { color: var(--xanh); font-weight: 600; cursor: pointer; }
.hcxn .tl-han { margin-top: 8px; font-size: 11.5px; color: #667085; display: flex; gap: 4px; align-items: center; }
.hcxn .xem-lai { display: block; margin: 10px auto 0; border: 0; background: none; color: var(--xanh); font-weight: 600; cursor: pointer; }
.hcxn .c-giua { background: #eef0f4; border-radius: 10px; overflow: auto; padding: 18px; }
.hcxn .xn-the.sua { max-width: 600px; }
.hcxn .sua input.e, .hcxn .sua textarea.e { width: 100%; border: 1px dashed transparent; background: transparent; border-radius: 6px; padding: 2px 6px; margin: -3px -7px; color: inherit; outline: 0; resize: none; display: block; }
.hcxn .sua input.e:hover, .hcxn .sua textarea.e:hover { border-color: #98a2b3; }
.hcxn .sua input.e:focus, .hcxn .sua textarea.e:focus { border-color: #84adff; background: rgba(255,255,255,.9); color: #101828; }
.hcxn .sua input.e.td { font-weight: 700; font-size: inherit; }
.hcxn .sua .e::placeholder { color: #98a2b3; font-style: italic; }
.hcxn .sua .pc-chon input.e { margin: -3px 0; }
.hcxn .sua .pn input { width: 100%; border: 0; background: transparent; color: inherit; font-weight: 700; text-align: center; outline: 0; }
.hcxn .them-c { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px 12px; border-top: 1px dashed #d0d5dd; background: #fafbfc; }
.hcxn .them-c button { height: 28px; border: 1px dashed #98a2b3; border-radius: 8px; background: #fff; color: #475467; display: inline-flex; gap: 4px; align-items: center; padding: 0 10px; cursor: pointer; font-size: 12.5px; }
.hcxn .them-c button:hover { border-color: var(--xanh); color: var(--xanh); }
.hcxn .xoa-c { color: #98a2b3; cursor: pointer; margin-left: 4px; }
.hcxn .xoa-c:hover { color: #d92d20; }
.hcxn .phan-p { border: 1px solid #e4e7ec; border-radius: 10px; margin-bottom: 8px; overflow: hidden; }
.hcxn .phan-p > b { display: flex; align-items: center; gap: 6px; background: #e3eaf3; color: #1f2a44; padding: 7px 10px; font-size: 13.5px; }
.hcxn .phan-p > div { padding: 8px 10px; display: flex; flex-direction: column; gap: 8px; }
.hcxn .dong-p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hcxn .dong-p > span:first-child { width: 78px; color: #475467; font-weight: 600; flex: none; }
.hcxn .phan-p .km { width: 120px; }
.hcxn .hc-cbo-menu.hien { display: block; }
.hcxn .cbo-nhom { padding: 6px 10px 2px; font-size: 11px; font-weight: 700; color: #667085; text-transform: uppercase; letter-spacing: .04em; }
.hcxn .hop { width: 1360px; }
.hcxn .c-giua { flex: 1; min-height: 0; background: #eef0f4; border-radius: 10px; overflow: auto; padding: 18px 18px 40px; position: relative; }
.hcxn .c-giua .xn-the { max-width: 600px; margin: 0 auto 0 max(110px, calc(50% - 470px)); }
.hcxn .c-giua .xem-ai { width: 600px; margin-left: max(110px, calc(50% - 470px)); }
.hcxn .r-trai.chon { outline-offset: -2px; }
.hcxn .xn-the.sua { overflow: visible; }
.hcxn .xn-the.sua > .ph:first-child > * { border-radius: 12px 12px 0 0; }
.hcxn .ph { position: relative; }
.hcxn .than .ph + .ph { margin-top: 8px; }
.hcxn .tl .ph + .ph { margin-top: 8px; }
.hcxn .d-bia .d-ic { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; font-size: 17px; background: rgba(255,255,255,.2); }
.hcxn .sua [data-k] { position: relative; }
.hcxn .sua .bang-tt, .hcxn .sua .pn { overflow: visible; }
.hcxn .but { position: absolute; z-index: 3; top: -12px; right: -12px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #b2ccff; background: #fff; color: var(--xanh);
         display: none; place-items: center; padding: 0; cursor: pointer; font-size: 15px; box-shadow: 0 2px 6px rgba(16,24,40,.15); }
.hcxn .but:hover { background: var(--xanh); border-color: var(--xanh); color: #fff; }
.hcxn [data-k]:hover > .but, .hcxn [data-k]:focus-within > .but, .hcxn [data-k].chon > .but, .hcxn [data-k].ro > .but { display: grid; }
.hcxn .o-sua.ro { outline-color: #b2ccff; }
.hcxn .pn > .but { top: -13px; right: -10px; }
.hcxn .sua .ph[data-k="dau"]:hover, .hcxn .sua .ph[data-k="dau"]:focus-within, .hcxn .sua .ph[data-k="dau"].chon { outline: 1.5px dashed #84adff; outline-offset: 3px; border-radius: 12px 12px 0 0; }
.hcxn .r-doan, .hcxn .r-tren { border-radius: 6px; }
.hcxn .r-doan p { margin: 0 0 6px; }
.hcxn .r-doan p:last-child { margin: 0; }
.hcxn .r-doan ul { margin: 0 0 6px; padding-left: 20px; }
.hcxn .r-tren .r-ten { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--m) 70%, #344054); margin-bottom: 2px; }
.hcxn .bang-tt { display: block; }
.hcxn .r-trai { display: grid; grid-template-columns: 124px 1fr; border-top: 1px solid #eef1f5; }
.hcxn .r-trai:first-child { border-top: 0; }
.hcxn .r-trai > span { padding: 6px 10px; min-width: 0; }
.hcxn .r-trai .r-ten { background: color-mix(in srgb, var(--m) 8%, #f8fafc); color: #475467; font-weight: 600; }
.hcxn .ph .bang-tt span:nth-child(odd) { background: none; }
.hcxn .ph .bang-tt .r-trai .r-ten { background: color-mix(in srgb, var(--m) 8%, #f8fafc); }
.hcxn .ph .bang-tt span { border-top: 0; }
.hcxn .r-gt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hcxn .r-doan .r-gt, .hcxn .r-tren .r-gt, .hcxn .r-trai .r-gt { display: block; }
.hcxn .than .r-trai .r-gt p, .hcxn .than .r-tren .r-gt p { margin: 0; }
.hcxn .than .ph .bang-tt + .r-tren, .hcxn .than .ph .r-tren + .bang-tt, .hcxn .than .ph .r-tren + .r-doan, .hcxn .than .ph .r-doan + .bang-tt { margin-top: 8px; }
.hcxn .o-sua { outline: 1.5px dashed transparent; outline-offset: 2px; }
.hcxn .o-sua:hover { outline-color: #b2ccff; }
.hcxn .o-sua.chon { outline: 2px solid var(--xanh); outline-offset: 2px; position: relative; z-index: 1; }
.hcxn .gan { color: var(--m); font-size: 15px; margin-left: auto; }
.hcxn .sua .r-trai input.e, .hcxn .sua .r-tren input.e { margin: -3px -6px; }
.hcxn .pk { display: inline-flex; align-items: center; gap: 3px; height: 26px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; padding: 0 6px; color: #475467; }
.hcxn .pk i { font-size: 14px; color: #667085; }
.hcxn .pk input { border: 0; outline: 0; width: 82px; padding: 0; color: #101828; background: transparent; }
.hcxn .pk.gio input { width: 40px; }
.hcxn .pk.so input { width: 110px; text-align: right; }
.hcxn .pk:focus-within { border-color: #84adff; box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .thu { color: #667085; font-size: 12.5px; }
.hcxn .fo { display: grid; gap: 6px; border-radius: 8px; }
.hcxn .fo + .fo { margin-top: 6px; }
.hcxn .fo-trai { grid-template-columns: 124px minmax(0, 1fr); align-items: start; }
.hcxn .fo-tren .fo-ten { width: 124px; }
.hcxn .fo-ten { display: flex; align-items: center; min-height: 32px; background: #e3eaf3; border-radius: 6px; }
.hcxn .fo-ten input { width: 100%; height: 32px; border: 0; background: transparent; outline: 0; padding: 0 10px; font-weight: 700; color: #1f2a44; border-radius: 6px; }
.hcxn .fo-ten input:focus { box-shadow: inset 0 0 0 1.5px #84adff; }
.hcxn .fo-gt { display: flex; gap: 6px; align-items: flex-start; min-width: 0; }
.hcxn .fi { height: 32px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 0 10px; outline: 0; color: #101828; flex: 1; min-width: 0; }
.hcxn .fi:focus, .hcxn .fi:focus-within { border-color: #84adff; box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn input.fi::placeholder { color: #98a2b3; font-style: italic; }
.hcxn .fi.pk { flex: 1; display: flex; align-items: center; gap: 6px; padding: 0 10px; color: #475467; }
.hcxn .fi.pk input { flex: 1; width: auto; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0; background: transparent; color: #101828; }
.hcxn .fi.pk.gio { flex: 0 0 88px; }
.hcxn .fi.pk.so { flex: 0 0 160px; }
.hcxn .fi.pk.so input { text-align: right; }
.hcxn .fi.pk .thu { margin-left: auto; white-space: nowrap; }
.hcxn .fi-gach { display: flex; align-items: center; height: 32px; color: #667085; }
.hcxn .fi-ic { flex: 0 0 32px; padding: 0; display: grid; place-items: center; color: var(--m); background: color-mix(in srgb, var(--m) 8%, #fff); font-size: 16px; }
.hcxn .fi.rt { height: auto; min-height: 32px; padding: 5px 10px; line-height: 20px; }
.hcxn .fi.rt div { min-height: 20px; }
.hcxn .fi.rt p { margin: 0 0 4px; }
.hcxn .fi.rt p:last-child { margin: 0; }
.hcxn .fi.rt ul { margin: 0 0 4px; padding-left: 20px; }
.hcxn .fi.rt:empty::before { content: attr(data-ph); color: #98a2b3; font-style: italic; }
.hcxn .fo.o-sua { outline-offset: 3px; }
.hcxn .thanh-chu { position: fixed; z-index: 90; display: none; gap: 2px; padding: 3px; background: #1f2937; border-radius: 8px; box-shadow: 0 6px 16px rgba(16,24,40,.25); }
.hcxn .thanh-chu.hien { display: flex; }
.hcxn .thanh-chu button { width: 30px; height: 28px; border: 0; border-radius: 6px; background: none; color: #e5e7eb; cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.hcxn .thanh-chu button:hover { background: #374151; color: #fff; }
.hcxn .thanh-chu i.vach { width: 1px; background: #4b5563; margin: 4px 2px; }
.hcxn .anh-than { margin: 0; }
.hcxn .anh-than.hai { grid-template-columns: 1fr 1fr; }
.hcxn .anh-o { position: relative; }
.hcxn .anh-x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16,24,40,.65); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 15px; }
.hcxn .anh-x:hover { background: #d92d20; }
.hcxn .dem-nguoc, .hcxn .tep-o:last-child, .hcxn .anh-than { margin-bottom: 0; }
.hcxn .sua .dem-nguoc.chon { outline: 2px solid var(--xanh); outline-offset: 2px; }
.hcxn .tep-o .x { color: #98a2b3 !important; cursor: pointer; font-size: 16px !important; }
.hcxn .tep-o .x:hover { color: #d92d20 !important; }
.hcxn .lien-ket { margin-top: 0; }
.hcxn .sua .lien-ket a.chon { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--xanh); }
.hcxn .rong-o { border: 1px dashed #98a2b3; border-radius: 8px; padding: 10px; text-align: center; color: #667085; cursor: pointer; }
.hcxn .rong-o:hover { border-color: var(--xanh); color: var(--xanh); }
.hcxn .tl-cach { font-size: 12px; color: #667085; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.hcxn .sua .tl-chon { border-radius: 8px; outline: 1.5px dashed transparent; outline-offset: 3px; }
.hcxn .sua .tl-chon:hover { outline-color: #b2ccff; }
.hcxn .sua .tl-chon.chon { outline: 2px solid var(--xanh); }
.hcxn .sua .pn.chon { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #101828; }
.hcxn .thieu { border: 1.5px dashed #f04438; background: #fef3f2; color: #b42318; border-radius: 8px; padding: 9px 10px; display: flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 600; }
.hcxn .them-c { border-radius: 0 0 12px 12px; }
.hcxn .them-c button:disabled { opacity: .4; cursor: not-allowed; border-color: #d0d5dd; color: #98a2b3; }
.hcxn .pop { position: fixed; z-index: 80; width: 360px; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 12px 32px rgba(16,24,40,.2); }
.hcxn .pop::before { content: ""; position: absolute; left: -7px; top: var(--y, 16px); width: 12px; height: 12px; background: #fff; border-left: 1px solid #d0d5dd; border-bottom: 1px solid #d0d5dd; transform: rotate(45deg); }
.hcxn .pop.duoi::before { display: none; }
.hcxn .pop-dau { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 12px; border-bottom: 2px solid var(--xanh); }
.hcxn .pop-dau > i { color: var(--xanh); font-size: 18px; }
.hcxn .pop-dau b { font-size: 14px; flex: 1; }
.hcxn .pop-dau button { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: #667085; font-size: 17px; display: grid; place-items: center; }
.hcxn .pop-dau button:hover { background: #f2f4f7; }
.hcxn .pop-than { padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; max-height: 62vh; overflow: auto; }
.hcxn .pr { display: flex; gap: 8px; align-items: flex-start; }
.hcxn .pr > span { width: 78px; flex: none; color: #475467; font-weight: 600; font-size: 12.5px; padding-top: 6px; }
.hcxn .pr > div { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.hcxn .pr.doc { flex-direction: column; gap: 5px; }
.hcxn .pr.doc > span { width: auto; padding: 0; }
.hcxn .seg { display: flex; flex-wrap: wrap; gap: 4px; }
.hcxn .seg button { height: 30px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 0 10px; cursor: pointer; color: #344054; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.hcxn .seg button:hover { border-color: #84adff; }
.hcxn .seg button.on { background: var(--xanh); border-color: var(--xanh); color: #fff; font-weight: 600; }
.hcxn .seg button:disabled { color: #c0c5cf; cursor: not-allowed; background: #fafbfc; }
.hcxn .nhanh { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; width: 100%; }
.hcxn .nhanh button { height: 34px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #344054; text-align: left; }
.hcxn .nhanh button i { color: var(--xanh); font-size: 16px; }
.hcxn .nhanh button.on { background: #eef4ff; border-color: #84adff; font-weight: 600; color: #1d4ed8; }
.hcxn .pop-chan { display: flex; gap: 6px; padding: 8px 12px; border-top: 1px solid #eef1f5; background: #fafbfc; border-radius: 0 0 10px 10px; }
.hcxn .pop-chan button { height: 30px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 0 10px; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; color: #344054; font-weight: 600; }
.hcxn .pop-chan button:disabled { opacity: .4; cursor: not-allowed; }
.hcxn .pop-chan .xoa-n { margin-left: auto; color: #b42318; border-color: #fda29b; }
.hcxn .pop-ds { display: flex; flex-direction: column; width: 100%; }
.hcxn .pop-ds button { width: 100%; display: flex; align-items: center; gap: 8px; height: 34px; border: 0; background: none; border-radius: 6px; cursor: pointer; padding: 0 8px; text-align: left; color: #101828; }
.hcxn .pop-ds button:hover { background: #f2f4f7; }
.hcxn .pop-ds button.on { background: #eef4ff; color: #1d4ed8; font-weight: 600; }
.hcxn .pop-ds button i { color: var(--xanh); font-size: 17px; width: 20px; }
.hcxn .pop-ds small { margin-left: auto; color: #98a2b3; }
.hcxn .pop input.hc-ctl { width: 100%; height: 32px; outline: 0; }
.hcxn .pop .km { width: 100px; }
.hcxn .pop .km .mini { height: 52px; }
.hcxn .pop .km .mini .h { height: 24px; }
.hcxn .pop .dang4 { gap: 5px; }
.hcxn .pop .dang .h { height: 32px; }
.hcxn .pop .dang { font-size: 12px; padding: 4px; }
.hcxn .pop .nen-o { width: 54px; }
.hcxn .goi { font-size: 12px; color: #667085; }
.hcxn .ot-nhom { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hcxn .ot-ten { font-size: 12px; font-weight: 700; color: #475467; }
.hcxn .ot-hai { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; }
.hcxn .ot { display: grid; gap: 5px; }
.hcxn .ot button { height: 50px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 4px; color: #344054; font-size: 12px; line-height: 1.15; text-align: center; min-width: 0; }
.hcxn .ot button i { font-size: 18px; color: #667085; }
.hcxn .ot button:hover { border-color: #84adff; }
.hcxn .ot button.on { background: #eef4ff; border-color: var(--xanh); color: #1d4ed8; font-weight: 600; box-shadow: inset 0 0 0 1px var(--xanh); }
.hcxn .ot button.on i { color: var(--xanh); }
.hcxn .ot button:disabled { opacity: .35; cursor: not-allowed; border-color: #e4e7ec; }
.hcxn .ot span { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.hcxn .soanxem { display: inline-flex; border: 1px solid #d0d5dd; border-radius: 8px; overflow: hidden; }
.hcxn .soanxem button { height: 30px; border: 0; background: #fff; padding: 0 12px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; color: #344054; font-weight: 600; }
.hcxn .soanxem button.on { background: var(--xanh); color: #fff; }
.hcxn .chan .tuy { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; justify-content: flex-start; }
.hcxn .chan .tuy.chon { border-color: var(--xanh); box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .hop { flex-direction: row; }
.hcxn .trai { width: 236px; flex: none; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; }
.hcxn .tr-khoi { background: #fff; border: 1px solid #dfe4eb; border-radius: 10px; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.hcxn .tr-dau { display: flex; align-items: center; gap: 7px; height: 30px; padding-bottom: 4px; margin-bottom: 2px; border-bottom: 2px solid var(--xanh); font-size: 14px; font-weight: 700; color: #1f2a44; }
.hcxn .tr-dau > i { color: var(--xanh); font-size: 18px; }
.hcxn .tr-moi { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d0d5dd; background: #fff; color: #344054; display: grid; place-items: center; cursor: pointer; font-size: 16px; }
.hcxn .tr-moi:hover { border-color: var(--xanh); color: var(--xanh); }
.hcxn .trai .hc-cbo { width: 100%; height: 34px; border: 1px solid #d0d5dd; border-radius: 8px; }
.hcxn .tr-dong { height: 34px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; padding: 0 10px; display: flex; gap: 7px; align-items: center; cursor: pointer; font-weight: 600; color: #344054; white-space: nowrap; width: 100%; font-size: 13px; }
.hcxn .tr-dong > span { flex: 1; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.hcxn .tr-dong .mui { color: #98a2b3; }
.hcxn .tr-dong.tinh { background: #eef4ff; border-color: #eef4ff; color: #1d4ed8; cursor: default; }
.hcxn .tr-dong.chon { border-color: var(--xanh); box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .trai .soanxem { display: flex; width: 100%; flex: none; }
.hcxn .trai .soanxem button { flex: 1; height: 34px; justify-content: center; }
.hcxn .tr-them { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hcxn .tr-them button { height: 34px; border: 1px dashed #98a2b3; border-radius: 8px; background: #fff; color: #475467; display: flex; gap: 5px; align-items: center; padding: 0 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.hcxn .tr-them button:first-child { grid-column: span 2; }
.hcxn .tr-them button > i { font-size: 16px; }
.hcxn .tr-them button:hover:not(:disabled) { border-color: var(--xanh); color: var(--xanh); }
.hcxn .tr-them button:disabled { opacity: .4; cursor: not-allowed; }
.hcxn .tr-them button.chon { border-style: solid; border-color: var(--xanh); color: var(--xanh); box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .tr-chan { margin-top: auto; display: flex; gap: 6px; flex: none; }
.hcxn .tr-chan .phu { height: 38px; width: 64px; flex: none; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.hcxn .tr-chan .chinh { flex: 1; height: 38px; border: 0; border-radius: 8px; background: var(--xanh); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.hcxn .tr-chan .chinh:disabled { background: #98a2b3; cursor: not-allowed; }
.hcxn .c-giua .xn-the, .hcxn .c-giua .xem-ai { margin-left: 16px; }
.hcxn .d3 { position: relative; overflow: hidden; }
.hcxn .d3-hang { display: flex; gap: 14px; align-items: center; padding: 12px 16px; position: relative; }
.hcxn .d3-g { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; }
.hcxn .d3-nhan { font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--m); line-height: 1.2; }
.hcxn .d3-nhan input.e { text-transform: uppercase; font-weight: 800; letter-spacing: .07em; }
.hcxn .d3-td { font-size: 17px; line-height: 1.3; color: #101828; }
.hcxn .d3-gui { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #667085; }
.hcxn .d3-gui > i { font-size: 14px; flex: none; }
.hcxn .d3-gui input.e { margin-left: 0 !important; }
.hcxn .d3-gon { background: color-mix(in srgb, var(--m) 4%, #fff); border-bottom: 1px solid #eef1f5; }
.hcxn .d3-gon::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--m); z-index: 1; }
.hcxn .d3-bang { background: var(--m); }
.hcxn .d3-bang::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.09); pointer-events: none; }
.hcxn .d3-bang .d3-nhan, .hcxn .d3-bang .d3-td, .hcxn .d3-bang .d3-gui { color: #fff; }
.hcxn .d3-bang .d3-nhan { opacity: .85; }
.hcxn .d3-bang .d3-gui { opacity: .85; }
.hcxn .d3-bang .d-ic { background: rgba(255,255,255,.18); }
.hcxn .d3-bia .d3-bia { height: 120px; background: radial-gradient(circle at 82% 30%, rgba(255,255,255,.28) 0 34px, transparent 35px), radial-gradient(circle at 66% 76%, rgba(255,255,255,.14) 0 56px, transparent 57px), radial-gradient(circle at 12% 34%, rgba(255,255,255,.12) 0 24px, transparent 25px), linear-gradient(135deg, var(--m), #1e1b4b); }
.hcxn .d3-bia .d3-hang { background: color-mix(in srgb, var(--m) 5%, #fff); border-bottom: 1px solid #eef1f5; }
.hcxn .d3 .d-ic { width: 44px; height: 44px; border-radius: 12px; font-size: 24px; }
.hcxn .tolich.rong { border-style: dashed; border-color: #f04438; }
.hcxn .tolich.rong div { background: #fda29b; }
.hcxn .tolich.rong b { color: #b42318; }
.hcxn .tolich.rong span { font-size: 8.5px; color: #b42318; }
.hcxn .dem-nguoc.rong { background: #f9fafb; color: #667085; border: 1px dashed #d0d5dd; }
.hcxn .dem-nguoc .goi-dem { margin-left: auto; font-weight: 500; font-size: 12px; font-style: italic; }
.hcxn .pop.pop-o { width: 450px; }
.hcxn .pop-o .ot-nhom { flex-direction: row; align-items: flex-start; gap: 8px; }
.hcxn .pop-o .ot-ten { width: 58px; flex: none; line-height: 30px; white-space: nowrap; }
.hcxn .pop-o .ot { flex: 1; min-width: 0; }
.hcxn .pop-o .ot button { height: 30px; flex-direction: row; justify-content: flex-start; gap: 5px; padding: 0 8px; font-size: 12.5px; text-align: left; }
.hcxn .pop-o .ot button i { font-size: 15px; flex: none; }
.hcxn .pc-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.hcxn .pn { min-width: 108px; padding: 0 18px; }
.hcxn .sua .pn input { width: auto; }
.hcxn .hg-phu { position: fixed; inset: 0; background: rgba(16,24,40,.38); z-index: 95; }
.hcxn .hg-hop { position: fixed; z-index: 96; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 96vw; max-height: 88vh; min-width: 460px; min-height: 320px;
            background: #f5f6f8; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 16px 40px rgba(16,24,40,.28); display: flex; flex-direction: column; resize: both; overflow: hidden; }
.hcxn .hg-dau { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 14px; background: #fff; border-bottom: 2px solid var(--xanh); flex: none; }
.hcxn .hg-dau > i { color: var(--xanh); font-size: 19px; }
.hcxn .hg-dau b { flex: 1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcxn .hg-dau button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 18px; color: #667085; }
.hcxn .hg-dau button:hover { background: #f2f4f7; }
.hcxn .hg-than { flex: 1; min-height: 0; padding: 10px; display: flex; flex-direction: column; overflow: auto; }
.hcxn .hg-khung { background: #fff; border: 1px solid #dfe4eb; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; flex: 1; }
.hcxn .hg-2cot { display: grid; grid-template-columns: 440px 1fr; gap: 10px; flex: 1; min-height: 0; }
.hcxn .hg-f { margin: 0; }
.hcxn .f > .s3 { grid-column: span 3; }
.hcxn .f > .s9 { grid-column: span 9; }
.hcxn .hg-f .hc-ro, .hcxn .hg-f .hc-cbo { display: flex; align-items: center; min-width: 0; }
.hcxn .hg-f .hc-ro { gap: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcxn .hg-cbo-ic { color: var(--xanh); margin-right: 7px; font-size: 16px; }
.hcxn .hg-mo { color: #667085; font-weight: 400; margin-left: 4px; }
.hcxn .hg-gb { display: flex; align-items: center; gap: 7px; height: 30px; margin-top: 4px; border-bottom: 1px solid #d0d5dd; font-size: 13.5px; font-weight: 700; color: #1f2a44; flex: none; }
.hcxn .hg-gb > i { color: var(--xanh); font-size: 17px; }
.hcxn .hg-gb .dem { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--xanh); background: #e0eaff; border-radius: 999px; padding: 1px 10px; }
.hcxn .hg-cuon { overflow-y: auto; min-height: 0; flex: 1; }
.hcxn .hg-bang thead th { position: sticky; top: 0; z-index: 1; }
.hcxn .hg-bang td { height: 34px; }
.hcxn .hg-tim { display: flex; align-items: center; gap: 6px; height: 34px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 0 10px; flex: none; }
.hcxn .hg-tim i { color: #98a2b3; }
.hcxn .hg-tim input { border: 0; outline: 0; flex: 1; font-size: 13.5px; }
.hcxn .hg-ds { display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.hcxn .hg-the { display: flex; align-items: center; gap: 8px; height: 36px; flex: none; border: 1px solid #e4e7ec; border-radius: 8px; padding: 0 10px; cursor: pointer; color: #667085; background: #fff; }
.hcxn .hg-the.on { background: #eef4ff; border-color: #c7d7fe; color: #101828; }
.hcxn .hg-the .tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #98a2b3; display: grid; place-items: center; flex: none; background: #fff; }
.hcxn .hg-the.on .tick { background: var(--xanh); border-color: var(--xanh); color: #fff; font-size: 13px; }
.hcxn .hg-the .av { width: 26px; height: 26px; border-radius: 50%; background: #e3eaf3; color: #1f2a44; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.hcxn .hg-the b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcxn .hg-the:not(.on) b { font-weight: 400; text-decoration: line-through; }
.hcxn .hg-the .cv { width: 52px; flex: none; text-align: center; font-size: 12px; font-weight: 700; color: #1d4ed8; background: #eef4ff; border-radius: 6px; padding: 1px 0; }
.hcxn .hg-the .dv { width: 92px; flex: none; text-align: right; font-size: 12.5px; color: #667085; }
.hcxn .hg-c .ot button { height: 34px; flex-direction: row; justify-content: flex-start; gap: 6px; padding: 0 10px; font-size: 13px; text-align: left; }
.hcxn .hg-c .ot button i { font-size: 16px; }
.hcxn .hg-hang { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.hcxn .hg-tomtat { display: flex; gap: 8px; align-items: flex-start; background: #f0f9ff; border: 1px solid #b9e6fe; border-radius: 8px; padding: 10px 12px; color: #1f2a44; line-height: 1.5; margin-top: 4px; }
.hcxn .hg-tomtat > i { color: #0284c7; font-size: 18px; margin-top: 1px; }
.hcxn .hg-tomtat a { color: var(--xanh); font-weight: 600; cursor: pointer; white-space: nowrap; }
.hcxn .hg-chan { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e4e7ec; background: #fff; flex: none; }
.hcxn .hg-chan .phu { height: 38px; width: 110px; flex: none; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font-weight: 600; cursor: pointer; }
.hcxn .hg-chan .chinh { flex: 1; height: 38px; border: 0; border-radius: 8px; background: var(--xanh); color: #fff; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.hcxn .hg-chan .chinh:disabled { background: #98a2b3; cursor: not-allowed; }
.hcxn .hg-hop::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; pointer-events: none; background: linear-gradient(135deg, transparent 50%, #98a2b3 50%, #98a2b3 58%, transparent 58%, transparent 70%, #98a2b3 70%, #98a2b3 78%, transparent 78%); }
.hcxn .hg-toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 97; background: #101828; color: #fff; border-radius: 10px; padding: 10px 16px; display: flex; gap: 8px; align-items: center; font-weight: 600; box-shadow: 0 8px 24px rgba(16,24,40,.3); }
.hcxn .hg-toast i { color: #4ade80; font-size: 19px; }
.hcxn .hg-hop2 { z-index: 96; left: calc(50% - 540px); top: 60px; width: 1080px; height: min(640px, calc(100vh - 80px)); }
.hcxn .hg-hop2 .hchc-hai { grid-template-columns: 380px minmax(0, 1fr); }
.hcxn .hg-o .hg-ten { flex: none; width: 58px; color: #667085; font-weight: 500; font-size: 12.5px; }
.hcxn .hg-o > i, .hcxn .hg-o .hc-cbo-nut > i:first-child { color: var(--xanh) !important; font-size: 16px; margin-right: 6px; flex: none; }
.hcxn .hcchat-tk-dk .hg-o.hc-ro { padding: 0 10px; background: #f9fafb; }
.hcxn .hg-o .hc-cbo-chu { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.hcxn .hg-ray { padding: 6px 2px 0; }
.hcxn .hop { min-height: 0; height: calc(100vh - 66px); }
.hcxn .tr-chan { margin-top: 0; justify-content: flex-end; }
.hcxn .tr-chan .chinh { flex: none; padding: 0 18px; min-width: 96px; }
.hcxn .tr-chan .phu { width: auto; padding: 0 14px; }
.hcxn .pc-nut { display: grid !important; justify-content: center; gap: 10px; }
.hcxn .pc-nut .pn { min-width: 0; width: 100%; padding: 0 12px; }
.hcxn .sua .pc-nut .pn input { width: 100%; }
.hcxn .hg-hop2 { top: 24px; height: calc(100vh - 48px); }
.hcxn .hg-dong { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px; align-items: center; }
.hcxn .hg-dong .hc-label { height: 32px; display: flex; align-items: center; white-space: nowrap; background: #e3eaf3; color: #1f2a44; font-weight: 600; border: 0; border-radius: 6px; padding: 0 10px; }
.hcxn .hg-ray { padding: 0 2px; }

/* ===================== ENGINE (29/10/2026) - phần riêng ngoài mockup ===================== */
.hcxn { --xanh: #1d4ed8; font-size: 13.5px; line-height: 1.4; color: #101828; }
/* MÀN SOẠN: lớp phủ giữa màn, hộp cao theo cửa sổ */
.hcxn-man { position: fixed; inset: 0; z-index: 1050; background: rgba(16, 24, 40, .38); display: flex; align-items: center; justify-content: center; font-family: "Segoe UI", Roboto, Arial, sans-serif; }
.hcxn-man .xn-khung { display: contents; }
.hcxn-man .hop { width: min(1360px, calc(100vw - 32px)); height: calc(100vh - 32px); margin: 0; }
.hcxn-man .hg-phu { z-index: 1060; }
.hcxn-man .hg-hop2 { z-index: 1061; left: 50%; transform: translateX(-50%); top: 24px; width: min(1080px, calc(100vw - 32px)); height: calc(100vh - 48px); }
.hcxn-man .pop { z-index: 1062; }
.hcxn-man .thanh-chu { z-index: 1063; }
/* THẺ THẬT trong luồng chat / Hộp thư / lớp phủ */
.hcxn-o { display: block; width: min(560px, 100%); }
.hcxn-o .xn-the { max-width: none; width: 100%; margin: 0; }
.hcxn .xn-cho { color: #98a2b3; font-size: 12.5px; padding: 6px 0; }
.hcxn .xn-camb { text-align: center; color: #667085; font-size: 12.5px; font-style: italic; padding: 6px 0 2px; }
.hcxn .xn-kq { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: #475467; }
.hcxn .xn-kq > i { color: var(--xanh); font-size: 15px; }
.hcxn .xn-kq a { margin-left: auto; color: var(--xanh); font-weight: 600; cursor: pointer; text-decoration: none; }
.hcxn .lien-ket a[href] { cursor: pointer; text-decoration: none; }
/* HỘP NHỎ (kết quả · bật lên) - khung hchc, giữa màn */
.hcxn-hopnho .hg-phu { z-index: 1100; }
.hcxn-hopnho .xn-hop { z-index: 1101; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: calc(100vw - 16px); max-height: calc(100vh - 32px); min-height: 0; resize: both; overflow: hidden; }
.hcxn-hopnho .xn-hop > .hchc-khung { min-height: 0; overflow: hidden; }
.hcxn .xn-batlen { overflow-y: auto; min-height: 0; flex: 1; padding: 2px; }
.hcxn .xn-batlen .hcxn-o { width: 100%; }
.hcxn .xn-kq-tom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; flex: none; }
.hcxn .pn-tom { height: 28px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; background: #f2f4f7; color: #344054; }
.hcxn .pn-tom.xanh { background: #dcfae6; color: #067647; } .hcxn .pn-tom.do { background: #fee4e2; color: #b42318; } .hcxn .pn-tom.phu { background: #eef4ff; color: #1d4ed8; }
.hcxn .xn-han { margin-left: auto; color: #667085; font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.hcxn .xn-kq-chon { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; flex: none; }
.hcxn .xn-kq-chon span { border: 1px solid #e4e7ec; border-radius: 8px; padding: 3px 10px; font-size: 12.5px; color: #344054; }
.hcxn-hopnho .hcchat-tk-luoi { flex: 1; min-height: 120px; }
/* điện thoại: chỉ xem + trả lời; nút trả lời chia đều bề ngang thẻ, hộp nhỏ phủ gần hết màn */
@media (max-width: 640px) {
    .hcxn .pc-nut { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important; }
    .hcxn-o { width: 100%; }
    .hcxn-hopnho .xn-hop { width: calc(100vw - 16px) !important; height: calc(100vh - 80px); }
}

/* ===== 29/10/2026 đợt 2 (_docs/77 mục 40, mockup chat-xac-nhan-soan.html lần 14-28): CHUYỂN từ mockup bằng script gắn tiền tố .hcxn (#menu -> .xn-menu, .the -> .xn-the) =====
   đếm giờ ở Phần đầu · ảnh / tệp kèm · tin dài · hộp lý do · kéo rộng thẻ · combo một cột · các phần của tin · gợi ý đã nhập · câu hỏi lựa chọn · panel trái */
.hcxn .demcot { width: 62px; flex: none; border-radius: 10px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--m) 40%, #fff); background: #fff;
box-shadow: 0 2px 6px rgba(16,24,40,.08); align-self: center; position: relative; }
.hcxn .demcot > span { display: grid; grid-template-columns: 20px 28px; justify-content: center; align-items: baseline; column-gap: 3px; height: 22px; border-top: 1px solid #eef1f5; }
.hcxn .demcot > span:first-of-type { border-top: 0; }
.hcxn .demcot b { font-size: 15px; line-height: 22px; color: #101828; text-align: right; font-variant-numeric: tabular-nums; }
.hcxn .demcot small { font-size: 9.5px; font-weight: 700; color: #667085; letter-spacing: .03em; text-align: left; }
.hcxn .demcot.sap { border-color: #fdb022; background: #fffaeb; } .hcxn .demcot.sap > span { border-top-color: #fef0c7; } .hcxn .demcot.sap b, .hcxn .demcot.sap small { color: #dc6803; }
.hcxn .demcot.het { border-color: #fda29b; background: #fef3f2; } .hcxn .demcot.het > span { border-top-color: #fee4e2; } .hcxn .demcot.het b, .hcxn .demcot.het small { color: #d92d20; }
.hcxn .demcot.rong { border: 1px dashed #98a2b3; background: #f9fafb; box-shadow: none; } .hcxn .demcot.rong b { color: #98a2b3; }
.hcxn .sua .demcot { cursor: pointer; overflow: visible; }
.hcxn .sua .demcot.chon { outline: 2px solid var(--xanh); outline-offset: 2px; }
.hcxn .sua .demcot > .but { top: -12px; right: -12px; }
.hcxn .anh-than { position: relative; }
.hcxn .anh-than img { max-height: 340px; object-fit: cover; }
.hcxn .sua .anh-than.chon img { outline: 2px solid var(--xanh); outline-offset: 2px; }
.hcxn .tep-o { height: 40px; padding: 0 10px; }
.hcxn .tep-o > i:first-child { font-size: 20px; width: 22px; text-align: center; flex: none; }
.hcxn .tep-o i.pdf { color: #d92d20; } .hcxn .tep-o i.doc { color: #1d4ed8; } .hcxn .tep-o i.xls { color: #15803d; } .hcxn .tep-o i.zip { color: #7c3aed; } .hcxn .tep-o i.anh { color: #ea580c; }
.hcxn .tep-o span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hcxn .tep-o small { flex: none; }
.hcxn .tep-o .tai { color: var(--xanh) !important; font-size: 18px !important; cursor: pointer; flex: none; }
.hcxn .tep-dem { font-size: 11.5px; color: #667085; margin: 0 0 4px 2px; }
.hcxn .nd-bo { position: relative; }
.hcxn .nd-bo.bo { max-height: 214px; overflow: hidden; }
.hcxn .nd-bo.bo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.hcxn .xem-them { display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0; border: 0; background: none; color: var(--xanh); font-weight: 600; cursor: pointer; padding: 0; font-size: 13px; }
.hcxn .ld-o { width: 100%; min-height: 84px; border: 1px solid #d0d5dd; border-radius: 8px; padding: 8px 10px; font: inherit; resize: vertical; outline: 0; }
.hcxn .ld-o:focus { border-color: #84adff; box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .ld-goi { font-size: 12.5px; color: #475467; margin-bottom: 6px; }
.hcxn .ld-loi { font-size: 12px; color: #d92d20; margin-top: 4px; min-height: 16px; }
.hcxn .c-giua .xn-the, .hcxn .c-giua .xem-ai { max-width: none; width: var(--rong, 600px); }
.hcxn .c-giua .xn-the { position: relative; }
.hcxn .keo-rong { position: absolute; top: 50%; right: -14px; width: 10px; height: 56px; transform: translateY(-50%); border-radius: 6px; background: #d0d5dd; cursor: ew-resize; z-index: 3;
display: grid; place-items: center; box-shadow: 0 1px 2px rgba(16,24,40,.12); }
.hcxn .keo-rong::before { content: ""; width: 2px; height: 24px; border-left: 2px dotted #fff; }
.hcxn .keo-rong:hover, .hcxn .keo-rong.dang { background: var(--xanh); }
.hcxn .keo-so { position: absolute; top: calc(50% + 36px); right: -40px; font-size: 11.5px; color: #fff; background: #1f2937; border-radius: 6px; padding: 2px 7px; white-space: nowrap; z-index: 3; }
.hcxn .xn-the:not(.sua) .anh-o img { cursor: zoom-in; }
.hcxn .anh-phong { position: absolute; right: 42px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(16,24,40,.65); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 15px; }
.hcxn .anh-phong:hover { background: var(--xanh); }
.hcxn .xn-the:not(.sua) .anh-phong { right: 6px; opacity: 0; transition: opacity .15s; }
.hcxn .xn-the:not(.sua) .anh-o:hover .anh-phong { opacity: 1; }
.hcxn .oc-luoi { display: grid; grid-template-columns: 1fr; gap: 8px; }   
.hcxn .pop.pop-o { width: 320px; }
.hcxn .pop-dem { margin-left: 8px; font-size: 12px; font-weight: 600; color: #98a2b3; }
.hcxn .xn-menu .oc-dong { cursor: pointer; padding-right: 4px; }
.hcxn .oc-md-nut { margin-left: auto; flex: none; height: 26px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #475467; font-size: 12px; font-weight: 600;
display: inline-flex; align-items: center; gap: 5px; padding: 0 9px 0 5px; cursor: pointer; }
.hcxn .oc-md-nut .ck { width: 15px; height: 15px; border: 1.5px solid #98a2b3; border-radius: 4px; display: grid; place-items: center; font-size: 11px; color: #fff; }
.hcxn .oc-md-nut:hover { border-color: var(--xanh); color: var(--xanh); }
.hcxn .oc-md-nut.on { border-color: var(--xanh); background: #eef4ff; color: var(--xanh); }
.hcxn .oc-md-nut.on .ck { background: var(--xanh); border-color: var(--xanh); }
.hcxn .oc-sw { width: 26px; height: 16px; border-radius: 4px; flex: none; }   
.hcxn .xn-menu .hc-cbo-muc > span.oc-sw, .hcxn .xn-menu .hc-cbo-muc > span.oc-nen, .hcxn .hc-cbo-nut > span.oc-sw, .hcxn .hc-cbo-nut > span.oc-nen { flex: 0 0 26px; }   
.hcxn .goiy-ds { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 12px 28px rgba(16,24,40,.16); padding: 4px; }
.hcxn .goiy-dau { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #667085; font-weight: 600; padding: 4px 8px 6px; }
.hcxn .goiy-ds .hc-cbo-muc { width: 100%; text-align: left; }
.hcxn .tr-phan { margin-top: 6px; }
.hcxn .tr-phan .hc-cbo { height: 34px; }
.hcxn .tr-phan-dem { flex: none; font-size: 11.5px; font-weight: 700; color: var(--xanh); background: #e0eaff; border-radius: 999px; padding: 1px 7px; }
.hcxn .xn-menu .phan-muc { cursor: pointer; }
.hcxn .xn-menu .phan-muc .ck-v { width: 18px; height: 18px; border: 1.5px solid #98a2b3; border-radius: 4px; display: grid; place-items: center; flex: none; color: #fff; font-size: 12px; }
.hcxn .xn-menu .phan-muc.on .ck-v { background: var(--xanh); border-color: var(--xanh); }
.hcxn .xn-menu .phan-muc.on > span:not(.ck-v) { font-weight: 600; }
.hcxn .xn-menu .phan-muc.khoa { cursor: default; } .hcxn .xn-menu .phan-muc.khoa .ck-v { opacity: .5; }
.hcxn .tep-nhan { display: flex; align-items: center; height: 100%; padding: 0 10px; font-weight: 700; color: #1f2a44; white-space: nowrap; }
.hcxn .tep-nhan.mo { color: #98a2b3; font-weight: 500; }
.hcxn .fo-gt > .tep-o { flex: 1; margin: 0; min-width: 0; }
.hcxn .tep-them { flex: 1; height: 32px; border: 1px dashed #98a2b3; border-radius: 8px; background: #fff; color: #475467; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; cursor: pointer; font-weight: 600; }
.hcxn .tep-them:hover { border-color: var(--xanh); color: var(--xanh); }
.hcxn .r-gt > .tep-o { border: 0; padding: 0; height: auto; margin: 0; background: none; flex: 1; min-width: 0; }
.hcxn .tep-xem { color: var(--xanh) !important; cursor: pointer; }   
.hcxn .tep-xem:hover { text-decoration: underline; }
.hcxn .bang-tt .r-trai:has(.tep-o) > span { display: flex; align-items: center; }
.hcxn .oc-nut { width: 26px; height: 16px; border-radius: 4px; flex: 0 0 26px !important; }
.hcxn .oc-nut.xanh { background: #16a34a; } .hcxn .oc-nut.do { background: #fff; border: 1.5px solid #fda29b; } .hcxn .oc-nut.phu { background: #fff; border: 1.5px solid #b2ccff; }
.hcxn .oc-kd { width: 26px; height: 16px; border-radius: 4px; flex: 0 0 26px !important; position: relative; overflow: hidden; }
.hcxn .oc-kd.nhat { background: color-mix(in srgb, var(--m) 14%, #fff); border: 1px solid color-mix(in srgb, var(--m) 30%, #fff); }
.hcxn .oc-kd.nhat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--m); }
.hcxn .oc-kd.bang { background: var(--m); }
.hcxn .oc-nen { width: 22px; height: 16px; border-radius: 4px; flex: none; border: 1px solid #d0d5dd; background-color: #fff; background-size: cover; }
.hcxn .oc-nen.nen-nhat { background: color-mix(in srgb, var(--m) 10%, #fff); }
.hcxn .xn-menu .hc-cbo-muc .oc-ic { color: #667085; font-size: 16px; }
.hcxn .oc-trong { padding: 6px 10px 8px; color: #98a2b3; font-size: 12.5px; }
.hcxn .tl-hoi2 { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; margin: 0 0 8px; border-radius: 8px; background: color-mix(in srgb, var(--m) 10%, #fff);
border: 1px solid color-mix(in srgb, var(--m) 22%, #fff); color: #101828; font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.hcxn .tl-hoi2 > i { color: var(--m); font-size: 19px; flex: none; margin-top: 0; }
.hcxn .tl-hoi2 input.e { flex: 1; font-weight: 700; font-size: 14.5px; background: transparent; }
.hcxn .pc-ds.hai { display: grid; grid-template-columns: 1fr 1fr; column-gap: 6px; }
.hcxn .pc-ds.hai .pc-chon { margin-bottom: 5px; min-width: 0; }
.hcxn .oc-md-chu { margin-left: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--xanh); background: #eef4ff; border-radius: 999px; padding: 1px 8px; }
.hcxn .oc-luoi.hc-area { grid-auto-rows: 32px; }   
.hcxn .oc .hc-cbo-nut { gap: 8px; }
.hcxn .oc .oc-ic { color: var(--xanh); font-size: 17px; }
.hcxn .oc-md { margin-top: 2px; }
.hcxn .xn-menu .hc-cbo-muc:disabled { opacity: .45; cursor: not-allowed; background: none; }
.hcxn .xn-menu .hc-cbo-muc small { margin-left: auto; color: #98a2b3; font-size: 12px; }
.hcxn .tr-chan .chinh { flex: none; padding: 0 18px; min-width: 96px; height: 32px; }
.hcxn .tr-chan .phu { height: 32px; width: auto; padding: 0 14px; }
.hcxn .tr-doi { margin-top: 8px; }
.hcxn .trai .tr-khoi .hc-cbo { height: 34px; }
.hcxn .bang-tt .r-trai:has(.tep-o) > .r-ten { align-items: center; }
.hcxn-man .xn-menu { z-index: 1070; }

/* ===== 30/10/2026 (_docs/77 mục 42, mockup chat-xac-nhan-soan.html lần 29-42) ===== */
/* panel trái rộng hơn: khối Tùy chọn gửi = form chung nhãn trái 100px · ô phải (con TRỰC TIẾP của .hc-area) */
.hcxn .trai { width: 316px; }
.hcxn .tg-f.hc-area { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 6px; grid-auto-rows: 32px; }
.hcxn .tg-f > .hc-label { display: flex; align-items: center; white-space: nowrap; padding: 0 8px; }
.hcxn .tg-f > .hc-cbo { height: 32px !important; min-width: 0; }
.hcxn .tg-f .hc-cbo-nut, .hcxn .tt-f .hc-cbo-nut { gap: 6px; min-width: 0; }
.hcxn .tg-f .hc-cbo-chu, .hcxn .tt-f .hc-cbo-chu { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* hàng nút: TIN ĐÃ HẸN bên trái (biểu tượng + số), Gửi | Hủy dồn phải */
.hcxn .tr-hen { margin-right: auto; position: relative; width: 34px; height: 32px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #475467; cursor: pointer; display: grid; place-items: center; padding: 0; font-size: 18px; flex: none; }
.hcxn .tr-hen:has(+ .tr-hen) { margin-right: 4px; }
.hcxn .tr-hen:hover { border-color: var(--xanh, #1d4ed8); color: var(--xanh, #1d4ed8); }
.hcxn .tr-hen.on { border-color: var(--xanh, #1d4ed8); background: #eef4ff; color: var(--xanh, #1d4ed8); }
.hcxn .tr-hen.xoa:hover { border-color: #fda29b; color: #d92d20; background: #fef3f2; }
.hcxn .tr-hen .so { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; border-radius: 9px; background: #f79009; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.hcxn .xn-menu .hen-muc { height: auto; min-height: 46px; align-items: center; gap: 10px; padding: 6px 10px; }
.hcxn .xn-menu .hen-muc > i { font-size: 19px; flex: none; color: #475467; }
.hcxn .xn-menu .hen-muc > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hcxn .xn-menu .hen-muc > span b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcxn .xn-menu .hen-muc > span small { margin: 0; color: #667085; font-size: 12px; }
.hcxn .xn-menu .hen-muc .ke { flex: none; margin-left: auto; color: #475467; font-size: 12px; white-space: nowrap; }
/* ô ngày gốc + ô giờ khuôn hh:mm + danh sách giờ */
.hcxn .fi.pk input[type=date] { font: inherit; cursor: text; }
.hcxn .fi.pk input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.hcxn .fi.pk input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.hcxn .fi.pk.ngay { flex: 1 1 150px; }
.hcxn .fi.pk.gio { flex: 0 0 92px; padding: 0 4px 0 10px; }
.hcxn .gio-o { font-variant-numeric: tabular-nums; }
.hcxn .gio-nut { flex: none; width: 26px; height: 26px; border: 0; background: none; border-radius: 6px; color: #667085; cursor: pointer; display: grid; place-items: center; padding: 0; font-size: 16px; }
.hcxn .gio-nut:hover { background: #eef4ff; color: var(--xanh, #1d4ed8); }
.hcxn .fi.pk.loi { border-color: #f04438 !important; box-shadow: 0 0 0 3px #fee4e2 !important; }
.hcxn .xn-menu.gio-ds { max-height: 260px; overflow-y: auto; min-width: 0; }
.hcxn .xn-menu.gio-ds .hc-cbo-muc span { font-variant-numeric: tabular-nums; }
/* ô giờ + ngày trong MỘT ô (Gửi lúc · Hạn lúc · Từ … đến) */
.hcxn .tg-han { display: flex !important; align-items: center; gap: 2px; padding: 0 4px 0 2px !important; min-width: 0; }
.hcxn .tg-han .fi.pk.gio { flex: 0 0 76px; border: 0; height: 30px; padding: 0 0 0 6px; box-shadow: none !important; background: none; }
.hcxn .tg-han input.gio-o { width: 40px; flex: 1; border: 0; outline: 0; background: transparent; font: inherit; }
.hcxn .tg-han > input[type=date] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: #101828; padding: 0 4px; }
.hcxn .tg-han > input[type=date]:first-child { padding-left: 8px; }
.hcxn .tg-han:focus-within { border-color: #84adff; box-shadow: 0 0 0 3px #dbe5fd; }
.hcxn .tt-den { flex: none; color: #667085; font-size: 12.5px; padding: 0 6px; }
/* HỘP TÙY CHỌN GỬI: một cột gọn, cao theo nội dung */
.hcxn-man .tt-hop { z-index: 1061; left: 50%; transform: translateX(-50%); top: 110px; width: min(520px, calc(100vw - 24px)); height: auto; padding: 10px; display: flex; flex-direction: column; }
.hcxn .tt-hop .hchc-khung { flex: none; }
.hcxn .tt-f.hc-area { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 6px 8px; grid-auto-rows: minmax(32px, auto); margin-top: 4px; }
.hcxn .tt-f > .hc-label { display: flex; align-items: center; white-space: nowrap; padding: 0 8px; }
.hcxn .tt-f > .hc-cbo { height: 32px; min-width: 0; }
.hcxn .tt-seg { display: flex !important; gap: 4px; padding: 0 !important; border: 0 !important; background: none !important; }
.hcxn .tt-seg button { flex: 1; min-width: 0; height: 32px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: #344054; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px; white-space: nowrap; }
.hcxn .tt-seg button i { font-size: 15px; color: #667085; }
.hcxn .tt-seg button:hover { border-color: #84adff; }
.hcxn .tt-seg button.on { background: var(--xanh, #1d4ed8); border-color: var(--xanh, #1d4ed8); color: #fff; font-weight: 600; }
.hcxn .tt-seg button.on i { color: #fff; }
.hcxn .hg-thu { display: flex !important; gap: 3px !important; align-items: center; padding: 0 !important; border: 0 !important; background: none !important; height: 32px; }
.hcxn .hg-thu button { flex: 1; min-width: 0; height: 30px; border: 1px solid #d0d5dd; border-radius: 6px; background: #fff; color: #475467; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0; }
.hcxn .hg-thu button:hover { border-color: #84adff; }
.hcxn .hg-thu button.on { background: var(--xanh, #1d4ed8); border-color: var(--xanh, #1d4ed8); color: #fff; }
/* hộp người nhận: ảnh trước tên */
.hcxn .hg-hop2 td.ten { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcxn .hg-hop2 .hcchat-tk-dk .hc-cbo-nut > i:first-child { color: #667085; }
/* KHUNG ẢNH TRỐNG (phần Ảnh bật, chưa có ảnh) - bấm chọn / dán */
.hcxn .anh-trong { height: 150px; border: 1.5px dashed #98a2b3; border-radius: 10px; background: #f9fafb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: #667085; text-align: center; outline: 0; }
.hcxn .anh-trong > i { font-size: 30px; color: #98a2b3; }
.hcxn .anh-trong b { color: #344054; font-size: 14px; }
.hcxn .anh-trong span { font-size: 12.5px; }
.hcxn .anh-trong:hover, .hcxn .anh-trong:focus { border-color: var(--xanh, #1d4ed8); background: #f5f8ff; }
.hcxn .anh-trong:hover > i, .hcxn .anh-trong:focus > i { color: var(--xanh, #1d4ed8); }
/* dòng GỬI · HẠN TRẢ LỜI (thẻ thật luôn có giờ gửi; soạn: lịch gửi, bấm mở Tùy chọn gửi) */
.hcxn .tl-han2 { display: flex; align-items: center; justify-content: center; gap: 6px 18px; flex-wrap: wrap; margin: 2px 0 10px; font-size: 13px; color: #475467; }
.hcxn .tl-han2 > span { display: inline-flex; align-items: center; gap: 5px; }
.hcxn .tl-han2 > span > i { color: var(--m); font-size: 16px; }
.hcxn .tl-han2 b { color: #101828; font-weight: 600; }
.hcxn .tl-han2 .mo, .hcxn .tl-han2 .mo i { color: #98a2b3 !important; }
.hcxn .tl-han2 .qua b { color: #d92d20; }
.hcxn .tl-han2.bam { cursor: pointer; border-radius: 8px; padding: 4px 8px; }
.hcxn .tl-han2.bam:hover { background: #f5f8ff; }
.hcxn .tl > .tl-han2:last-child { margin-bottom: 0; }

/* ===== 29/10/2026 khuya - sửa lỗi sau đợt 3 (_docs/77 mục 44) ===== */
/* (1) hộp Xem kết quả: lưới co theo hộp và TỰ CUỘN dọc, tiêu đề cột dính */
.hcxn-hopnho .xn-hop > .hchc-khung { display: flex; flex-direction: column; }
.hcxn-hopnho .hcchat-tk-luoi { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hcxn-hopnho .hcchat-tk-luoi > .hcchat-luoi { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hcxn-hopnho .hcchat-luoi > .hc-grid-scroll { flex: 1; min-height: 0; overflow: auto; }
.hcxn-hopnho .hc-grid-table thead th { position: sticky; top: 0; z-index: 1; }
/* (5) lớp phủ Hộp thư hiện tin xác nhận dạng mới: thẻ giãn đủ khung, khung cỡ thẻ (hết khoảng trống bên phải); bỏ "Từ / Lúc" (thẻ đã có người gửi + dòng Gửi) */
.hcthu-phu .hcthu-phu-khung:has(.hcthu-xn) { width: min(640px, 100%); }
.hcthu-phu .hcthu-the:has(> .hcthu-xn) > .hcthu-meta { display: none; }
.hcthu-phu .hcthu-xn .hcxn-o { width: 100%; }
@media (max-width: 640px) {
    /* (9) hộp bật lên / kết quả: khuôn hộp chung đã phủ cả màn (left 0 · top 0) - bỏ dịch canh giữa kiểu máy tính kẻo hộp trôi ra ngoài màn */
    .hcxn-hopnho .xn-hop { transform: none !important; left: 0 !important; top: 0 !important; width: 100vw !important; height: 100dvh !important; max-height: none; resize: none; }
    /* (8) thẻ trong khung chat: dùng ĐỦ bề ngang (bỏ chỗ ảnh đại diện, lề bong bóng); thẻ gọn lại cho màn hẹp */
    .hcchat-hang:has([data-xn]) { max-width: 100%; width: 100%; }
    .hcchat-hang:has([data-xn]) > .cho { display: none; }
    .hcchat-hang:has([data-xn]) .bong { flex: 1; min-width: 0; padding: 6px 6px 5px; }
    .hcxn .d3-hang { gap: 8px; padding: 10px 10px; }
    .hcxn .tolich { width: 48px; } .hcxn .tolich b { font-size: 20px; }
    .hcxn .demcot { width: 58px; } .hcxn .demcot > span { grid-template-columns: 18px 28px; column-gap: 2px; }
    .hcxn .d3-td { font-size: 15px; }
    .hcxn .d3-nhan { font-size: 11.5px; }
    .hcxn .xn-the:not(.sua) .d3-gui { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hcxn .xn-the:not(.sua) .d3-gui > i { vertical-align: -2px; margin-right: 4px; }
    .hcxn .r-trai { grid-template-columns: 88px 1fr; }
    .hcxn .than { padding: 10px; } .hcxn .tl { padding: 8px 10px 10px; }
    .hcxn .tl-han2 { gap: 4px 12px; font-size: 12.5px; }
}

/* ===== 30/10/2026 (_docs/77 mục 45) ===== */
/* hộp nhỏ (kết quả · bật lên): khung trắng CO theo hộp - hcchat.css đặt .hcchat-hop .hchc-khung { flex: none } làm khung cao bằng cả danh sách, lưới không cuộn, mất nút chân */
.hcxn-hopnho .xn-hop > .hchc-khung { flex: 1 1 auto; }
/* DẢI NGANG cuối Phần đầu - CHỈ ĐIỆN THOẠI (anh chọn kiểu A2, mockup chat-xac-nhan-demgio.html): nền tối hơn màu băng (dạng gọn: màu tin), chữ trắng, nhãn đếm bằng lời */
.hcxn .dai { display: none; position: relative; z-index: 2; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--m); }
.hcxn .d3-bang .dai { background: color-mix(in srgb, var(--m) 72%, #000); }
.hcxn .dai > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; min-width: 0; }
.hcxn .dai > span > i { font-size: 15px; }
.hcxn .dai-dem { margin-left: auto; border-radius: 999px; padding: 2px 10px; background: rgba(255,255,255,.2); font-variant-numeric: tabular-nums; }
.hcxn .dai-dem:first-child { margin-left: 0; }
.hcxn .dai-dem.sap { background: #f79009; } .hcxn .dai-dem.het { background: #d92d20; }
@media (max-width: 640px) {
    .hcxn .xn-the:not(.sua) .dai { display: flex; }
    .hcxn .xn-the:not(.sua) .d3-hang > .tolich, .hcxn .xn-the:not(.sua) .d3-hang > .demcot { display: none; }
    .hcxn .xn-the:not(.sua) .d3-hang { padding: 10px 12px; }
    .hcxn .xn-the:not(.sua) .d3-td { font-size: 16px; }
    .hcxn .xn-the.gop-han .tl-han2 .tl-hanb { display: none; }
}
/* màn soạn · nút "Điện thoại": xem thử trong khung 375px với ĐÚNG luật điện thoại ở trên (máy tính không chạm @media) */
.hcxn .trai .soanxem button { padding: 0 6px; }
.hcxn .c-giua.xn-dt .xn-the, .hcxn .c-giua.xn-dt .xem-ai { margin-left: auto; margin-right: auto; }
.hcxn .xn-dt .xn-the:not(.sua) .dai { display: flex; }
.hcxn .xn-dt .xn-the:not(.sua) .d3-hang > .tolich, .hcxn .xn-dt .xn-the:not(.sua) .d3-hang > .demcot { display: none; }
.hcxn .xn-dt .xn-the:not(.sua) .d3-hang { gap: 8px; padding: 10px 12px; }
.hcxn .xn-dt .d3-td { font-size: 16px; }
.hcxn .xn-dt .d3-nhan { font-size: 11.5px; }
.hcxn .xn-dt .xn-the:not(.sua) .d3-gui { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hcxn .xn-dt .xn-the:not(.sua) .d3-gui > i { vertical-align: -2px; margin-right: 4px; }
.hcxn .xn-dt .r-trai { grid-template-columns: 88px 1fr; }
.hcxn .xn-dt .than { padding: 10px; } .hcxn .xn-dt .tl { padding: 8px 10px 10px; }
.hcxn .xn-dt .tl-han2 { gap: 4px 12px; font-size: 12.5px; }
.hcxn .xn-dt .xn-the.gop-han .tl-han2 .tl-hanb { display: none; }
.hcxn .xn-dt .pc-nut { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important; }
/* điện thoại: bảng Kết quả giữ bề ngang tối thiểu (bị ép vào màn hẹp thì cột Họ tên co về 0) - lưới tự cuộn ngang, cột STT + Họ tên dính trái */
@media (max-width: 640px) {
    .hcxn-hopnho .hc-grid-table { min-width: 720px; }
    .hcxn-hopnho .hc-grid-table td:nth-child(-n+2) { position: sticky; background: #fff; z-index: 1; }
    .hcxn-hopnho .hc-grid-table th:nth-child(-n+2) { z-index: 2; }
    .hcxn-hopnho .hc-grid-table td:nth-child(1), .hcxn-hopnho .hc-grid-table th:nth-child(1) { left: 0; }
    .hcxn-hopnho .hc-grid-table td:nth-child(2), .hcxn-hopnho .hc-grid-table th:nth-child(2) { left: 50px; }
}

/* ===== 30/10/2026 (_docs/77 mục 49) - thẻ gọn hơn · thu gọn tin đã trả lời · bề rộng như lúc soạn ===== */
.hcxn .than { padding: 10px 12px; }
.hcxn .tl { padding: 6px 12px 8px; }
.hcxn .tl-han2 { margin: 0 0 6px; }
.hcxn .tl-han2:last-child { margin-bottom: 0; }
.hcxn .xn-kq { margin-top: 3px; }
/* hộp Tin cần xác nhận (bật lên / Cổng): chân trống thì bỏ hẳn, đệm dưới thẻ hẹp lại */
.hcxn-hopnho .hchc-chan:empty { display: none; }
.hcxn-hopnho .xn-hop > .hchc-khung:has(.xn-batlen) { padding-bottom: 6px; }
.hcxn-hopnho .xn-hop:has(.xn-batlen) { padding-bottom: 8px; }
/* thẻ trong chat rộng đúng bề rộng lúc soạn (--rong do HcXacNhan.veO đặt), khung hẹp hơn thì co vừa khung; điện thoại vẫn rộng hết */
.hcxn-o { width: var(--rong, 600px); max-width: 100%; }
/* nút thu gọn / mở rộng ở cuối Phần đầu; thu gọn = chỉ còn Phần đầu */
.hcxn .xn-gon { flex: none; align-self: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--m) 35%, #fff); background: rgba(255,255,255,.9);
    color: var(--m); display: grid; place-items: center; cursor: pointer; padding: 0; font-size: 15px; }
.hcxn .xn-gon:hover { background: #fff; border-color: var(--m); }
.hcxn-o.gon .xn-the > :not(:first-child) { display: none; }
@media (max-width: 640px) {
    .hcxn-o { width: 100%; }
    .hcxn .than { padding: 8px 10px; } .hcxn .tl { padding: 6px 10px 8px; }
}

/* ===== 30/10/2026 (_docs/77 mục 51) - hộp Kết quả: thanh NGĂN LỌC một dòng (chip · combo lựa chọn · chip đã xem), số đếm chữ nhỏ góc trên phải chip ===== */
.hcxn .xn-kq-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; flex: none; }
.hcxn .kq-nhom { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.hcxn .kq-chip { position: relative; height: 30px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid #d0d5dd; background: #fff; color: #344054;
    font: 600 12.5px/1 inherit; display: inline-flex; align-items: center; cursor: pointer; white-space: nowrap; }
.hcxn .kq-chip sup { position: absolute; top: 3px; right: 6px; font-size: 10px; font-weight: 700; line-height: 1; color: #667085; }
.hcxn .kq-chip:hover { border-color: #98a2b3; }
.hcxn .kq-chip.xanh { border-color: #a6e9c0; color: #067647; } .hcxn .kq-chip.xanh sup { color: #067647; }
.hcxn .kq-chip.do { border-color: #fda29b; color: #b42318; } .hcxn .kq-chip.do sup { color: #b42318; }
.hcxn .kq-chip.phu { border-color: #b2ccff; color: #1d4ed8; } .hcxn .kq-chip.phu sup { color: #1d4ed8; }
.hcxn .kq-chip.on { color: #fff; border-color: transparent; background: #475467; } .hcxn .kq-chip.on sup { color: rgba(255,255,255,.85); }
.hcxn .kq-chip.xanh.on { background: #16a34a; } .hcxn .kq-chip.do.on { background: #d92d20; } .hcxn .kq-chip.phu.on { background: #1d4ed8; } .hcxn .kq-chip.xam.on { background: #1d4ed8; }
.hcxn .kq-cbo { height: 30px; min-width: 180px; max-width: 280px; padding: 0 10px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #101828;
    display: inline-flex; align-items: center; gap: 6px; font: 13px/1 inherit; cursor: pointer; }
.hcxn .kq-cbo span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.hcxn .kq-cbo i { color: #667085; }
.hcxn .kq-cbo:hover { border-color: #98a2b3; }
.hcxn .kq-menu { position: fixed; z-index: 1102; background: #fff; border: 1px solid #e4e7ec; border-radius: 10px; box-shadow: 0 12px 28px rgba(16,24,40,.16); padding: 4px;
    max-height: 320px; overflow-y: auto; }
.hcxn .kq-menu button { display: flex; width: 100%; align-items: center; gap: 12px; border: 0; background: none; padding: 7px 10px; border-radius: 6px; font: 13px/1.3 inherit; color: #101828; cursor: pointer; text-align: left; }
.hcxn .kq-menu button:hover { background: #f2f4f7; }
.hcxn .kq-menu button.on { background: #eef4ff; color: #1d4ed8; font-weight: 600; }
.hcxn .kq-menu button span { flex: 1; } .hcxn .kq-menu button small { color: #98a2b3; font-size: 11.5px; }
.hcxn .kq-rong { text-align: center; color: #98a2b3; padding: 18px 0 !important; }

/* ===== 30/10/2026 (_docs/77 mục 53) - soạn THƯ ở Hộp thư: hộp Người nhận = ô chọn của Hộp thư (hchopthu.css .hcthu-chon), gợi ý thả xuống không bị khung cắt ===== */
.hcxn-man .xn-hopthu { z-index: 1061; left: 50%; transform: translateX(-50%); top: 90px; width: min(620px, calc(100vw - 24px)); height: auto; padding: 10px; display: flex; flex-direction: column; overflow: visible; }
.hcxn .xn-hopthu .hchc-khung { flex: none; overflow: visible; }
.hcxn .xn-hopthu .hnt-cho { min-height: 220px; }
.hcxn .xn-hopthu .hcthu-goiy { max-height: min(360px, calc(100vh - 260px)); overflow-y: auto; }
.hcxn .xn-hopthu .hchc-chan { justify-content: flex-end; }
.hcxn .hnt-dem .loi { color: #b42318; }
/* hộp "Xem tất cả nhóm" của ô chọn người nhận mở TRÊN màn soạn (màn soạn z 1060-1063) */
.hchc.hcthu-hopnhom { z-index: 1080; }
