/* Công cụ tra cứu ngân hàng — Chợ Giá (bản v2).
 *
 * BẢNG MÀU LẤY TỪ CHÍNH THEME Chogia_V2 (đo bằng getComputedStyle + đếm trong
 * custom.css ngày 24/11/2026), không bịa màu mới:
 *   #13212f  nền thanh điều hướng           → nền hero, chữ đậm
 *   #0f4a83  xanh đậm của theme              → liên kết, ô chính, điểm nhấn
 *   #d7aa07  vàng của theme                  → nhãn trên nền đậm, viền lưu ý
 *   #555e6b  xám chữ phụ của theme           → nhãn, chữ phụ
 *   #f6f8fb  nền nhạt của theme              → nền ô, nền đầu bảng
 *   #e2e4e5  viền của theme
 *
 * 🔴 KHÔNG dùng #007cd4 (màu liên kết mặc định của theme) cho CHỮ: trên nền
 *    trắng nó chỉ đạt 4,0:1, dưới ngưỡng AA 4,5:1. Dùng #0f4a83 (9,1:1).
 * 🔴 KHÔNG dùng nền chuyển sắc dưới chữ: bộ đo tương phản lấy màu nền đặc nên
 *    báo oan trên gradient (đã vấp ở lichhay). Mọi nền có chữ ở đây là màu đặc.
 */

.cg-nh{--dam:#13212f;--xanh:#0f4a83;--vang:#d7aa07;--xam:#555e6b;--nen:#f6f8fb;--vien:#e2e4e5;
  color:#222;font-size:16px;line-height:1.65;}
.cg-nh *,.cg-nh *::before,.cg-nh *::after{box-sizing:border-box;}
.cg-nh a{color:var(--xanh);text-decoration:underline;text-underline-offset:2px;}
.cg-nh a:hover{color:var(--dam);}
.cg-nh code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;
  background:var(--nen);color:var(--dam);padding:1px 6px;border-radius:4px;border:1px solid var(--vien);}
.cg-nh .cg-nh-ma,.cg-nh code.cg-nh-ma{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-weight:700;letter-spacing:.5px;color:var(--xanh);background:#e8f0f8;border:1px solid #c5d6e8;
  padding:2px 8px;border-radius:5px;font-size:.95em;white-space:nowrap;}
.cg-nh .cg-nh-ma a{color:var(--xanh);}
.cg-nh .cg-nh-dam{font-weight:700;color:var(--dam);}

.cg-nh h2.cg-nh-tieu{margin:30px 0 14px;padding:0 0 0 12px;border-left:4px solid var(--xanh);
  font-size:21px;line-height:1.35;font-weight:700;color:var(--dam);}
.cg-nh h3.cg-nh-tieu-nho{margin:22px 0 10px;font-size:17px;line-height:1.4;font-weight:700;color:var(--dam);}

/* ── Hero: nền đậm của thanh điều hướng, chữ trắng ── */
.cg-nh-hero{padding:20px 22px;border-radius:10px;background:var(--dam);color:#fff;}
.cg-nh-hero-nhan{display:inline-block;margin:0 0 10px;padding:3px 11px;border-radius:999px;
  background:var(--vang);color:var(--dam);font-size:12.5px;line-height:1.5;font-weight:700;}
.cg-nh-hero-ten{margin:0;font-size:27px;line-height:1.25;font-weight:700;color:#fff;overflow-wrap:anywhere;}
.cg-nh-hero-phu{margin:6px 0 0;font-size:15px;line-height:1.5;color:#dbe4ee;}
.cg-nh-hero-phu--anh{margin-top:2px;font-size:13.5px;color:#c3cfdc;font-style:italic;}

/* ── Hàng ô số liệu nổi bật ── */
.cg-nh-o-ds{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0 0;}
.cg-nh-o{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;padding:12px 14px 12px;
  border:1px solid var(--vien);border-top:3px solid var(--xanh);border-radius:9px;background:#fff;}
.cg-nh-o-nhan{font-size:12.5px;line-height:1.4;font-weight:600;color:var(--xam);text-transform:uppercase;letter-spacing:.3px;}
.cg-nh-o-gt{font-size:21px;line-height:1.25;font-weight:700;color:var(--dam);font-variant-numeric:tabular-nums;
  overflow-wrap:anywhere;}
.cg-nh-o-phu{font-size:12.5px;line-height:1.4;color:var(--xam);}
.cg-nh-o--chinh{background:var(--xanh);border-color:var(--xanh);border-top-color:var(--vang);}
.cg-nh-o--chinh .cg-nh-o-nhan{color:#dbe7f3;}
.cg-nh-o--chinh .cg-nh-o-gt{color:#fff;font-size:24px;letter-spacing:.6px;}
.cg-nh-o--chinh .cg-nh-o-phu{color:#dbe7f3;}
.cg-nh .cg-nh-chep{align-self:flex-start;margin:6px 0 0;padding:3px 10px;border:1px solid #b9c6d3;border-radius:6px;
  background:#fff;color:var(--xanh);font:600 12.5px/1.5 inherit;font-family:inherit;cursor:pointer;min-height:28px;}
.cg-nh .cg-nh-chep:hover{background:var(--nen);border-color:var(--xanh);}
.cg-nh .cg-nh-chep:focus-visible{outline:2px solid var(--vang);outline-offset:2px;}
.cg-nh .cg-nh-o--chinh .cg-nh-chep{background:#fff;border-color:#fff;color:var(--xanh);}
.cg-nh .cg-nh-chep.da-chep{background:#e7f6ee;border-color:#0b6b3a;color:#0b6b3a;}

.cg-nh p.cg-nh-dan{margin:16px 0 0;font-size:16px;line-height:1.75;color:#222;text-align:left;}
.cg-nh p.cg-nh-tomtat{margin:0 0 12px;font-size:16px;line-height:1.7;color:#222;text-align:left;}
.cg-nh strong{color:var(--dam);}
.cg-nh .cg-nh-hero strong,.cg-nh .cg-nh-o--chinh strong{color:inherit;}

/* ── Lưu ý (viền vàng theme) ── */
.cg-nh .cg-nh-luu-y{margin:14px 0 0;padding:11px 14px;border-radius:8px;background:#fff9e3;
  border:1px solid #ecd98a;border-left:4px solid var(--vang);font-size:15px;line-height:1.65;color:#222;text-align:left;}

/* ── Giải thích mã ── */
.cg-nh-giai{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;}
.cg-nh-giai-o{padding:13px 15px;border:1px solid var(--vien);border-radius:9px;background:var(--nen);}
.cg-nh-giai-dau{margin:0 0 6px;font-size:15px;font-weight:700;color:var(--dam);}
.cg-nh-giai-chu{font-size:14.5px;line-height:1.7;color:#222;}
.cg-nh-giai .cg-nh-luu-y{grid-column:1/-1;margin:0;}

/* ── Bảng hồ sơ ── */
.cg-nh-khung{border:1px solid var(--vien);border-radius:10px;overflow:hidden;background:#fff;}
.cg-nh table.cg-nh-bang-tt{width:100%;border-collapse:collapse;margin:0;font-size:15.5px;border:0;}
.cg-nh .cg-nh-bang-tt th,.cg-nh .cg-nh-bang-tt td{padding:11px 14px;border:0;border-bottom:1px solid var(--vien);
  text-align:left;vertical-align:top;line-height:1.55;}
.cg-nh .cg-nh-bang-tt tr:last-child th,.cg-nh .cg-nh-bang-tt tr:last-child td{border-bottom:0;}
.cg-nh .cg-nh-bang-tt th{width:190px;color:var(--xam);font-weight:600;background:var(--nen);}
.cg-nh .cg-nh-bang-tt td{color:#222;background:#fff;overflow-wrap:anywhere;}

/* ── Lưới tỉnh, thành ── */
.cg-nh-tinh-luoi{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:8px;}
.cg-nh a.cg-nh-tinh-the{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:46px;
  padding:9px 12px;border:1px solid var(--vien);border-radius:8px;background:#fff;text-decoration:none;color:var(--dam);}
.cg-nh a.cg-nh-tinh-the:hover{border-color:var(--xanh);background:#e8f0f8;}
.cg-nh-tinh-ten{font-weight:700;font-size:15px;line-height:1.3;color:var(--xanh);}
.cg-nh-tinh-so{flex:none;padding:1px 8px;border-radius:999px;background:var(--nen);border:1px solid var(--vien);
  font-size:12.5px;font-weight:600;color:var(--dam);white-space:nowrap;}

/* ── Danh sách điểm giao dịch ── */
.cg-nh ul.cg-nh-diem-ds,.cg-nh ol.cg-nh-diem-ds{list-style:none;margin:0;padding:0;border:1px solid var(--vien);
  border-radius:10px;background:#fff;counter-reset:diem;overflow:hidden;}
.cg-nh li.cg-nh-diem{position:relative;margin:0;padding:12px 14px;border-bottom:1px solid var(--vien);list-style:none;}
.cg-nh li.cg-nh-diem:last-child{border-bottom:0;}
.cg-nh li.cg-nh-diem::before{content:none;}
.cg-nh ol.cg-nh-diem-ds--so>li.cg-nh-diem{padding-left:52px;counter-increment:diem;}
.cg-nh ol.cg-nh-diem-ds--so>li.cg-nh-diem::before{content:counter(diem);position:absolute;left:12px;top:12px;
  width:28px;height:28px;border-radius:50%;background:var(--xanh);color:#fff;font-size:13px;font-weight:700;
  line-height:28px;text-align:center;}
.cg-nh-diem-dau{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;}
.cg-nh-diem-ten{font-size:16px;line-height:1.4;font-weight:700;color:var(--dam);}
.cg-nh-nhan{display:inline-block;padding:1px 8px;border-radius:999px;font-size:12px;line-height:1.6;font-weight:600;white-space:nowrap;}
.cg-nh-nhan--cn{background:#e8f0f8;color:var(--xanh);}
.cg-nh-nhan--pgd{background:#fdf3d0;color:#5c4700;}
.cg-nh-nhan--tinh{background:var(--dam);color:#fff;}
.cg-nh-diem-day{margin-top:2px;font-size:13px;line-height:1.5;color:var(--xam);}
.cg-nh-diem-dc{margin-top:4px;font-size:15px;line-height:1.6;color:#222;}
.cg-nh a.cg-nh-bando{margin-left:4px;font-size:13px;font-weight:600;white-space:nowrap;}

/* ── Khối liên quan ── */
.cg-nh-lienquan{margin-top:26px;padding:4px 18px 14px;border:1px solid #c5d6e8;border-radius:10px;background:#e8f0f8;}
.cg-nh .cg-nh-lienquan h2.cg-nh-tieu{margin-top:14px;}
.cg-nh .cg-nh-lienquan ul{margin:0;padding-left:20px;list-style:disc;}
.cg-nh .cg-nh-lienquan li{margin:6px 0;line-height:1.65;font-size:15.5px;color:#222;}
.cg-nh .cg-nh-lienquan a{font-weight:600;}

/* ── Hỏi nhanh ── */
.cg-nh dl.cg-nh-hoi{margin:0;border:1px solid var(--vien);border-radius:10px;overflow:hidden;background:#fff;}
.cg-nh .cg-nh-hoi dt{margin:0;padding:11px 14px 2px;font-size:15.5px;font-weight:700;color:var(--dam);}
.cg-nh .cg-nh-hoi dd{margin:0;padding:0 14px 11px;border-bottom:1px solid var(--vien);font-size:15px;line-height:1.65;color:#222;}
.cg-nh .cg-nh-hoi dd:last-child{border-bottom:0;}

.cg-nh-ve-cha{margin-top:22px;padding:12px 14px;border-radius:9px;background:var(--nen);border:1px solid var(--vien);font-size:15.5px;font-weight:600;}

/* ── Trang tổng ── */
.cg-nh-o-ds--tong{margin-top:0;}
.cg-nh-loc{margin:16px 0 12px;}
.cg-nh-loc label{display:block;margin-bottom:5px;font-size:13.5px;color:var(--dam);font-weight:700;}
.cg-nh input.cg-nh-o-tim{width:100%;max-width:520px;min-height:44px;padding:10px 13px;border:1px solid #8a96a3;border-radius:8px;
  font-size:16px;color:#222;background:#fff;}
.cg-nh input.cg-nh-o-tim::placeholder{color:#5f6b78;opacity:1;}
.cg-nh input.cg-nh-o-tim:focus{outline:2px solid var(--xanh);outline-offset:1px;border-color:var(--xanh);}
.cg-nh-loai{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;}
.cg-nh .cg-nh-loai-nut{min-height:34px;padding:4px 12px;border:1px solid #b9c6d3;border-radius:999px;background:#fff;color:var(--dam);
  font:600 13px/1.5 inherit;font-family:inherit;cursor:pointer;}
.cg-nh .cg-nh-loai-nut span{font-weight:400;color:var(--xam);}
.cg-nh .cg-nh-loai-nut:hover{border-color:var(--xanh);}
.cg-nh .cg-nh-loai-nut[aria-pressed="true"]{background:var(--xanh);border-color:var(--xanh);color:#fff;}
.cg-nh .cg-nh-loai-nut[aria-pressed="true"] span{color:#dbe7f3;}
.cg-nh-loc-ket{margin:8px 0 0;font-size:13.5px;color:var(--dam);min-height:1.2em;}
.cg-nh table.cg-nh-bang-ds{width:100%;border-collapse:collapse;font-size:15px;margin:0;border:0;}
.cg-nh .cg-nh-bang-ds th,.cg-nh .cg-nh-bang-ds td{padding:11px 13px;border:0;border-bottom:1px solid var(--vien);text-align:left;vertical-align:top;background:#fff;color:#222;}
.cg-nh .cg-nh-bang-ds thead th{background:var(--dam);color:#fff;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;
  position:sticky;top:0;z-index:1;}
.cg-nh .cg-nh-bang-ds tbody tr:hover td{background:var(--nen);}
.cg-nh a.cg-nh-ds-ten{font-weight:700;font-size:15.5px;}
.cg-nh-ds-phu{display:block;font-size:13px;line-height:1.45;color:var(--xam);margin-top:2px;}
.cg-nh .cg-nh-bang-ds th.cg-nh-phai,.cg-nh .cg-nh-bang-ds td.cg-nh-phai{text-align:right;font-variant-numeric:tabular-nums;}
.cg-nh-trong{color:#6b7480;}

/* 🔴 Bảng PHẢI cuộn riêng. Không có khối này thì trên điện thoại bảng 4 cột
   đẩy cả trang tràn ngang — đúng lỗi đã gặp ở ndbd và ở khu CTV congcutinh. */
.cg-nh-cuon{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--vien);border-radius:10px;}
.cg-nh-cuon>table{min-width:560px;}

/* ── Nguồn ── */
.cg-nh-nguon{margin-top:28px;padding:14px 16px;border:1px solid var(--vien);border-radius:10px;background:var(--nen);font-size:14.5px;line-height:1.7;color:#222;}
.cg-nh-nguon-dau{margin:0 0 5px;font-size:15.5px;font-weight:700;color:var(--dam);}
.cg-nh-mien-tru{margin-top:6px;color:var(--xam);font-size:13.5px;}

/* ── Textlink chân trang ── */
.cg-nh-textlink{padding:10px 16px;text-align:center;font-size:13px;}
.cg-nh-textlink a{color:#555e6b;text-decoration:none;}
.cg-nh-textlink a:hover{text-decoration:underline;}

@media (max-width:640px){
  .cg-nh-hero{padding:16px;}
  .cg-nh-hero-ten{font-size:22px;}
  .cg-nh-o-ds{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cg-nh-o-ds>.cg-nh-o--chinh{grid-column:1/-1;}
  .cg-nh-o-gt{font-size:18px;}
  .cg-nh-o--chinh .cg-nh-o-gt{font-size:22px;}
  .cg-nh h2.cg-nh-tieu{font-size:19px;}
  .cg-nh .cg-nh-bang-tt th{width:118px;font-size:13.5px;padding:10px;}
  .cg-nh .cg-nh-bang-tt td{font-size:14.5px;padding:10px;}
  .cg-nh-tinh-luoi{grid-template-columns:repeat(2,minmax(0,1fr));}
  .cg-nh ol.cg-nh-diem-ds--so>li.cg-nh-diem{padding-left:46px;}
}

/* ═══════════════════════════════════════════════════════════════════════════
 * v3 — 25/11/2026: gọn lại cho CỘT HẸP.
 *
 * Trang tổng trước đây chạy full chiều rộng vì thiếu post meta `sidebar`. Nay
 * đã có thanh bên như mọi trang khác của Chợ Giá ⇒ cột nội dung từ ~1.140px
 * còn ~800px. Những luật dưới đây là để bảng 131 dòng và các lưới vẫn đọc
 * được ở bề rộng đó, KHÔNG phải đổi phong cách.
 * ═════════════════════════════════════════════════════════════════════════ */

/* Cột mã và cột số co về đúng bề rộng nội dung, nhường hết phần còn lại cho
   tên ngân hàng — thứ duy nhất trong bảng cần chỗ để không gãy dòng xấu. */
.cg-nh .cg-nh-bang-ds th:nth-child(2),.cg-nh .cg-nh-bang-ds td:nth-child(2),
.cg-nh .cg-nh-bang-ds th:nth-child(3),.cg-nh .cg-nh-bang-ds td:nth-child(3),
.cg-nh .cg-nh-bang-ds th:nth-child(4),.cg-nh .cg-nh-bang-ds td:nth-child(4){
  width:1%;white-space:nowrap;}
.cg-nh .cg-nh-bang-ds th,.cg-nh .cg-nh-bang-ds td{padding:9px 11px;}
.cg-nh .cg-nh-bang-ds thead th{font-size:12.5px;}
.cg-nh-ds-phu{font-size:12.5px;}

/* Khối lọc thành một BẢNG ĐIỀU KHIỂN có khung — Sếp yêu cầu đóng khung và
   highlight; khung cũng tách rõ phần "công cụ" khỏi phần "dữ liệu" bên dưới. */
.cg-nh-tong .cg-nh-loc{margin:14px 0 12px;padding:13px 15px;border:1px solid var(--vien);
  border-left:4px solid var(--xanh);border-radius:9px;background:var(--nen);}
.cg-nh-tong .cg-nh-loc label{margin-bottom:6px;}
.cg-nh-tong .cg-nh-loc-ket{margin-bottom:0;font-weight:600;}

/* Ô số liệu: ở cột hẹp cho 2 hàng × 2 ô thay vì 4 ô bí rì. */
@media (min-width:641px) and (max-width:1100px){
  .cg-nh-o-ds{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));}
}

/* Lưới tỉnh, thành: ở cột hẹp 168px cho 4 cột sát nhau, hạ xuống 3 cột cho thoáng. */
@media (min-width:641px){
  .cg-nh-tinh-luoi{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));}
}

/* Nhịp dọc: gom các khối lại gần nhau hơn một nhịp, trang bớt dài mà không chật. */
.cg-nh h2.cg-nh-tieu{margin-top:26px;}
.cg-nh-nguon{margin-top:24px;}

/* ═══════════════════════════════════════════════════════════════════════════
 * 🔴 CỘT PHẢI CỦA TRANG TỔNG — ĐỪNG GỠ KHỐI NÀY
 *
 * Triệu chứng (đo 25/11/2026): bật thanh bên lên thì nó RỖNG suốt 3.800px đầu
 * rồi mới có widget, trông như trang vỡ.
 *
 * Nguyên nhân THẬT (đã chứng minh bằng đối chứng: chặn miền quảng cáo thì
 * `top` của `.col-sidebar` từ 3.796 về đúng 307): script quảng cáo của bên thứ
 * ba gán thẳng `style="margin: auto !important; overflow: hidden !important"`
 * lên MỌI phần tử mang class `sidebar`. Trong khung `display:flex` của theme,
 * `margin:auto` nghĩa là CĂN GIỮA THEO CHIỀU DỌC, mà khung cao bằng bài viết
 * (9.200px) còn thanh bên chỉ ~2.500px ⇒ nó bị đẩy xuống giữa.
 *
 * 🔴 KHÔNG chữa được bằng cách ghi đè `margin` trong tệp CSS: style NỘI TUYẾN
 *    có `!important` luôn thắng `!important` của biểu kiểu. Cũng không chữa
 *    bằng `align-items`/`align-self` vì lề `auto` thắng cả hai.
 *    Trang chi tiết không dính vì thanh bên ở đó là `.panel-group-right`,
 *    không mang class `sidebar`.
 *
 * Cách chữa: đổi ngữ cảnh dàn trang từ flex sang FLOAT. Theo chuẩn CSS, lề
 * `auto` trên phần tử float tính ra 0 — nên script kia có gán gì cũng vô hại,
 * không cần chạy đua với nó bằng JavaScript.
 * ═════════════════════════════════════════════════════════════════════════ */
@media (min-width:1101px){
  body.cg-nh-trang .page-box.has-sidebar{display:block;}
  body.cg-nh-trang .page-box.has-sidebar::after{content:"";display:table;clear:both;}
  body.cg-nh-trang .page-box.has-sidebar>*:first-child{float:left;width:calc(100% - 320px);}
  body.cg-nh-trang .page-box.has-sidebar>.col-sidebar{float:right;width:300px;}
  body.cg-nh-trang .page-box.has-sidebar[data-sidebar-pos="left"]>*:first-child{float:right;}
  body.cg-nh-trang .page-box.has-sidebar[data-sidebar-pos="left"]>.col-sidebar{float:left;}
}

/* Điện thoại, trang tổng: 4 ô chia đều 2×2 thay vì 1 ô full rồi 2+1 lệch. */
@media (max-width:640px){
  .cg-nh-o-ds--tong>.cg-nh-o--chinh{grid-column:auto;}
  .cg-nh-o-ds--tong .cg-nh-o--chinh .cg-nh-o-gt{font-size:20px;}
}

/* ═══════════════════════════════════════════════════════════════════════════
 * 🔴 MÀU LIÊN KẾT — ĐỘ ĐẶC HIỆU, KHÔNG PHẢI THỨ TỰ NẠP
 *
 * Soát 25/11/2026 bắt được: 131 liên kết ở trang tổng và 24 ở trang ngân hàng
 * vẫn ăn `#007cd4` (tương phản 4,34:1 — DƯỚI chuẩn AA 4,5:1) chứ không phải
 * `--xanh` em đặt. Báo cáo "14/14 đạt AA" hôm 24/11 là SAI vì phép đo khi đó
 * chỉ quét vùng hero và ô số liệu, không quét liên kết trong bảng.
 *
 * Nguyên nhân: theme có `.site-content .loop-single a{color:var(--theme-accent-color)}`
 * — độ đặc hiệu (0,2,1), trong khi `.cg-nh a` chỉ (0,1,1) ⇒ **thua vì đặc
 * hiệu, không phải vì nạp trước**. Đổi thứ tự enqueue hay tăng số phiên bản
 * đều vô ích; phải nâng đặc hiệu lên (0,3,1).
 *
 * 🔴 Bài học đo: quét tương phản phải duyệt MỌI nút lá trong khối, không chỉ
 *    vài phần tử tiêu biểu — chữ trong bảng là chỗ nhiều nhất mà dễ bỏ sót nhất.
 * ═════════════════════════════════════════════════════════════════════════ */
.site-content .loop-single .cg-nh a{color:var(--xanh);}
.site-content .loop-single .cg-nh a:hover{color:var(--dam);}
.site-content .loop-single .cg-nh .cg-nh-ma,
.site-content .loop-single .cg-nh .cg-nh-ma a{color:var(--xanh);}
.site-content .loop-single .cg-nh a.cg-nh-tinh-the{color:var(--dam);}
.site-content .loop-single .cg-nh a.cg-nh-tinh-the:hover{color:var(--dam);}
.site-content .loop-single .cg-nh .cg-nh-hero a,
.site-content .loop-single .cg-nh .cg-nh-o--chinh a{color:#fff;}

/* ═══════════════════════ Quỹ tín dụng nhân dân ═══════════════════════ */
.cg-nh .cg-nh-bang-ss th[scope="col"]{background:var(--dam);color:#fff;width:auto;
  font-size:13px;text-transform:uppercase;letter-spacing:.3px;}
.cg-nh .cg-nh-bang-ss th[scope="row"]{width:180px;}
.cg-nh .cg-nh-bang-ss td{font-size:15px;}
.cg-nh-co{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;
  background:#fdf3d0;color:#5c4700;font-size:11.5px;font-weight:600;white-space:nowrap;}

/* Bảng quỹ: tên và địa chỉ là hai cột dài, mã số thuế và tỉnh co vừa nội dung. */
/* 🔴 CỘT TÊN PHẢI CÓ BỀ RỘNG TỐI THIỂU.
   Bản đầu chỉ ghim hai cột mã và tỉnh (`width:1%`) rồi để trình duyệt tự chia
   phần còn lại — cột địa chỉ dài nuốt hết chỗ, cột tên co còn ~80px và tên quỹ
   xếp DỌC mỗi dòng một chữ. Đúng lỗi đã gặp ở nhandinhbongda. Chia tỉ lệ rõ
   ràng, và cho bảng bề rộng tối thiểu để hộp cuộn ngang gánh phần thừa. */
/* `table-layout:fixed` để bề rộng cột ĐÚNG như khai báo và chữ TỰ XUỐNG DÒNG.
   Để `auto` thì cột địa chỉ đòi thêm chỗ, bảng phình quá khung và phải cuộn
   ngang — người đọc thấy địa chỉ bị cắt ở mép phải. */
.cg-nh .cg-nh-cuon--qtd>table{min-width:680px;width:100%;table-layout:fixed;}
.cg-nh .cg-nh-bang-qtd th:nth-child(1),.cg-nh .cg-nh-bang-qtd td:nth-child(1){width:30%;}
.cg-nh .cg-nh-bang-qtd th:nth-child(2),.cg-nh .cg-nh-bang-qtd td:nth-child(2){width:17%;white-space:nowrap;}
.cg-nh .cg-nh-bang-qtd th:nth-child(3),.cg-nh .cg-nh-bang-qtd td:nth-child(3){width:14%;}
.cg-nh .cg-nh-bang-qtd th:nth-child(4),.cg-nh .cg-nh-bang-qtd td:nth-child(4){width:39%;overflow-wrap:anywhere;}
/* 🔴 PHẢI TRẢ LẠI `white-space:normal` cho cột 1 và cột 4.
   Hai bảng dùng chung lớp `cg-nh-bang-ds`, mà bảng ngân hàng đặt
   `th/td:nth-child(2|3|4){width:1%;white-space:nowrap}` để co cột mã. Luật đó
   KHÔNG biết bảng quỹ có nghĩa cột khác: cột 4 ở đây là ĐỊA CHỈ, bị nowrap nên
   không xuống dòng được, đẩy bảng rộng quá khung và địa chỉ bị cắt ở mép phải.
   Đè width thôi chưa đủ — phải đè cả white-space. */
.cg-nh .cg-nh-bang-qtd th:nth-child(1),.cg-nh .cg-nh-bang-qtd td:nth-child(1),
.cg-nh .cg-nh-bang-qtd th:nth-child(4),.cg-nh .cg-nh-bang-qtd td:nth-child(4){white-space:normal;}
.cg-nh .cg-nh-bang-qtd .cg-nh-ds-ten{display:block;font-weight:700;font-size:15px;color:var(--dam);line-height:1.4;}
.cg-nh .cg-nh-bang-qtd td.cg-nh-qtd-dc{font-size:13.5px;color:var(--xam);line-height:1.5;}
.cg-nh .cg-nh-bang-qtd tfoot td,.cg-nh .cg-nh-bang-ds tfoot td{background:var(--nen);border-top:2px solid var(--vien);}

/* 🔴 Bảng quỹ có 826 dòng. Nút lọc theo tỉnh nhiều gấp đôi bảng ngân hàng nên
   phải chặn chiều cao, không thì riêng dải nút đã chiếm hết một màn hình. */
/* 3 hàng nút đúng bằng 116px (nút 34px + khe 6px); để 132px thì lòi nửa hàng thứ tư. */
.cg-nh-qtd .cg-nh-loai{max-height:116px;overflow-y:auto;padding-right:4px;}

/* 🔴 BẢNG 786 DÒNG PHẢI NẰM TRONG HỘP CUỘN RIÊNG.
   Đo 25/11/2026: không có luật này thì trang cao 137.271px — cuộn hết bảng mới
   tới phần hỏi nhanh và khối nguồn, coi như hai phần đó không tồn tại.
   🔴 Bản đầu viết `.cg-nh-cuon:last-of-type` và KHÔNG ăn: `:last-of-type` xét
   theo TÊN THẺ (div cuối trong các div anh em), không phải "phần tử cuối mang
   lớp này". Phải đặt lớp riêng. */
.cg-nh .cg-nh-cuon--qtd{max-height:72vh;overflow:auto;}
.cg-nh .cg-nh-cuon--qtd thead th{position:sticky;top:0;z-index:2;}
