/* 0.9.10 (s0910-p) — màn Chương trình khuyến mãi (#/km-chuong-trinh) + thẻ chương trình trên màn đặt hàng / trang chủ sales. Tiền tố .kct- */
.kct-ghi{margin:0 0 12px}
.kct-luoi{display:grid;grid-template-columns:1fr;gap:0}
body.hc-web .kct-luoi{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px}
body.hc-web .kct-luoi .hc-the{margin:0}
.kct-the h3{font-size:16px}
.kct-moc{margin:8px 0 4px;font-weight:600;overflow-wrap:anywhere}
.kct-dau{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px}
.kct-nut{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.kct-nut>.hc-nut{flex:1 1 160px}
body.hc-web .kct-nut>.hc-nut{flex:0 0 auto}
/* 3.7 (s37): minmax(0,…) + min-width:0 — bảng rộng (tóm tắt / số liệu chương trình linh hoạt) cuộn trong khung của nó, không đẩy thẻ rộng hơn màn điện thoại */
.kct-hai{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
.kct-hai>.hc-the{min-width:0}
body.hc-web .kct-hai{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:12px}
body.hc-web .kct-hai .hc-the{margin:0}
.kct-dl{display:grid;grid-template-columns:130px minmax(0,1fr);gap:6px 12px;margin:10px 0 0;font-size:14.5px}
.kct-dl dt{color:var(--mo);font-weight:600}
.kct-dl dd{margin:0;overflow-wrap:anywhere;min-width:0}
@media (max-width:480px){.kct-dl{grid-template-columns:minmax(0,1fr)}.kct-dl dd{margin-bottom:6px}}
.kct-chi{margin:12px 0}
.kct-chi>summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.kct-nk{margin:0;padding-left:18px;font-size:14px;line-height:1.6}
.kct-dung{margin:0 0 12px}
.kct-form .kct-cot{display:block;min-width:0}
body.hc-web .kct-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
body.hc-web .kct-form>.hc-bao,body.hc-web .kct-form>.kct-xem,body.hc-web .kct-form>.kct-chan{grid-column:1 / -1}
body.hc-web .kct-form .hc-the{margin:0 0 12px}
.kct-h{margin:0 0 10px;font:800 16px/1.3 var(--tieu-de)}
.kct-2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width:480px){.kct-2{grid-template-columns:1fr}}
.kct-so{width:100%;min-width:64px;min-height:44px}
.kct-moc-bang td{padding:6px 8px}
.kct-nhom{margin:0 0 12px}
.kct-nhom>b{display:block;margin:0 0 6px}
.kct-hop{display:flex;align-items:flex-start;gap:8px;min-height:44px;padding:8px 0;cursor:pointer}
.kct-hop input{width:20px;height:20px;min-height:20px;max-width:20px;flex:0 0 20px;margin:2px 0 0;padding:0;box-shadow:none}
.kct-cuon{max-height:240px;overflow:auto;border:1px solid var(--vien);border-radius:10px;padding:4px 10px}
.kct-ghep{padding-left:28px}
.kct-thap td{background:var(--cam-nhat)}
.kct-chan{display:flex;gap:10px;justify-content:flex-end;margin:4px 0 24px}
.kct-chan>.hc-nut{flex:1 1 0}
body.hc-web .kct-chan>.hc-nut{flex:0 0 220px}
/* thẻ chương trình trên màn đặt hàng (khối quà) */
.kct-dh{margin:10px 0 0;display:grid;gap:8px}
.kct-dh-the{border:1px solid var(--vien-2);border-radius:12px;padding:10px 12px;background:var(--the)}
.kct-dh-the.chon{border-color:var(--xanh);box-shadow:inset 3px 0 0 var(--xanh)}
.kct-dh-the.loai{opacity:.85;background:var(--nen-2)}
.kct-dh-dau{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.kct-dh-dau b{font-size:15px;overflow-wrap:anywhere}
.kct-dh-qua{margin:4px 0 0;font-size:14.5px}
.kct-dh-ke{margin:4px 0 0;font-size:14px;color:var(--cam-dam)}
.kct-dh-chon{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0 0}
.kct-dh-chon>button{flex:1 1 140px;min-height:44px}
.kct-dh-ly{margin:2px 0 0;font-size:13.5px;color:var(--mo)}
/* thẻ "Chương trình tháng này" trên trang chủ sales */
.kct-tc li{margin:0 0 6px}
.kct-tc ul{margin:6px 0 0;padding-left:18px}
.kct-sp{width:100%;min-width:120px;min-height:44px}
.kct-form .kct-cot{min-width:0}
.kct-form .hc-bang-cuon{max-width:100%;overflow-x:auto}
body.hc-web .kct-form .kct-moc-bang .kct-so{min-width:56px;max-width:88px}
/* 1.3 (s13-d · N5): dòng lý do Mở mới không áp — tô cam (chữ cam đậm đủ tương phản) */
.kct-dh-ly.cam{color:var(--cam-dam);font-weight:600;background:var(--cam-nhat);border-radius:8px;padding:4px 8px}
/* 1.3 (s13-d · lỗi 4): bảng mốc mới trống — chữ mờ ví dụ; tấm xem trước trước khi gửi duyệt */
.kct-moc-bang input::placeholder{color:var(--mo);opacity:.7}
.kct-xem-moc{display:block;margin:8px 0 10px}
.kct-xem-moc>span{display:block;margin:2px 0;font-size:14.5px;color:var(--chu)}
.kct-moc-loi{color:var(--do);font-weight:600;margin:6px 0 0}
/* 2.7 (s27-a · anh Vũ 02/11 yêu cầu 1): thẻ chương trình ở danh sách — khung <div>, liên kết mở chi tiết phủ cả thẻ (::after), nút "Sao chép" riêng (không lồng nút trong <a>) */
.kct-the{position:relative;transition:transform .08s ease}
.kct-the-lien{display:block;color:inherit;text-decoration:none}
.kct-the-lien::after{content:"";position:absolute;inset:0;border-radius:var(--r-lon)}
.kct-the-lien:focus-visible{outline:none}
.kct-the-lien:focus-visible::after{outline:3px solid var(--chinh);outline-offset:-3px}
.kct-the-chan{position:relative;z-index:1;display:flex;justify-content:flex-end;margin-top:8px;pointer-events:none}   /* chỗ trống của hàng vẫn mở chi tiết */
.kct-the-chan>*{pointer-events:auto}
.kct-the:has(>.kct-the-lien:active){transform:scale(.99)}   /* như thẻ bấm (hc-the bam) — trình duyệt cũ không có :has thì bỏ qua */
body.hc-web .kct-the:hover{box-shadow:var(--bong-2)}
.kct-mm-luat{font-weight:600;color:var(--chu)}
/* 3.7 (s37): tấm Gia hạn — chip chọn nhanh ngày, ô tặng bù, câu "không gia hạn được" */
.kct-gh-chip{margin:-4px 0 12px}
.kct-gh-bu{margin:0 0 8px}
.kct-gh-khong{margin:0 0 12px}
