/* loc-trung.css — Menu icon AI + popup "Lọc câu trùng" (24/09/2026). Tiền tố .lt- */
.lt-lop {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(15, 23, 42, .55);
    display: flex; align-items: center; justify-content: center; padding: 16px;
}
.lt-hop {
    background: #fff; border-radius: 18px; width: 100%; max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
}
.lt-dau {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: #bb2649; color: #fff;
}
.lt-dau > .material-icons-round { font-size: 26px; }
.lt-dau > div { flex: 1; min-width: 0; }
.lt-dau b { display: block; font-size: 16px; }
.lt-dau i { display: block; font-style: normal; font-size: 12.5px; opacity: .9; margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-x { background: rgba(255,255,255,.18); border: none; color: #fff; width: 32px; height: 32px;
    border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lt-x:hover { background: rgba(255,255,255,.32); }

/* Menu 2 lựa chọn */
.lt-menu { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.lt-chon {
    display: flex; align-items: flex-start; gap: 12px; text-align: left; cursor: pointer;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px;
    font-family: inherit; transition: all .15s;
}
.lt-chon:hover { border-color: #bb2649; background: #fdf2f5; }
.lt-chon > .material-icons-round { font-size: 28px; flex-shrink: 0; }
.lt-ic-tim { color: #7c3aed; }
.lt-ic-do { color: #bb2649; }
.lt-chon b { display: block; font-size: 15px; color: #1e293b; }
.lt-chon i { display: block; font-style: normal; font-size: 12.5px; color: #64748b; margin-top: 3px; line-height: 1.45; }

.lt-cho { padding: 36px 24px; text-align: center; color: #475569; }
.lt-cho .spinner { margin: 0 auto 14px; }

/* Kết quả */
.lt-than { padding: 14px 18px; overflow-y: auto; flex: 1; background: #fafbfc; }
.lt-than h4 { margin: 18px 0 8px; font-size: 14.5px; color: #9A1F3C; }
.lt-than h4:first-of-type { margin-top: 6px; }
.lt-than h4 small { display: block; font-weight: 500; font-size: 12px; color: #64748b; margin-top: 2px; }
.lt-tong { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.lt-tong > div { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.lt-tong b { display: block; font-size: 22px; color: #bb2649; }
.lt-tong span { font-size: 12px; color: #64748b; }

.lt-nhom { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.lt-nhom.nho { padding: 8px 10px; }
.lt-nhom.lech { border-color: #fca5a5; background: #fef2f2; }
.lt-hang { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-top: 1px solid #f1f5f9; }
.lt-hang:first-child { border-top: none; }
.lt-hang.giu { background: #f0fdf4; }
.lt-hang.giu > .material-icons-round { color: #16a34a; font-size: 20px; margin-top: 1px; }
.lt-hang.xoa { cursor: pointer; }
.lt-hang.xoa input { margin-top: 3px; width: 17px; height: 17px; accent-color: #bb2649; flex-shrink: 0; }
.lt-hang.xoa.bo { opacity: .5; }
.lt-cau-noi { flex: 1; min-width: 0; }
.lt-cau-vt { font-size: 11.5px; color: #64748b; font-weight: 600; }
.lt-cau-chu { font-family: 'Times New Roman', Times, serif; font-size: 14.5px; color: #1e293b; margin: 2px 0; line-height: 1.4; }
.lt-cau-da { font-size: 12px; color: #475569; }
.lt-nhom.nho .lt-cau-noi + .lt-cau-noi { border-top: 1px dashed #e2e8f0; margin-top: 6px; padding-top: 6px; }
.lt-cap-dau { font-size: 12px; font-weight: 700; color: #92400e; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.lt-nhan { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.lt-nhan.xanh { background: #dcfce7; color: #15803d; }
.lt-nhan.lam { background: #e0f2fe; color: #0369a1; }
.lt-nhan.xam { background: #f1f5f9; color: #475569; }
.lt-ly-do { flex-shrink: 0; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.lt-ly-do.y_het { background: #f1f5f9; color: #334155; }
.lt-ly-do.ai { background: #ede9fe; color: #6d28d9; }
.lt-ly-do.khac { background: #dcfce7; color: #15803d; }
.lt-ly-do.cho { background: #fef3c7; color: #92400e; }
.lt-ly-do.lech { background: #fee2e2; color: #b91c1c; white-space: normal; }

.lt-ai { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #f5f3ff;
    border: 1px solid #ddd6fe; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; font-size: 13px; color: #4c1d95; }
.lt-ai em { font-size: 12px; color: #b91c1c; font-style: normal; }
.lt-ai-tien { width: 100%; font-size: 12px; font-weight: 700; color: #6d28d9; }
.lt-ai-tien:empty { display: none; }
.lt-trong { font-size: 12.5px; color: #94a3b8; font-style: italic; padding: 4px 2px 8px; }

.lt-chan { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid #eceff3; background: #fff; flex-wrap: wrap; }
.lt-chan-ghi { flex: 1; min-width: 200px; font-size: 12px; color: #64748b; }
.lt-nut {
    display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px;
    border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #334155;
    font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.lt-nut .material-icons-round { font-size: 18px; }
.lt-nut.do { background: #bb2649; border-color: #bb2649; color: #fff; }
.lt-nut.tim { background: #7c3aed; border-color: #7c3aed; color: #fff; height: 34px; }
.lt-nut:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 640px) {
    .lt-lop { padding: 0; align-items: flex-end; }
    .lt-hop { border-radius: 18px 18px 0 0; max-height: 96vh; }
    .lt-hang { flex-wrap: wrap; }
    .lt-chan .lt-nut { flex: 1; justify-content: center; }
}
