/* ===== Tích hợp chatbot thật (10/10/2026): Quản lý bot, Hộp thư, Trợ lý – phần giao diện mới ===== */
.qb-chua{max-width:680px}.qb-chua h3{margin:0 0 6px}
.qb-goc.xem{background:#eef2f7;color:#475569}
.qb-so .do{color:#dc2626}.qb-so .cam{color:#b45309}
.do{color:#dc2626}
/* biểu đồ cột nhỏ 7 ngày */
.qb-bieu{display:flex;align-items:flex-end;gap:8px;height:120px;padding:6px 2px 0}
.qb-bieu>div{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;min-width:0}
.qb-bieu span{display:block;width:100%;max-width:42px;background:linear-gradient(180deg,var(--chinh),#5b8def);border-radius:6px 6px 2px 2px}
.qb-bieu small{font-size:11px;color:var(--muted)}
.qb-ds-gon{margin:6px 0 0;padding-left:18px;font-size:13px}.qb-ds-gon li{margin:2px 0}
details>summary{cursor:pointer;font-size:13px;margin-top:8px}
/* nguồn dữ liệu */
.qb-form-dl{flex-wrap:wrap}.qb-form-dl textarea{flex-basis:100%;border:1px solid var(--line);border-radius:8px;padding:8px;font:13px var(--f);resize:vertical}
.qb-form-dl input[name=url]{flex:2 1 320px}.qb-form-dl p.ghi{flex-basis:100%;margin:2px 0 0}
.qb-doan{margin-top:10px;border:1px solid var(--line);border-radius:10px;padding:10px;max-height:340px;overflow:auto;background:#fbfcfe}
.qb-doan-o{border-bottom:1px dashed var(--line);padding:6px 0}.qb-doan-o:last-child{border-bottom:0}.qb-doan-o p{margin:2px 0;font-size:12.5px;color:#334155}
.qb-duyet small.ghi{display:block;margin-top:2px}
.qb-duyet input[name=tra_loi_ngan]{border:1px solid var(--line);border-radius:8px;padding:6px 8px;font:13px var(--f)}
.qb-day{display:grid;gap:8px}.qb-day input,.qb-day textarea{border:1px solid var(--line);border-radius:8px;padding:8px 10px;font:13.5px var(--f);resize:vertical}.qb-day button{justify-self:start}
.qb-tt-hoat{max-height:420px;overflow:auto;margin-top:8px}
.qb-tt-o{display:flex;gap:8px;align-items:flex-start;border-bottom:1px solid #eef2f7;padding:7px 0}.qb-tt-o>div{flex:1;min-width:0}.qb-tt-o small{display:block;color:var(--muted);font-size:11.5px}.qb-tt-o p{margin:3px 0 0;font-size:12.5px;color:#334155}
/* chỉ xem: khóa ô nhập trong thân tab */
.qb-than.chi-xem input,.qb-than.chi-xem select,.qb-than.chi-xem textarea{pointer-events:none;opacity:.75}
.qb-than.chi-xem .cong-tac{pointer-events:none;opacity:.7}
.qb-than.chi-xem [data-qb-form=thu] textarea,.qb-than.chi-xem [data-dich-qt] input,.qb-than.chi-xem [data-dich-qt] select,.qb-than.chi-xem [data-dich-qt] textarea{pointer-events:auto;opacity:1}
.cong-tac.khoa{opacity:.65}
/* kênh */
.qb-kenh-dong>div{flex:1;min-width:0}.qb-kenh-dong small{display:block;overflow-wrap:anywhere}.qb-kenh-dong code{font-size:11px;background:#f1f5f9;border-radius:4px;padding:0 4px}
.kn-form{display:grid;gap:10px;margin-top:8px}.kn-form .o{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:var(--muted)}
.kn-form .o input{border:1px solid var(--line);border-radius:9px;padding:9px 11px;font:13.5px var(--f);color:var(--ink)}
.kn-xong code{overflow-wrap:anywhere}
.kn-than{max-height:calc(100vh - 170px);overflow:auto}
/* thị trường */
.qb-tin-tt{display:flex;flex-direction:column;gap:2px;max-height:520px;overflow:auto}
.qb-tin-o{display:grid;gap:1px;padding:8px 6px;border-bottom:1px solid #eef2f7}.qb-tin-o.khan{background:#fff7ed}
.qb-tin-o span{font-size:11.5px;color:var(--muted);font-weight:600}.qb-tin-o a{color:var(--ink);font-weight:600;font-size:13.5px;text-decoration:none}.qb-tin-o a:hover{color:var(--chinh);text-decoration:underline}
.qb-tin-o small{font-size:11.5px;color:var(--muted)}
.qb-ban-tin{margin-top:10px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:12px;font-size:13px;line-height:1.55;max-height:460px;overflow:auto}
/* chat thử: gợi ý câu hỏi */
.qb-thu .tn-goi-y{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.qb-thu .tn-goi-y button{border:1px solid var(--tl,var(--chinh));background:#fff;color:var(--tl,var(--chinh));border-radius:999px;padding:3px 10px;font:12.5px var(--f);cursor:pointer}
/* hộp thư: tin tự động, kết quả gửi */
.ib-tn.bot.tu-dong .ib-bong{border-style:dashed}
.ib-gui-loi{color:#dc2626;font-size:11px}
.ib-dang{position:absolute;top:8px;right:12px;font-size:11.5px;color:var(--muted)}
.qb-luoi-o input:not([type=checkbox]):not([type=radio]){border:1px solid var(--line);border-radius:8px;padding:7px 9px;font:13.5px var(--f);color:var(--ink);background:#fff;width:100%;box-sizing:border-box}
.qb-luoi-o label{display:flex;flex-direction:column;gap:4px;justify-content:flex-end}
@media (max-width:700px){.qb-bieu{height:90px;gap:4px}}
