/* KC 0.9.6 — LINK «NCC TỰ ĐIỀN GIÁ» (phần trong app: thẻ ở màn Hỏi giá, hộp ở màn Yêu cầu, lịch sử các lần NCC gửi, cột ở danh sách).
   Trang công khai NCC mở có CSS riêng nhúng trong trang: lib/hoi-gia-link-trang.css */
.hgl-the .the-dau h2 { display: inline-flex; align-items: center; gap: 6px; }
.hgl-the .the-dau h2 .ic { color: var(--chinh); }
.hgl-trong { display: flex; flex-direction: column; gap: 10px; line-height: 1.5; }
.hgl-trong .canh-bao, .hgl-tt .canh-bao { margin: 0; font-size: 13px; }
.hgl-luoi { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: start; }
.hgl-anh { display: flex; flex-direction: column; gap: 8px; }
.hgl-anh img { width: 148px; height: 148px; image-rendering: pixelated; border: 1px solid var(--vien); border-radius: var(--bo-nho); background: #fff; }
.hgl-anh .nut { justify-content: center; }
.hgl-tt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hgl-link { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hgl-link .o-nhap { flex: 1; min-width: 220px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.hgl-link .nut, .hgl-hop .nut { height: 30px; }
.hgl-nd { height: auto !important; min-height: 150px; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; resize: vertical; }
.hgl-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
.hgl-so > div > span { display: block; font-size: 11.5px; color: var(--nhat); }
.hgl-so b { color: var(--chu); font-weight: 600; overflow-wrap: anywhere; }
.hgl-so .hgl-rong { grid-column: 1 / -1; padding-top: 8px; border-top: 1px dashed var(--vien); }
.hgl-ghi { overflow-wrap: anywhere; white-space: pre-line; }
.hgl-ghi-chu { line-height: 1.5; }
.nhan.hgl-moi { margin-left: 4px; }
.nhan.hgl-moi .ic, .nhan .ic { width: 12px; height: 12px; }
.hgl-co-gia { margin-bottom: 10px; }
/* hộp «Đã tạo phiếu hỏi giá» (màn Yêu cầu) */
.hgl-phieu { border: 1px solid var(--vien-2); border-radius: var(--bo-nho); margin-bottom: 8px; overflow: hidden; }
.hgl-phieu .mb-dong-chon { border: 0; border-radius: 0; cursor: default; }
.hgl-hop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px; border-top: 1px dashed var(--vien); background: var(--mat-2); }
.hgl-hop .o-nhap { flex: 1; min-width: 200px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.hgl-hop-chu { display: inline-flex; align-items: center; gap: 6px; flex-basis: 100%; color: var(--chu-2); }
.hgl-hop-chu .ic { color: var(--chinh); }
.hgl-hop-nb { flex-basis: 100%; display: flex; gap: 6px; align-items: center; color: var(--vang); }
/* lịch sử các lần NCC gửi */
.hgl-ls { display: flex; flex-direction: column; gap: 14px; }
.hgl-lan { border: 1px solid var(--vien); border-radius: var(--bo); padding: 10px 12px; }
.hgl-lan-dau { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 4px; }
.hgl-bang-ls { margin-top: 8px; }
.hgl-bang-ls tr.hgl-doi td { background: var(--vang-nhat); }
.hgl-giam { color: var(--xanh); font-weight: 600; }
.hgl-tang { color: var(--do); font-weight: 600; }
@media (max-width: 760px) {
  .hgl-luoi { grid-template-columns: 1fr; }
  .hgl-anh { align-items: center; }
  .hgl-so { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
