/* Gói D2b – trợ lý X8 (việc 39, 40): khung "Báo khách qua Zalo" (xưng hô, xem trước tin, tin lỗi), dòng Xưng hô đầu thẻ khách, nhóm khách. */
.d2b-zd { border-top: 1px dashed var(--line, #d5dce6); margin-top: 8px; padding-top: 8px; }
.d2b-zd p { margin: 6px 0; }
.d2b-zd-nhan { color: var(--muted, #5b6b7d); }
.d2b-zd-vang { background: #fff7e0; border: 1px solid #e8c766; border-radius: 6px; padding: 6px 10px; }
.d2b-zd-xh .btn, .d2b-xh-dau .btn { margin-left: 6px; }
.d2b-zd-sdt, .d2b-zd-so { white-space: nowrap; }
.d2b-zd-xtrow { align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.d2b-zd-chon { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.d2b-zd-chon select { max-width: 100%; }
.d2b-zd-hop { border: 1px solid var(--line, #d5dce6); border-radius: 10px; padding: 10px 12px; background: #f7fafc; margin-top: 8px; max-width: 100%; }
.d2b-zd-hop-dau { margin-top: 0; }
.d2b-zd-ts { width: 100%; table-layout: fixed; }
.d2b-zd-ts td, .d2b-zd-ts th { overflow-wrap: anywhere; vertical-align: top; }
.d2b-zd-ts th, .d2b-zd-ts td { padding: 6px 8px; }
.d2b-zd-ts th:first-child, .d2b-zd-ts td:first-child { width: 46%; }
.d2b-zd-ts code { font-size: 12px; overflow-wrap: anywhere; }
.d2b-zd-chixem { font-weight: 600; color: var(--primary-h, #0f6b4f); }
.d2b-zd-tin { list-style: none; padding: 0; margin: 4px 0; }
.d2b-zd-tin li { padding: 6px 0; border-top: 1px solid var(--line, #e3e8ef); overflow-wrap: anywhere; }
.d2b-zd-tin li:first-child { border-top: 0; }
.d2b-zd-loi { margin-top: 4px; background: #fdecec; border: 1px solid #f1b8b8; border-radius: 6px; padding: 6px 10px; }
.d2b-zd-loi .btn { margin-top: 4px; }
.d2b-xh-dau { margin: -4px 0 10px; }
.d2b-xh-dau p { margin: 0; }
.d2b-nk-ql { margin-top: 4px; align-self: flex-start; }
.d2b-zd-dlg .grid2 { gap: 8px; }
.d2b-zd-rong { max-width: min(760px, calc(100vw - 24px)); }
@media (max-width: 560px) {
  .d2b-zd-dlg .grid2 { grid-template-columns: 1fr; }
  .d2b-zd-xtrow .btn { width: 100%; justify-content: center; }
  .d2b-zd-chon { width: 100%; }
}
