/*!
Template :	ICOCrypto @by Softnio
Theme	 :  Default
Version   :  1.9.3
Updated   :  05/05/2021 
*/
/*! WRITE YOUR CUSTOM STYLE **/

/* ======================================================================
   HỘP THOẠI / THÔNG BÁO TRÊN ĐIỆN THOẠI  (≤600px)      [thêm 2026-10-12]
   ----------------------------------------------------------------------
   Khối này được đặt Y HỆT ở HAI tệp vì không tệp nào phủ hết được:
     - assets/css/common.css : mọi trang quản trị + các trang công khai
                               dùng chung client/viewpart/HeadMeta.html
     - assets/css/theme.css  : các trang công khai tự khai <head> riêng
                               (trang chủ, chi tiết tập dữ liệu, tin tức…)
   SỬA MỘT TỆP THÌ PHẢI SỬA TỆP CÒN LẠI.
   Toàn bộ nằm trong @media nên máy tính KHÔNG đổi gì.
   ====================================================================== */
@media (max-width: 600px) {

    /* --- 1. Hộp thoại khai bề rộng cố định ngay trong thẻ ---------------
       Đo trên màn 375px: #show-guide-popup khai min-width:800px -> thẻ bị
       đẩy lòi 87px ra ngoài mép phải; #show-guide-group khai 1000px -> lòi
       191px, gần như không bấm tới. Kiểu nội tuyến chỉ thua !important,
       nên ở đây bắt buộc dùng !important. Còn 5 chỗ tương tự bên quản trị. */
    .modal .modal-dialog {
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        margin: 12px 10px !important;
    }
    /* .modal-dialog-centered biến thẻ cha thành flex: thẻ con co lại bằng nội dung
       (đo được 110px với hộp còn rỗng). Ép đầy bề ngang cho cân. */
    .modal .modal-dialog-centered .modal-content { width: 100%; }
    .modal .modal-content {
        border-radius: 14px;
        border: none;
        box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
    }
    /* KHÔNG đặt max-height + overflow cho .modal-body: chính thẻ .modal đã cuộn rồi
       (bootstrap bật .modal-open .modal{overflow-y:auto}). Thêm hộp cuộn thứ hai lồng
       vào nhau trên điện thoại rất khó dùng, lại cắt mất các danh sách thả xuống
       (select2…) nằm trong hộp thoại. Đo trên 375x812: không hộp nào cao quá màn hình. */

    /* --- 2. Vùng chạm ----------------------------------------------------
       Đo được: nút chính của các hộp Đăng nhập / Đăng ký / Quên mật khẩu chỉ
       cao 33px, ô nhập của "Đổi thông tin tài khoản" chỉ 27px, dấu × chỉ 26px.
       Khuyến nghị chung cho cảm ứng là 44px. */
    .modal .modal-content .btn,
    .modal .modal-content button:not(.close):not(.modal-close):not(.iziModal-button) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .modal .modal-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
    .modal .modal-content select,
    .modal .modal-content textarea,
    .modal .modal-content .form-control {
        min-height: 44px;
        /* 16px: dưới mức này Safari trên iPhone tự phóng to trang khi bấm vào ô. */
        font-size: 16px;
    }
    .modal .modal-content textarea { min-height: 88px; }
    /* account.html có <style> nội tuyến ghim min-height:0!important cho 2 nút của
       hộp Đổi mật khẩu. Bộ chọn đó có id nên luật chung ở trên không với tới;
       phải viết lại với độ ưu tiên cao hơn. Đây là chỗ DUY NHẤT trong dự án. */
    #modalChangePass .modal-content .action-button button { min-height: 44px !important; }

    .modal .modal-content .close,
    .modal .modal-content .modal-close {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        line-height: 1;
        opacity: .8;
    }

    /* --- 3. Hàng nút dưới chân: chia đều cả hàng cho dễ bấm ------------- */
    .modal .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 14px;
    }
    .modal .modal-footer > .btn,
    .modal .modal-footer > button {
        flex: 1 1 130px;
        margin: 0 !important;
        min-width: 0;
    }

    /* --- 4. iziModal (hộp thoại dùng ở màn khai thác dữ liệu, bình luận…) -
       Thư viện đặt sẵn width:700. Đo được trên màn 375px: rộng 383px, lệch
       trái -4px, tức lòi 4px và dán sát hai mép, nhìn như bị cắt. */
    /* SỬA 2026-10-14 — `margin:0` ở bản đầu làm hộp DÍNH LÊN ĐỈNH MÀN.
       iziModal canh giữa bằng `top:0;bottom:0;margin:auto`; bỏ margin là mất canh.
       Đo trên /lien-he màn 375px: hộp "Câu hỏi của tôi" nằm ở y 0..347, đầu thẻ
       chui xuống DƯỚI thanh đầu trang -> mất tiêu đề và **nút × bấm không được**
       (elementFromPoint ở giữa nút X trả về .navbar-toggler-icon).
       Nay canh giữa bằng transform (giống .lc-pop-modal) và chặn chiều cao để hộp
       dài vẫn cuộn được bên trong chứ không lòi ra ngoài màn. */
    .iziModal {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        left: 10px !important;
        right: 10px !important;
        top: 50% !important;
        bottom: auto !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
        max-height: calc(100vh - 24px) !important;
        border-radius: 12px !important;
    }
    /* Hộp dài hơn màn: cho phần thân cuộn, đầu thẻ ở lại để luôn bấm được nút ×. */
    .iziModal .iziModal-content { max-height: calc(100vh - 24px - 48px); overflow-y: auto; }
    .iziModal .iziModal-header { padding-left: 14px; padding-right: 14px; }
    .iziModal .iziModal-content { padding: 14px !important; }
    .iziModal .iziModal-button { width: 44px; height: 44px; }

    /* --- 5. Mẩu thông báo (iziToast): chừa lề, chữ không bị ép ---------- */
    .iziToast-wrapper { padding: 0 8px; }
    .iziToast { width: 100%; border-radius: 10px; }
    .iziToast .iziToast-message { font-size: 13.5px; line-height: 1.45; }

    /* --- 6. Hộp xác nhận dùng chung (LcConfirm) ------------------------- */
    /* Lớp phủ đã là flex và tự chừa 20px mỗi bên; chỉ cần bảo thẻ ĐỪNG co lại.
       (Lần đầu tôi đặt calc(100% - 28px) làm thẻ hẹp đi còn 298px — hẹp hơn cả lúc chưa sửa.) */
    .pcf-card { width: 100% !important; flex: 1 1 auto; }
    .pcf-card .pcf-x { width: 40px; height: 40px; }
}
/* ============================================================================
 * NGĂN KÉO MENU ĐIỆN THOẠI — khung dùng chung (chuyển từ client-page/trangchu-v2.css
 * sang đây 2026-10-12). Ở THEME.CSS chứ không phải common.css: đã đo, common.css
 * KHÔNG được nạp ở /trang-chu, /dataset, /dataset/chi-tiet/:id. theme.css mới là
 * tệp duy nhất có mặt trên mọi
 * trang công khai (12/12), kể cả /login, /register, /forgot-password (chúng
 * không nạp trangchu-v2.css). Mã dựng khung nằm ở assets/js/common.js.
 * theme.css không nạp ở khu quản trị; kể cả có thì cũng vô hại vì mọi luật bám .lc-drawer /
 * .lc-burger, mà JS chỉ tạo chúng khi có .lc-topbar hoặc .dk-topbar.
 * ========================================================================== */
/* ---- Ngăn kéo menu điện thoại (JS dựng khung ở home.js) ---- */
.lc-burger{display:none;width:40px;height:40px;flex-shrink:0;margin-left:auto;border:none;
  background:rgba(255,255,255,.14);border-radius:9px;color:#fff;align-items:center;justify-content:center;cursor:pointer}
.lc-burger svg{width:19px;height:19px}
.lc-drawer-mask{position:fixed;inset:0;background:rgba(10,18,36,.5);opacity:0;pointer-events:none;
  transition:opacity .22s;z-index:1200}
.lc-drawer-mask.on{opacity:1;pointer-events:auto}
.lc-drawer{position:fixed;top:0;right:0;bottom:0;width:min(284px,86vw);background:#fff;z-index:1201;
  transform:translateX(100%);transition:transform .25s cubic-bezier(.2,.7,.3,1);
  display:flex;flex-direction:column;box-shadow:-10px 0 34px rgba(15,23,42,.24)}
.lc-drawer.on{transform:none}
.lc-drawer-head{background:var(--lc-navy,#123F8F);color:#fff;padding:12px 10px 12px 14px;display:flex;
  align-items:flex-start;gap:8px;justify-content:space-between;flex-wrap:wrap}
/* Khối tài khoản / 2 nút Đăng ký–Đăng nhập được chuyển vào đây. Chúng vốn tô màu cho
   thanh navy nên để trên nền navy là tự đúng, không cần đè màu.

   CẢNH BÁO — VÌ SAO CHUỖI CHỌN DÀI ĐẾN THẾ: bản máy tính tô chip bằng
   ".lc-home .lc-nav-actions .menu-toggle" — BA lớp. Viết ".lc-drawer-acc .menu-toggle"
   (HAI lớp) là THUA, kể cả khi có !important, vì !important chỉ so trong cùng mức ưu tiên.
   Hậu quả đã đo được: li.has-sub giữ display:flex của bản máy tính nên menu con nằm
   CẠNH chip chứ không nằm DƯỚI, chip bị ép còn 35px. Dùng tiền tố 3 lớp
   ".lc-drawer .lc-drawer-head .lc-drawer-acc" cho chắc thắng, đừng rút ngắn lại. */
/* position:relative = mốc định vị cho menu con nổi bên dưới;
   z-index cao hơn thân ngăn kéo để menu con phủ lên danh sách chứ không bị lấp. */
.lc-drawer .lc-drawer-head{padding:10px 10px 10px 12px;align-items:center;
  position:relative;z-index:3}
.lc-drawer .lc-drawer-head .lc-drawer-acc{flex:1;min-width:0;display:block}
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-nav-actions{display:flex;flex-wrap:wrap;align-items:center;
  gap:8px;width:100%;margin:0!important;padding:0!important;border:none!important;list-style:none}
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-nav-actions > li{min-width:0;list-style:none}

/* ---- Chip tài khoản ---- */
/* Phải là KHỐI thì menu con mới đổ xuống dưới được (bản máy tính để flex). */
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-item.has-sub{display:block;width:100%;position:static!important}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-toggle{display:flex!important;align-items:center;gap:11px;
  width:100%;min-width:0;padding:7px 8px 7px 6px!important;border-radius:11px!important;
  font-size:14px!important;font-weight:700!important;line-height:1.25!important;color:#fff!important;
  background:transparent!important;border:none!important;box-shadow:none!important;
  text-align:left;justify-content:flex-start;min-height:0!important;transition:background .18s}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-toggle:hover,
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-sub-open > .menu-toggle{background:rgba(255,255,255,.13)!important}
/* ảnh đại diện có style nội tuyến width:2.25rem;border-radius:5px nên phải !important */
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-toggle img{width:40px!important;height:40px!important;
  border-radius:50%!important;object-fit:cover;flex-shrink:0;background:rgba(255,255,255,.18);
  box-shadow:0 0 0 2px rgba(255,255,255,.4)}
/* mũi tên tự vẽ (theme dùng ký tự biểu tượng định vị tuyệt đối — tắt đi rồi vẽ lại) */
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-item.has-sub > .menu-toggle:after{
  content:""!important;position:static!important;margin-left:auto;flex-shrink:0;width:8px;height:8px;
  border:none;border-right:2px solid rgba(255,255,255,.8);border-bottom:2px solid rgba(255,255,255,.8);
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .22s;
  font-size:0!important;opacity:1!important;right:auto!important;top:auto!important}
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-sub-open > .menu-toggle:after{
  transform:rotate(-135deg) translate(-2px,-2px)}
/* Chip 2 dong (AccountChipService) trong ngan keo: chu chiem phan con lai, HIEN DU nhan + ten co quan (khong bi
   gioi han be ngang nhu thanh may tinh). Ngan keo gan vao <body> nen o trang boc .lc-home bang <div> no KHONG nam
   trong .lc-home -> phai viet du kieu o day, khong dua vao luat .lc-home cua trangchu-v2.css.
   Chuoi ".lc-acc-org .lc-acc-orgname" de thang luat an ten (man < 1440) ben trangchu-v2.css. */
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-acc-txt{display:block;flex:1;min-width:0;max-width:none;text-align:left;line-height:1.25}
/* !important co chu: o trang body.lc-home, luat may tinh ".lc-home .lc-nav-actions .lc-acc-org{font-size:.78em!important}"
   cung trung vao chip trong ngan keo -> phai !important + chuoi dai hon moi thang. */
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-acc-name{display:block;font-size:14px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Ten co quan trong ngan keo: dien thoai khong re chuot xem title duoc -> cho xuong TOI DA 2 dong thay vi cat "…"
   (do o 375px: dau ngan keo con nut dong, chip ~248px, ten bi cat con "So Dan toc…"). */
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-acc-org{display:flex;align-items:flex-start;gap:5px;min-width:0;margin-top:2px;font-size:11px!important;font-weight:500;line-height:14px}
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-acc-org .lc-acc-orgname{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;min-width:0;overflow:hidden;white-space:normal;opacity:.85;font-size:inherit!important}
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-acc-org .lc-acc-st{flex:none;font-style:normal;font-size:9.5px!important;font-weight:700;line-height:14px;padding:0 6px;border-radius:999px;background:#FFC861;color:#5A3A00!important}
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-acc-st.off{background:#F6C4C4;color:#7A1F1F!important}

/* ---- Menu con: THẢ NỔI đè lên danh sách, không đẩy các dòng dưới xuống ----
   Lúc còn nằm chen trong dải đầu thì nền trong suốt là đẹp (nền navy lót dưới).
   Nay nó phủ lên nền TRẮNG của thân ngăn kéo nên nền phải ĐẶC, kèm đổ bóng,
   nếu không chữ sáng sẽ chìm vào nền trắng. Dáng vẻ còn lại giữ nguyên. */
/* `display` KHÔNG chuyển động được — bật/tắt nó là tấm panel "nhảy" ra, rất thô.
   Nên để display:block cố định rồi ẩn/hiện bằng opacity + transform.
   ⚠ `pointer-events:none` lúc đóng là BẮT BUỘC: thiếu nó, tấm vô hình vẫn nằm đè
   và NUỐT cú chạm vào 4 mục menu ngay dưới (bấm không ăn mà không có lỗi gì). */
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub{display:block!important;
  position:absolute!important;top:100%!important;left:12px!important;right:10px!important;
  bottom:auto!important;width:auto!important;min-width:0!important;float:none!important;
  margin:4px 0 0!important;padding:5px!important;list-style:none;z-index:5;
  background:var(--lc-navy,#123F8F)!important;border:1px solid rgba(255,255,255,.22)!important;
  border-radius:12px!important;box-shadow:0 16px 36px rgba(8,20,45,.45)!important;
  max-height:calc(100vh - 92px);overflow-y:auto;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transform:translateY(-10px) scale(.96)!important;transform-origin:top right;
  /* visibility đổi NGAY lúc mở, nhưng CHỜ hết chuyển động mới ẩn lúc đóng,
     nếu không tấm biến mất ngay từ khung hình đầu và coi như không có hoạt ảnh. */
  transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.25,1),visibility 0s linear .24s}
.lc-drawer .lc-drawer-head .lc-drawer-acc .lc-sub-open .menu-sub{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  transform:none!important;
  transition:opacity .18s ease,transform .24s cubic-bezier(.2,.8,.25,1),visibility 0s}
/* Người dùng bật "giảm chuyển động" của máy thì bỏ hoạt ảnh. */
@media (prefers-reduced-motion:reduce){
  .lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub,
  .lc-drawer .lc-drawer-head .lc-drawer-acc .lc-sub-open .menu-sub,
  .lc-drawer .lc-drawer-head .lc-drawer-acc .menu-item.has-sub > .menu-toggle:after{
    transition:none!important}
}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub > li{width:100%;list-style:none}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub > li + li{border-top:1px solid rgba(255,255,255,.13)}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub .menu-link{display:flex!important;align-items:center;
  gap:10px;padding:12px 10px!important;border-radius:8px;background:transparent!important;
  justify-content:flex-start!important;
  color:#EAF2FF!important;font-size:13px!important;font-weight:600!important;
  white-space:normal;text-align:left}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub .menu-link:hover{
  background:rgba(255,255,255,.16)!important;color:#fff!important}
/* biểu tượng có margin-right nội tuyến — dùng gap cho đều, nên phải !important */
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub em{width:17px;flex-shrink:0;text-align:center;
  font-size:13px;opacity:.9;margin-right:0!important}
/* Huy hieu vai tro (AccountChipService): khoi anh + huy hieu la 1 phan tu flex; anh 40px -> huy hieu lon hon chut.
   Dong vai tro dau menu con: chu sang tren nen navy, khong bam duoc. */
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-toggle .lc-acc-av{position:relative;flex-shrink:0;margin:0;line-height:0}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-toggle .lc-acc-av .lc-acc-badge{width:18px;height:18px;right:-2px;bottom:-2px}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-toggle .lc-acc-av .lc-acc-badge svg{width:10px;height:10px}
.lc-drawer .lc-drawer-head .lc-drawer-acc .menu-sub .lc-acc-role{padding:11px 10px 10px;cursor:default;
  color:#fff;font-size:13px!important}

/* 2 nút Đăng ký / Đăng nhập (khi CHƯA đăng nhập) chia đôi hàng.
   Đo được 28px — quá nhỏ để chạm, nâng lên 40px. */
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn{flex:1 1 0;min-width:0;white-space:nowrap;
  min-height:40px!important;display:inline-flex;align-items:center;
  justify-content:center;text-align:center}
.lc-drawer-x{width:36px;height:36px;border:none;background:rgba(255,255,255,.14);border-radius:8px;
  color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.lc-drawer-x svg{width:17px;height:17px}
.lc-drawer-body{flex:1;overflow:auto;padding:6px 0 16px}
/* hai thẻ <ul> gốc được DI CHUYỂN vào đây — chỉ đổi cách bày, giữ nguyên nội dung */
.lc-drawer .lc-nav{display:block;width:100%;margin:0;padding:0;font-size:14px}
.lc-drawer .lc-nav > li{display:block;width:100%;border-bottom:1px solid #F2F4F8}
.lc-drawer .lc-nav a,.lc-drawer .lc-nav .menu-link{display:block;padding:13px 16px;
  font-size:13.5px!important;color:#1B2440;white-space:normal;text-align:left}
.lc-drawer .lc-nav-actions{display:flex;gap:10px;padding:16px;margin:0;border-top:1px solid #E6EAF2}
.lc-drawer .lc-nav-actions > *{flex:1}
.lc-drawer .lc-nav-actions a,.lc-drawer .lc-nav-actions button{width:100%;justify-content:center;text-align:center}
@media (max-width:600px){
  /* Thanh đầu trang còn 1 hàng: thương hiệu + nút ☰.
     Neo vào .lc-ngan-keo (do JS gắn lên <html> khi ngăn kéo đang hoạt động) chứ
     KHÔNG neo vào .lc-home: 4 trang /dataset, /dataset/chi-tiet/:id, /tin-tuc,
     /chi-tiet-tin-tuc/:id không có .lc-home mà vẫn dùng chung thanh này. Cũng
     không viết luật trần cho .lc-topbar vì TopNav khu quản trị trùng tên lớp. */
  .lc-ngan-keo .lc-topbar{justify-content:space-between;flex-wrap:nowrap;row-gap:0;padding:9px 14px}
  .lc-ngan-keo .lc-brand{font-size:11.5px;white-space:normal;line-height:1.25}
}

/* ---- Trình đơn trong ngăn kéo: gọn và dễ bấm hơn ---- */
.lc-drawer .lc-nav > li > a,.lc-drawer .lc-nav > li > .menu-link{
  position:relative;padding:14px 16px 14px 34px!important;font-weight:600;letter-spacing:.01em}
/* chấm nhỏ đầu dòng thay cho gạch chân của bản máy tính */
.lc-drawer .lc-nav > li > a::before,.lc-drawer .lc-nav > li > .menu-link::before{
  content:'';position:absolute;left:16px;top:50%;transform:translateY(-50%);
  width:6px;height:6px;border-radius:50%;background:#CBD5E6}
.lc-drawer .lc-nav > li > a:hover,.lc-drawer .lc-nav > li > .menu-link:hover{background:#F4F9FF;color:#1F6FDD}
.lc-drawer .lc-nav > li > a:hover::before,.lc-drawer .lc-nav > li > .menu-link:hover::before{background:#1F6FDD}
/* bỏ gạch chân / viền thừa mà bản máy tính dùng để đánh dấu trang hiện tại */
.lc-drawer .lc-nav > li > a::after,.lc-drawer .lc-nav > li > .menu-link::after{display:none!important}

/* ---- Thanh đầu trang của /login, /register, /forgot-password (bộ dk-*) ---- */
@media (max-width: 600px) {
  /* Trước: cao 91px vì thương hiệu và 2 nút phải xuống 2 hàng. Nay 1 hàng. */
  .lc-ngan-keo .dk-topbar { flex-wrap: nowrap; gap: 10px; padding: 8px 14px; }
  .lc-ngan-keo .dk-brand { font-size: 11.5px; line-height: 1.25; white-space: normal; min-width: 0; }
  .lc-ngan-keo .dk-brand-logo { width: 28px; height: 28px; }
  /* 2 nút Đăng ký / Đăng nhập đã nằm trong ngăn kéo rồi, đừng để lại ở thanh. */
  .lc-ngan-keo .dk-topbar > .dk-nav-actions { display: none; }
  /* .dk-nav bị dangky-v2.css đặt display:none ở ≤640px; trong ngăn kéo phải hiện
     lại. Bộ chọn 2 lớp nên thắng luật 1 lớp đó. */
  .lc-drawer .dk-nav { display: block !important; }
  .lc-drawer .dk-nav > li { display: block; width: 100%; }
  /* Hai nút trong dải đầu ngăn kéo: vốn tô cho nền navy nên để đó là vừa màu. */
  .lc-drawer .lc-drawer-head .dk-btn-reg,
  .lc-drawer .lc-drawer-head .dk-btn-login {
    flex: 1 1 0; min-width: 0; min-height: 40px; display: inline-flex;
    align-items: center; justify-content: center; text-align: center; font-size: 12px;
  }
}

/* ============================================================================
 * THANH DAU TRANG DONG NHAT TREN DIEN THOAI                      (2026-10-12)
 * ----------------------------------------------------------------------------
 * Cổng đang có BA kiểu thanh đầu trang khác hẳn nhau. Số đo ở màn 375px:
 *
 *                      cao    logo   chữ      nút ☰                vị trí
 *   .lc-topbar  (9 tr)  58px  30px   11px     40×40 nền mờ, bo 9   sticky
 *   .dk-topbar  (3 tr)  56px  28px   12,5px   40×40 nền mờ, bo 9   sticky
 *   .lc-top-ck  (2 tr)  56px  38px   (ẨN)     43×29 trong suốt     static
 *
 * Gộp cả ba về MỘT chuẩn: cao 56px · logo 28px · chữ 12px · nút ☰ 40×40
 * nền rgba(255,255,255,.14) bo 9px · dính mép trên.
 * (Chiều cao do chính nút ☰ 40px + đệm 8px trên dưới quyết định.)
 * ========================================================================== */
@media (max-width: 600px) {

  /* --- 1. Đệm: cho cả ba cao đúng 56px --- */
  .lc-ngan-keo .lc-topbar,
  .lc-ngan-keo .dk-topbar { padding: 8px 14px; }
  /* Trang /gioi-thieu, /lien-he dùng navbar bootstrap riêng, không có ngăn kéo
     nên KHÔNG có dấu .lc-ngan-keo — phải neo thẳng vào .lc-top-ck. */
  .lc-top-ck { position: sticky; top: 0; z-index: 1000; }
  .lc-top-ck .bottom__header { min-height: 56px; align-items: center; padding: 8px 14px !important; }

  /* --- 2. Logo 28px --- */
  .lc-ngan-keo .lc-brand-logo,
  .lc-ngan-keo .dk-brand-logo { width: 28px; height: 28px; }
  .lc-top-ck .head--logo { width: 28px !important; height: 28px !important; margin-right: 9px !important; }

  /* --- 3. Tên cổng: 12px, cho xuống 2 dòng chứ không cắt --- */
  /* Có một luật nội tuyến của phần cấu hình cỡ chữ đặt 13px !important cho
     ".lc-topbar *", lại có luật ≤400px đặt .lc-brand 11px — ba thanh ra ba cỡ.
     Chốt cứng một cỡ cho cả ba, bộ chọn 3 lớp + !important để không ai lật được. */
  .lc-ngan-keo .lc-topbar .lc-brand,
  .lc-ngan-keo .dk-topbar .dk-brand { font-size: 12px !important; line-height: 1.25; gap: 9px; }
  /* Tên cổng ở 2 trang này nằm trong HAI thẻ <p> nên xuống 2 dòng, cỡ 13px,
     nét mảnh (300) — khác hẳn 1 dòng đậm của 12 trang kia. Cho chúng chảy
     cùng một dòng, cùng cỡ, cùng độ đậm. */
  /* Hai thẻ <p> là KHỐI nên mỗi cái chiếm trọn một dòng (đo được <p> đầu rộng
     258px = cả hàng) -> tên luôn xuống 2 dòng. Dùng flex cũng không cứu được.
     Cho chúng thành chữ TRONG DÒNG để chảy liền nhau y như một đoạn text,
     đúng kiểu .lc-brand / .dk-brand của 12 trang kia. */
  .lc-top-ck .m089-title__header { display: block !important; min-width: 0; }
  .lc-top-ck .m089-title__header p { display: inline; }
  .lc-top-ck .m089-title__header p + p::before { content: " "; }
  .lc-top-ck .m089-title__header p { font-size: 12px !important; font-weight: 800 !important;
    line-height: 1.25; margin: 0 !important; color: #fff; }
  /* Khối menu bên phải đang đệm 7px trên dưới làm thanh cao 70px thay vì 56px. */
  .lc-top-ck .nav-total { padding-top: 0 !important; padding-bottom: 0 !important; }
  /* Ở 2 trang kia khối tên đang mang cả d-none lẫn d-xl-block lẫn d-xl-none,
     tức BỊ ẨN Ở MỌI BỀ RỘNG — nên chỉ thấy mỗi logo, lệch hẳn 12 trang còn lại.
     Cho hiện lại trên điện thoại để ba thanh giống nhau. */
  .lc-top-ck .m089-title__header { display: block !important; }
  .lc-top-ck .m089-title__header p { font-size: 12px !important; line-height: 1.25; margin: 0 !important; }
  /* Lưới bootstrap chia col-6 / col-6 nên tên cổng chỉ được nửa thanh (121px),
     không đủ cho một dòng nên phải xuống 2 dòng — lệch hẳn 12 trang kia.
     ĐỔI TỈ LỆ CỘT (vẫn là cột, giữ nguyên thứ tự và cách xuống dòng của lưới)
     chứ KHÔNG đổi sang flex:1 — thử rồi: hàng vỡ, nút ☰ nhảy sang trái,
     thanh phình lên 89px. */
  /* flex-center-y của theme có cả justify-content:center nên logo bị đẩy vào
     giữa cột (đo được x=66 thay vì 14). Ép về sát trái cho khớp 2 thanh kia. */
  .lc-top-ck .logo-title { display: flex; align-items: center; justify-content: flex-start;
    min-width: 0; flex: 0 0 85%; max-width: 85%; padding-left: 0 !important; }
  /* Khối bên phải chỉ cần chứa nút ☰ 40px -> 15% (52px) là đủ, phần còn lại
     nhường hết cho tên cổng để nó nằm gọn MỘT dòng như 12 trang kia. */
  .lc-top-ck .nav-total { flex: 0 0 15%; max-width: 15%; }

  /* --- 4. Nút ☰ giống hệt nút của ngăn kéo --- */
  .lc-top-ck .navbar-toggler {
    width: 40px; height: 40px; padding: 0; border: none; border-radius: 9px;
    background: rgba(255, 255, 255, .14);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .lc-top-ck .navbar-toggler-icon { width: 19px; height: 19px; }
}

/* ============================================================================
 * MAU RE CHUOT LAY TU CAU HINH — thay cho mau vang ghi cung cua theme
 * ----------------------------------------------------------------------------
 * style-azure.css:6619 co:
 *     .menu-item a .active, .menu-item a:hover { color: #FFEB3B !important; }
 * #FFEB3B (vang) la hex CUNG cua theme mua san, lai co !important nen nuot moi
 * luat khac. Bo chon .menu-item a khong gioi han pham vi nen an ca trinh don
 * ngang ban may tinh lan ngan keo dien thoai.
 *
 * Nay lay tu man "Cau hinh mau sac": bien --cfg-link do ThemeColorService phat ra
 * tu COLOR_MANAGER. Chua cau hinh thi dung gia tri du phong #1F6FDD (mau lien ket
 * mac dinh cua chinh man cau hinh) — van khong con vang.
 * Phai co !important va >= 2 lop moi thang duoc luat tren.
 * ========================================================================== */
.lc-topbar .menu-item a:hover,
.lc-topbar .menu-item a .active,
.lc-nav .menu-item a:hover,
.lc-drawer .menu-item a:hover,
.lc-drawer .lc-nav > li > a:hover,
.lc-drawer .lc-nav > li > .menu-link:hover,
.lc-drawer .dk-nav a:hover,
.dk-topbar .menu-item a:hover { color: var(--cfg-link, #1F6FDD) !important; }

/* Trong ngan keo (nen trang) thi kem mot lop nen nhat cho de nhin. */
.lc-drawer .lc-nav > li > a:hover,
.lc-drawer .lc-nav > li > .menu-link:hover { background: #F4F9FF; }

/* Tren thanh dau trang nen navy thi chu trang la hop nhat, khong doi theo cau hinh. */
.lc-topbar .lc-nav a:hover,
.dk-topbar .dk-nav a:hover { color: #fff !important; }

/* ============================================================================
 * MAN "DANH SACH TAP DU LIEU MO"  (/dataset)                      (2026-10-12)
 * ----------------------------------------------------------------------------
 * CSS goc cua trang nam trong <style> NOI TUYEN cua tim-kiem-tap-du-lieu.html,
 * moc o 991 / 700 / 575px. Sua o do phai build lai template, nen va tai day.
 * Vi the <style> noi tuyen nam SAU cac the <link>, hoa do uu tien thi no thang
 * -> phai dung !important.
 * ========================================================================== */

/* --- Khoang ho 520-700px: con toi 520px be ngang ma luoi loc van 1 cot va o
       tim kiem van xuong dong (do o 563px: hang tim cao 114px, luoi 1 cot 523px).
       Day la co may tinh bang nho / dien thoai xoay ngang. --- */
@media (min-width: 520px) and (max-width: 700px) {
  .ds-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .ds-search-box { flex-direction: row !important; align-items: stretch; }
  .ds-btn-search-main { width: auto !important; flex: 0 0 auto !important;
    padding-left: 24px; padding-right: 24px; }
}

/* --- Vung cham: ba dieu khien duoi 40px o MOI be rong man hinh --- */
/* nut lam moi o tim kiem: 36x36 */
.ds-search-refresh { width: 40px !important; height: 40px !important; }
/* nut tai tep trong tung the: 100x38 */
.ds-card .ds-dl { min-height: 40px; }
/* o "So ban ghi" duoi danh sach: 56x31 */
#pagination #id-number-page { min-height: 38px; }

/* --- HA MOT NAC CO CHU cho vua man dien thoai ------------------------------
   Do o 375px: chu than trang chi 14px ma o tim kiem 15px/cao 54, nut Tim kiem
   15px/cao 48, o chon cao 48, tieu de the 17px -> ca cum nang hon noi dung.
   Ha dong bo mot nac, nhung GIU moi vung cham >= 40px.
   (!important vi <style> noi tuyen cua template nam sau cac the <link>.) --- */
@media (max-width: 600px) {
  /* dau trang */
  .ds-pagehead-title { font-size: 17px !important; line-height: 1.3 !important; }
  .ds-pagehead-sub   { font-size: 12.5px !important; line-height: 1.5 !important; }

  /* o tim kiem + nut */
  /* <style> noi tuyen khai "#text-search.ds-search-input{font-size:15px;height:54px}"
     — ID + lop, do uu tien 10100, lai !important. Phai them mot lop nua moi vuot. */
  .ds-search-box #text-search.ds-search-input { font-size: 13.5px !important; height: 46px !important;
    padding-left: 44px !important; padding-right: 48px !important; }
  .ds-search-box #text-search.ds-search-input::placeholder { font-size: 12.5px; }
  .ds-search-ico svg { width: 17px !important; height: 17px !important; }
  .ds-btn-search-main { font-size: 13.5px !important; height: 44px !important;
    min-height: 44px; padding: 0 22px !important; }

  /* bo loc */
  .ds-field label { font-size: 12.5px !important; }
  .ds-select { font-size: 13.5px !important; height: 44px !important; }

  /* the ket qua */
  .ds-card .accordion-title { font-size: 15px !important; line-height: 1.35 !important; }
  .ds-desc { font-size: 13px !important; }
  .ds-meta, .ds-meta span { font-size: 12px !important; }
  .ds-tags { font-size: 11.5px !important; }
  .ds-card .ds-dl { font-size: 12.5px !important; }   /* cao van giu 40px */
}

/* --- DAN NUT THAO TAC TRONG THE (tim / chuong / EXCEL / XML / API) ----------
   Do duoc: moi chip tai bi GHIM CUNG width:100px du nhan dai ngan khac nhau
   ("API" 3 chu cung chiem 100px nhu "EXCEL"), nut tim/chuong 42x42 dat bang
   STYLE NOI TUYEN do JS sinh -> chi !important moi de duoc.
   Cho chip rong theo noi dung va thu nho mot nac. --- */
/* .ds-actions o ban may tinh la flex COT, mac dinh align-items:stretch nen cac chip
   bi keo bang nhau het (do: deu 87px). Phai flex-end thi chip moi rong theo chu,
   dong thoi van canh phai nhu thiet ke. */
.ds-card .ds-actions { align-items: flex-end; }
.ds-card .ds-actions .ds-dl {
  width: auto !important; min-width: 0 !important;
  min-height: 38px; height: 38px;
  padding: 0 12px !important; font-size: 12px !important;
}
.ds-card .ds-actions .ds-dl svg { width: 14px; height: 14px; }
/* nut tim / chuong: style noi tuyen 42x42, bo goc 11 */
.ds-card .ds-actions .ds-flag {
  width: 38px !important; height: 38px !important; border-radius: 10px !important;
}
.ds-card .ds-actions .ds-flag svg { width: 17px; height: 17px; }
.ds-card .ds-actions .ds-fav-count {
  min-width: 16px !important; height: 16px !important; font-size: 10px !important;
  top: -5px !important; right: -5px !important; line-height: 16px !important;
}

@media (max-width: 600px) {
  .ds-card .ds-actions { gap: 6px !important; }
  .ds-card .ds-actions .ds-dl {
    min-height: 36px; height: 36px; padding: 0 10px !important; font-size: 11.5px !important;
  }
  .ds-card .ds-actions .ds-dl svg { width: 13px; height: 13px; }
  .ds-card .ds-actions .ds-flag {
    width: 36px !important; height: 36px !important; border-radius: 9px !important;
  }
  .ds-card .ds-actions .ds-flag svg { width: 16px; height: 16px; }
}

/* --- GHIM KHOI CO (tim / chuong) VE GOC TREN BEN PHAI ----------------------
   Ban may tinh: .ds-card la flex HANG, .ds-actions la cot ben phai, khoi co la
   con dau tien -> von da nam goc tren ben phai.
   Nhung <style> noi tuyen co @media(max-width:700px) doi .ds-card sang COT va
   .ds-actions sang HANG -> khoi co roi xuong DAY the, lech sang TRAI.
   The san co position:relative nen ghim tuyet doi lai dung goc.
   Khoi co la <span> khong co lop, do JS sinh kem style noi tuyen -> can !important. */
@media (max-width: 700px) {
  .ds-card .ds-actions > span {
    position: absolute !important; top: 14px; right: 16px;
    margin-bottom: 0 !important; z-index: 2;
  }
  /* Chua cho cho khoi co, khong de tieu de chui xuong duoi no.
     88px = 2 nut 36px + khoang cach 8px + le 8px. */
  .ds-card .ds-card-main .accordion-title { padding-right: 88px; }
}

/* ============================================================================
 * CUM PHAN TRANG duoi danh sach tap du lieu                      (2026-10-13)
 * ----------------------------------------------------------------------------
 * Truoc: toan mac dinh bootstrap 4 — o chon vien #CED4DA bo 3px, nut trang
 * dinh lien nhau bo 4px vien #DEE2E6, nut dang chon mau xanh #007BFF cua
 * bootstrap. Lac hoan toan so voi phan con lai cua trang (bo 10-12px, vien
 * #E5E9F0, mau navy/xanh cua cong).
 * Nay: cac nut ROI nhau, bo 10px, mau nhan lay tu CAU HINH (--cfg-accent).
 * Dung #pagination (id) de chac chan thang luat cua bootstrap.
 * ========================================================================== */
#pagination {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 16px; margin-top: 22px !important;
}

/* --- Ben trai: "So ban ghi" + o chon --- */
#pagination .form-inline { align-items: center; gap: 10px; }
#pagination label {
  font-size: 13px !important; font-weight: 500; color: #5B6478; margin: 0;
}
#pagination #id-number-page {
  width: auto; min-width: 72px; height: 40px; padding: 0 34px 0 12px;
  border: 1px solid #E5E9F0; border-radius: 10px; background-color: #fff;
  font-size: 13.5px; color: #26324A; cursor: pointer;
  margin-left: 0 !important;   /* bo ml-4 cua bootstrap, da co gap */
  box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
#pagination #id-number-page:hover { border-color: #CFE0F8; }
#pagination #id-number-page:focus {
  border-color: var(--cfg-accent, #1F6FDD);
  box-shadow: 0 0 0 3px rgba(31, 111, 221, .12); outline: none;
}

/* --- Ben phai: cac nut trang --- */
#pagination .pagination { display: flex; gap: 6px; margin: 0; padding: 0; flex-wrap: wrap; }
#pagination .page-item { margin: 0; }
#pagination .page-link {
  display: flex; align-items: center; justify-content: center;
  /* style-azure.css co .pagination li a{height:44px} va @media(575px){height:32px!important}
     -> phai !important moi giu duoc chieu cao. */
  min-width: 40px !important; height: 40px !important; padding: 0 10px;
  border: 1px solid #E5E9F0 !important; border-radius: 10px !important;
  background: #fff; color: #3A4658; font-size: 13.5px; font-weight: 600;
  box-shadow: none !important; transition: background .15s, border-color .15s, color .15s;
}
#pagination .page-link:hover {
  background: #F4F9FF; border-color: #CFE0F8 !important; color: var(--cfg-accent, #1F6FDD);
}
#pagination .page-item.active .page-link {
  background: var(--cfg-accent, #1F6FDD); border-color: var(--cfg-accent, #1F6FDD) !important;
  color: #fff; box-shadow: 0 4px 12px rgba(31, 111, 221, .22) !important;
}
#pagination .page-item.disabled .page-link {
  background: #F7F9FC; color: #B3BCCB; cursor: default;
}
#pagination .page-item.disabled .page-link:hover {
  background: #F7F9FC; border-color: #E5E9F0 !important; color: #B3BCCB;
}
#pagination .pg-ico { width: 13px; height: 13px; }

/* --- Man hep: xep doc, canh giua cho can --- */
@media (max-width: 600px) {
  #pagination { justify-content: center; gap: 12px; }
  #pagination .form-inline { justify-content: center; width: 100%; }
  #pagination .pagination { justify-content: center; width: 100%; gap: 5px; }
  #pagination .page-link { min-width: 38px !important; height: 38px !important; padding: 0 8px; font-size: 13px; }
  #pagination #id-number-page { height: 38px; }
}

/* ============================================================================
 * TRANG CHI TIET TAP DU LIEU  (/dataset/chi-tiet/:id)             (2026-10-13)
 * Nen da kha tot: do o 320/375/563/768/1366 deu KHONG tran ngang, bang co
 * khung cuon rieng, chu khong bi cat. Chi con vai cho chua vua man hep.
 * ========================================================================== */
@media (max-width: 600px) {
  /* Tieu de muc: thu bieu tuong va chu cho vua mot hang voi nut ben canh */
  .lc-sec-head .lc-sec-ic { width: 30px !important; height: 30px !important; flex: 0 0 30px; }
  .lc-sec-head .lc-sec-title { font-size: 15px !important; }
  /* .lc-sec-head co justify-content:space-between (de trang chu day "Xem tat ca"
     sang phai). Tren the cua trang chi tiet khong co nut ben phai nen bieu tuong
     va tieu de bi keo ra HAI DAU. Bo chon .card de khong dong toi trang chu. */
  .card .lc-sec-head { justify-content: flex-start !important; }
  .lc-sec-head { align-items: center !important; gap: 10px !important; }

  /* Nut "TAI XUONG" o dau muc: do duoc 142x34, hut vung cham */
  #id-dataset-download-all { min-height: 40px; padding: 0 16px; }

  /* Dong tai nguyen: .dsd-res-name dang flex:1 1 100% nen chiem tron mot hang,
     day o dinh dang va hang nut thanh 3 hang (do: cao 163px). Cho ten nam
     CANH o dinh dang -> con 2 hang. */
  .dsd-res { gap: 10px 12px !important; }
  .dsd-res .dsd-res-name { flex: 1 1 0 !important; min-width: 0 !important; }
}

/* ============================================================================
 * DAU THE TONG QUAN + DONG TAI NGUYEN (trang chi tiet)            (2026-10-13)
 * ----------------------------------------------------------------------------
 * <style> noi tuyen cua chi-tiet-tap-du-lieu.html co:
 *   @media(max-width:640px){ .dsd-ov-top{flex-direction:column} }
 *   @media(max-width:640px){ .dsd-res{flex-wrap:wrap} .dsd-res-name{flex:1 1 100%}
 *                            .dsd-res-act{width:100%} }
 * => Tren dien thoai: 2 nut co (tim/chuong) ROI XUONG DUOI tieu de va dat sat
 *    trai; dong tai nguyen vo thanh BA hang ([Word]) / (ten tep) / (nut XEM).
 * Dung dung moc 640px de phu khop pham vi luat goc. Can !important vi the
 * <style> noi tuyen nam sau cac the <link>.
 * ========================================================================== */
@media (max-width: 640px) {

  /* --- A. Tieu de + 2 nut co nam CUNG MOT hang, co ghim ben phai --- */
  .dsd-ov-top { flex-direction: row !important; align-items: flex-start; gap: 10px; }
  .dsd-ov-title { flex: 1 1 auto; min-width: 0; font-size: 17px; line-height: 1.35; }
  .dsd-ov-icons { flex-shrink: 0; gap: 6px; }
  .dsd-iconbtn { width: 36px !important; height: 36px !important; border-radius: 10px !important; }
  .dsd-iconbtn svg { width: 18px !important; height: 18px !important; }
  .dsd-icnt {
    min-width: 15px !important; height: 15px !important; font-size: 9.5px !important;
    top: -5px !important; right: -5px !important;
  }

  /* --- B. Dong tai nguyen: [Word] ten-tep [XEM] tren MOT hang --- */
  .dsd-res { gap: 8px !important; padding: 10px 12px !important; align-items: center; }
  .dsd-res .dsd-res-fmt {
    width: auto !important; min-width: 46px; height: 34px !important;
    padding: 0 8px; font-size: 10.5px !important; flex: 0 0 auto;
  }
  /* Ten tai nguyen: cho mot BE RONG TOI THIEU 150px. Truoc de flex:1 1 0 nen khi
     dong co 3 nut (API: Thuc thi API / Xem / Tai file) ten bi bop con ~20px,
     chi doc duoc "A p..". Nay neu khong du cho thi HANG NUT tu xuong dong,
     ten van doc duoc. Dong chi co 1 nut (Xem) thi van gon mot hang. */
  .dsd-res .dsd-res-name {
    /* basis AUTO + min-width, KHONG phai basis 150px: de basis 150 thi ten NO RA
       (212px) va day hang nut xuong dong ke ca khi chi co 1 nut. */
    /* 130px chu khong phai 150: o trong hang chi con 270px (294 - dem 24).
       47(dinh dang) + 8 + 150 + 8 + 59(nut Xem) = 272 > 270 -> van xuong dong.
       Voi 130 thi = 252, vua mot hang; con dong API 3 nut thi hang nut tu xuong. */
    flex: 1 1 auto !important; min-width: 130px !important; font-size: 13px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .dsd-res .dsd-res-act {
    /* KHONG cho hang nut gian (flex-grow 0): neu cho gian thi no chiem het cho,
       day ten xuong dong ke ca khi chi co 1 nut. */
    /* 2026-10-24: CHO CO (flex-shrink 1) + toi da bang dong: truoc de 0 0 auto nen
       hang 3 nut cua the API (247px) tran ra ngoai dong 235px (man 279px), nut
       "Tai file" bi cat + trang cuon ngang. Nay khong du cho thi nut tu xuong dong. */
    width: auto !important; flex: 0 1 auto !important; min-width: 0; max-width: 100%;
    flex-wrap: wrap; justify-content: flex-start !important; gap: 6px !important;
  }
  /* 3 nut cua dong API = 275px trong hang 269px -> thua 6px, bop dem lai cho vua. */
  .dsd-res .dsd-res-act .btn { padding: 8px 8px !important; font-size: 11px !important; }
  .dsd-res .dsd-res-act .btn em { margin-right: 5px !important; }

  /* --- C. Dau muc: nut TAI XUONG tron hang cho ra dang co y, khoi rach --- */
  /* <style> noi tuyen cung dung .dsd-cardhead (1 lop) va nam SAU the <link>
     nen hoa do uu tien thi no thang -> phai !important. */
  .dsd-cardhead { flex-direction: column !important; align-items: stretch !important;
    gap: 10px !important; }
  .dsd-cardhead > * { flex: 0 0 auto !important; }
  /* Nut nam trong boc <div id="download-dataset"> — phai cho CA HAI tron hang,
     khong thi boc gian ra con nut van dung be rong tu nhien (do: 142px, lech giua). */
  #download-dataset { width: 100%; }
  #id-dataset-download-all { width: 100% !important; justify-content: center; }
}

/* ============================================================================
 * HOP THOAI XAC NHAN (iziModal + .lc-pop-*) TREN DIEN THOAI        (2026-10-13)
 * ----------------------------------------------------------------------------
 * Do tren man 375px, hop "Thong bao xac nhan" (bo Yeu thich / huy nhan thong
 * bao) cao 259px chi de hoi MOT cau:
 *     dau the       64px  (padding 15/15/20/30, tieu de 18px)
 *     vong bieu tuong 60px (chu 24px)
 *     than          padding 14px, chu 14px
 *     hang nut      45px  (padding 10px 24px, hai nut lech nhau 74 / 112px)
 * Tren dien thoai nhin rat ne. Ha xuong con khoang 200px, van du vung cham 42px.
 *
 * VI SAO !important o dau the: chi-tiet-tap-du-lieu.html co <style> noi tuyen
 * dat `.iziModal .iziModal-header{padding:15px 15px 20px 30px !important}` va
 * `.iziModal-header-title{font-size:18px !important}`. Luat o muc 4 ben tren
 * (khong !important) da THUA no — do lai van ra 30px. Phan .lc-pop-* thi khong
 * can: CSS goc do detail_dataset.js/dataset.js chen luc chay chi co 1 lop
 * (.lc-pop-icon), them tien to .lc-pop la du nang do uu tien de thang.
 * ========================================================================== */
@media (max-width: 600px) {

  /* --- Khung iziModal: dau the mong lai ---
     Lap lai lop (.iziModal-header.iziModal-header) de len 3 lop: <style> noi tuyen
     cua chi-tiet-tap-du-lieu.html cung dat !important o 2 lop, hoa nhau thi NO THANG
     vi nam sau the <link>. Nut X thi nguoc lai — luat dang thang la cua thu vien
     (.iziModal-header.iziModal-noSubtitle .iziModal-button, 4 lop) nhung KHONG
     !important, nen chi can them !important la du. */
  .iziModal .iziModal-header.iziModal-header {
    padding: 12px 10px 12px 16px !important;
  }
  .iziModal .iziModal-header .iziModal-header-title {
    font-size: 15.5px !important;
    line-height: 1.35 !important;
  }
  .iziModal .iziModal-content { padding: 14px 14px 16px !important; }
  .iziModal .iziModal-button { width: 38px !important; height: 38px !important; }

  /* --- Than hop xac nhan --- */
  .lc-pop .lc-pop-icon {
    width: 46px; height: 46px;
    font-size: 19px;
    margin-bottom: 10px;
  }
  .lc-pop .lc-pop-desc { font-size: 13.5px; line-height: 1.55; }
  .lc-pop .lc-pop-stars { font-size: 19px; gap: 5px; margin: 0 0 10px; }
  .lc-pop .lc-pop-confirm,
  .lc-pop.lc-pop-confirm { padding-top: 2px; }

  /* Hai nut chia deu cho can (truoc do 74px / 112px, lech han nhau) va du cao
     de bam. max-width de tren man 600px chung khong gian ra qua rong. */
  .lc-pop .lc-pop-actions { margin-top: 14px; gap: 8px; }
  .lc-pop .lc-pop-btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 180px;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 13px;
  }

  /* --- Hop sua binh luan dung chung lop .lc-pop --- */
  .lc-pop .lc-pop-label { font-size: 12px; }
  .lc-pop .lc-pop-textarea { min-height: 84px; font-size: 14px; }
}

/* ============================================================================
 * TRANG TIN TUC (/tin-tuc) TREN DIEN THOAI + MAY TINH BANG        (2026-10-13)
 * ----------------------------------------------------------------------------
 * Dat o theme.css (nap live tu dia, khoi build) thay vi <style> noi tuyen cua
 * tin-tuc-v2.html (nap tu classpath, sua la phai build + khoi dong lai).
 * An toan vi #news-in-page va #cus-pagination CHI co o trang nay (da grep ca
 * src/ lan js/ — chi tin-tuc-v2.html + news-display.js dung hai id do).
 * ========================================================================== */

/* --- 1. Anh the tin bi lot thom (<=991px) -----------------------------------
 * style-azure.css dat `.blog-photo{padding:30px 30px 0}`. Do tren man 375px:
 * the rong 331px nhung anh chi 270px — mat 60px (18%) chi de lay vien trang,
 * nhin nhu con tem dan giua the. Dong thoi cum co (nha/lua/ghim) duoc
 * news-display.js ghim `top:10px;right:10px` so voi .blog-photo nen no roi
 * ra VUNG TRANG ben tren anh, trong khi chinh no co do bong (box-shadow) —
 * tuc la thiet ke muon no nam TREN anh.
 * Bo padding o <=991px: anh tran het be ngang the (goc tren duoc .blog cat
 * theo border-radius:14px vi .blog da co overflow:hidden), cum co ve dung cho.
 * May tinh >=992px GIU NGUYEN vien 30px nhu cu. */
@media (max-width: 991px) {
  #news-in-page .blog .blog-photo { padding: 0 !important; }
}

/* --- 2. Dien thoai (<=767px) ------------------------------------------------ */
@media (max-width: 767px) {

  /* Chu mo ta do ra 12.32px (theme thu nho theo rem) — duoi muc de doc.
     Tieu de giu nguyen 15.75px vi dang can doi. */
  #news-in-page .blog-text p { font-size: 13px !important; line-height: 1.6 !important; }
  #news-in-page .blog-text { padding: 13px 14px 15px !important; }
  #news-in-page .blog-meta { font-size: 12px; }

  /* news-display.js sinh tieu de va mo ta kem style="text-align: justify" NGAY
     TREN THE. Cot chi con 247px (man 320) nen can deu hai bien lam cac dong bi
     keo gian khoang cach chu rat xau. Kieu noi tuyen chi thua !important. */
  #news-in-page .blog-text .title a,
  #news-in-page .blog-text .title,
  #news-in-page .blog-text p { text-align: left !important; }

  /* --- Phan trang ---
     Do duoc: ca cum 298x32, tung nut 32x32 DINH LIEN NHAU, khong vien khong bo
     goc (mac dinh theme). Thap hon chuan cham 44px va lac han so voi phan con
     lai cua trang. CAN !important vi style-azure.css co
     `@media(max-width:575px){.pagination li a{height:32px!important}}`.
     Mau nhan lay tu CAU HINH (--cfg-accent) giong cum phan trang o /dataset. */
  #cus-pagination {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 6px; margin: 0 !important; padding: 0;
  }
  #cus-pagination > li { margin: 0 !important; }
  #cus-pagination > li > a {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px !important; height: 40px !important;
    padding: 0 9px !important; margin: 0 !important;
    border: 1px solid #E5E9F0 !important; border-radius: 10px !important;
    background: #fff !important; color: #3A4658 !important;
    font-size: 13.5px !important; font-weight: 600; line-height: 1 !important;
  }
  #cus-pagination > li > a:hover {
    background: #F4F9FF !important; border-color: #CFE0F8 !important;
    color: var(--cfg-accent, #123F8F) !important;
  }
  #cus-pagination > li > a.active {
    background: var(--cfg-accent, #123F8F) !important;
    border-color: var(--cfg-accent, #123F8F) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(18, 63, 143, .22);
  }
}

/* --- 3. Man rat hep (<=400px) ----------------------------------------------- */
@media (max-width: 430px) {
  /* O tim kiem bi 3 nut (44px x3 + 3 khe) an con 179px tren man 375 — go chu
     dai la het cho. Cho o nhap TRON MOT HANG rieng (335px), 3 nut xuong hang
     duoi; nut Tim gian het phan con lai de hang 2 trong co chu dich chu khong
     phai 3 nut lung lo. */
  .tin-search-row { flex-wrap: wrap; }
  .tin-search-row #input-key-search { flex: 1 1 100% !important; }
  .tin-search-row #button-key-search { flex: 1 1 auto !important; width: auto !important; }

  /* 8 nut trang khong the giu nguyen 40px tren may hep: 8x40 + 7x6 = 362 > 335
     (man 375) -> ron thanh 2 hang kieu 7+1, rat xau. Cho 8 nut CHIA DEU hang:
     bo min-width, cho li co gian (flex:1 1 0) va chan tran 44px.
     Do lai: man 375 -> 38.4px/nut, man 320 -> 31.5px/nut, van mot hang.
     gap PHAI co !important: <style> noi tuyen cua tin-tuc-v2.html dat
     `#cus-pagination{gap:6px}` cung 1 lop, hoa thi no thang vi nam sau <link>. */
  /* ul nam trong <nav class="w-100 d-flex"> nen la THE CON FLEX: de nguyen thi
     no co lai bang noi dung. Co flex:1 1 0 o cac <li>, noi dung thu nho duoc
     -> ul tut con 136px, moi nut chi 13,5px. Phai ep ul rong het hang truoc. */
  #cus-pagination { gap: 4px !important; width: 100%; flex: 1 1 auto; }
  #cus-pagination > li { flex: 1 1 0; min-width: 0; max-width: 44px; }
  #cus-pagination > li > a {
    width: 100%; min-width: 0 !important; padding: 0 !important;
    height: 38px !important; font-size: 13px !important;
  }
}

/* ============================================================================
 * KHU BINH LUAN + HOP SUA/XOA BINH LUAN (trang chi tiet)          (2026-10-13)
 * ========================================================================== */

/* --- A. Chuoi long nhau an het be ngang (<=575px) ---------------------------
 * Do tren man 375px, be rong tut dan:
 *   375 -> .container (pad 16)      = 343
 *   343 -> .card      (pad 24)      = 294   <- mat 48px
 *   294 -> .lc-cmt-list (pad 18)    = 258   <- mat 36px
 *   258 -> tru avatar 36 + khe 12   = 210
 * Con 209px cho CHU, tuc 44% man hinh la le va vien. Nen chi it mot chut.
 * Luat .card nam trong <style> noi tuyen cua chi-tiet-tap-du-lieu.html voi
 * 5 lop + !important, nen phai lap lai .card de len 6 lop (xem ghi chu o khoi
 * HOP THOAI XAC NHAN ben tren ve ly do hoa thi noi tuyen thang). */
@media (max-width: 575px) {
  .nk-pages .nk-block > .row > .col-lg-12 > .card.card { padding: 18px 14px !important; }
  /* TIEN TO .lc-cmt la BAT BUOC: ban goc cua cac luat duoi day nam trong
     <style> noi tuyen cua template, cung so lop thi no thang vi dung sau the
     <link>. Lan dau tien toi viet khong tien to -> do lai padding van y nguyen
     14px / 2px 18px, avatar van 36px. */
  .lc-cmt .lc-composer { padding: 12px; }
  .lc-cmt .lc-composer textarea { font-size: 14px; }
  .lc-cmt .lc-cmt-list { padding: 2px 12px; }
  .lc-cmt .lc-cmt-item { gap: 10px; padding: 13px 0; }
  .lc-cmt .lc-cmt-item .lc-avatar { width: 32px; height: 32px; font-size: 13px; }
  .lc-cmt .lc-cmt-meta { gap: 6px; }
  /* 2 icon sua/xoa chi 28px — duoi muc cham duoc. */
  .lc-cmt .lc-cmt-actions { gap: 2px; }
  .lc-cmt .lc-cmt-actions i { width: 36px; height: 36px; font-size: 14px; }
  .lc-cmt .lc-btn-send { padding: 11px 18px; }
}

/* --- B. Hop thoai .lc-pop qua to o khoang may tinh bang --------------------
 * showPrimaryDialog ghim width:600. Do tren man 768px: hop rong 600px = 78%
 * be ngang, dau the van 64px, vong bieu tuong 60px, chu 18px — chi de hoi mot
 * cau. Chan tran 460px va dung bo chrome gon cho den 1024px.
 * CHI ap cho .lc-pop-modal (hop Sua/Xoa binh luan, danh gia, xac nhan) —
 * hop "Chi tiet API" khai width:760 va KHONG mang lop nay nen khong bi dung.
 * Can left/right/margin rieng vi khoi <=600px ben tren dat `margin:0;left:10px`
 * (chi dung khi be rong = 100% - 20px); nay hop hep hon nen phai canh giua. */
@media (max-width: 1024px) {
  .iziModal.lc-pop-modal {
    width: min(460px, calc(100% - 20px)) !important;
    max-width: calc(100% - 20px) !important;
    left: 0 !important; right: 0 !important;
    margin-left: auto !important; margin-right: auto !important;
  }
  .iziModal.lc-pop-modal .iziModal-header.iziModal-header { padding: 12px 10px 12px 16px !important; }
  .iziModal.lc-pop-modal .iziModal-header .iziModal-header-title { font-size: 15.5px !important; line-height: 1.35 !important; }
  .iziModal.lc-pop-modal .iziModal-content { padding: 14px 14px 16px !important; }
  .iziModal.lc-pop-modal .iziModal-button { width: 38px !important; height: 38px !important; }

  .lc-pop-modal .lc-pop .lc-pop-icon { width: 46px; height: 46px; font-size: 19px; margin-bottom: 10px; }
  .lc-pop-modal .lc-pop .lc-pop-desc { font-size: 13.5px; line-height: 1.55; }
  .lc-pop-modal .lc-pop .lc-pop-stars { font-size: 19px; gap: 5px; margin: 0 0 10px; }
  .lc-pop-modal .lc-pop .lc-pop-actions { margin-top: 14px; gap: 8px; }
  .lc-pop-modal .lc-pop .lc-pop-btn {
    flex: 1 1 0; min-width: 0; max-width: 180px; min-height: 42px;
    padding: 10px 12px; font-size: 13px;
  }
  .lc-pop-modal .lc-pop .lc-pop-label { font-size: 12px; }
  .lc-pop-modal .lc-pop .lc-pop-textarea { min-height: 84px; font-size: 14px; }
}

/* ============================================================================
 * NAC HEP NHAT CHO DIEN THOAI — hop .lc-pop (<=575px)             (2026-10-13)
 * ----------------------------------------------------------------------------
 * Nac <=1024px ben tren moi chi giai quyet khoang may tinh bang. Do lai tren
 * man 430px (iPhone Pro Max): hop 410x302 = 95% be ngang, trong do:
 *     dau the      48px
 *     o nhap      127px  <- to nhat, ma noi dung chi co mot chu
 *     hang nut     44px (hai nut 180px moi cai)
 * Nhin van ne. Nac nay ha xuong khoang 236px va chua le hai ben cho ra dang
 * MOT TAM THE chu khong phai mot trang day man.
 * ========================================================================== */
@media (max-width: 575px) {

  /* Chua le 20px moi ben: 430 -> 380 (88%), 375 -> 335, 320 -> 280. */
  .iziModal.lc-pop-modal { width: min(380px, calc(100% - 40px)) !important; }

  .iziModal.lc-pop-modal .iziModal-header.iziModal-header { padding: 10px 8px 10px 14px !important; }
  .iziModal.lc-pop-modal .iziModal-header .iziModal-header-title { font-size: 14.5px !important; }
  .iziModal.lc-pop-modal .iziModal-button { width: 34px !important; height: 34px !important; }
  .iziModal.lc-pop-modal .iziModal-content { padding: 12px 12px 14px !important; }

  .lc-pop-modal .lc-pop .lc-pop-icon { width: 40px; height: 40px; font-size: 16px; margin-bottom: 8px; }
  .lc-pop-modal .lc-pop .lc-pop-desc { font-size: 13px; line-height: 1.5; }
  .lc-pop-modal .lc-pop .lc-pop-stars { font-size: 17px; gap: 4px; margin: 0 0 8px; }
  .lc-pop-modal .lc-pop .lc-pop-label { font-size: 11.5px; margin-bottom: 5px; }

  /* <textarea rows="4"> + min-height:96px cho ra 127px. Ep height that,
     van keo gian duoc vi .lc-pop-textarea giu resize:vertical. */
  .lc-pop-modal .lc-pop .lc-pop-textarea {
    min-height: 0; height: 92px; font-size: 13.5px; padding: 9px 11px;
  }

  .lc-pop-modal .lc-pop .lc-pop-actions { margin-top: 12px; gap: 8px; }
  .lc-pop-modal .lc-pop .lc-pop-btn {
    min-height: 40px; max-width: 150px; font-size: 12.5px; padding: 9px 10px;
  }
}

/* ============================================================================
 * iziModal TỪ 601px TRỞ LÊN: luôn chừa lề hai bên            (2026-10-14)
 * ----------------------------------------------------------------------------
 * showCustomDialog/showPrimaryDialog khai bề rộng cố định (860px cho "Câu hỏi
 * của tôi", 760px cho "Chi tiết API", 600px cho các hộp còn lại). Khi cửa sổ hẹp
 * hơn con số đó, thư viện chỉ kẹp đúng bằng bề ngang màn: đo trên màn 700px ra
 * hộp 700×226 nằm ở x 0..700 — DÁN SÁT hai mép, góc bo mất tác dụng, nhìn như vỡ.
 * Khối ≤600px ở trên đã chừa 10px mỗi bên; đây là phần cho khoảng còn lại.
 *
 * SỬA 2026-10-20 — BẪY: bản đầu đặt `max-width: calc(100% - 32px) !important`.
 * iziModal KHÔNG đặt `width` mà đặt `max-width` NỘI TUYẾN (recalcWidth:
 * `this.$element.css("max-width", this.options.width)`), nên luật !important này
 * đè luôn bề rộng khai báo của MỌI hộp thoại. Đo trên màn 1400px: hộp "Thành công"
 * khai 600px ra 1257px — đúng triệu chứng "popup thông báo quá to".
 * Nay đặt `width` thay vì `max-width`: bề rộng khai báo (max-width nội tuyến) vẫn
 * là trần, `width` chỉ kẹp lại khi cửa sổ hẹp hơn, `margin:auto` của thư viện giữ
 * nguyên việc canh giữa.
 * ========================================================================== */
@media (min-width: 601px) {
  .iziModal {
    width: calc(100% - 32px) !important;
    border-radius: 12px !important;
  }
}

/* ============================================================================
 * NGĂN KÉO TRÌNH ĐƠN — THIẾT KẾ LẠI                               (2026-10-14)
 * ----------------------------------------------------------------------------
 * Bản cũ: mỗi mục là một hàng cao 78px, đầu dòng một chấm tròn xám, dưới mỗi
 * mục một đường kẻ chạy hết bề ngang -> nhìn như danh sách thô, 7 đường kẻ
 * cắt vụn tấm thẻ, lại thừa một khoảng trắng lớn phía dưới.
 * Bản mới: mỗi mục là một ô bo góc, bỏ chấm và bỏ đường kẻ; thanh nhấn bên
 * trái + mũi tên bên phải chỉ hiện khi rê/chạm vào. Màu nhấn lấy từ CẤU HÌNH
 * (--cfg-accent / --cfg-link) nên đổi bộ màu là ngăn kéo đổi theo.
 * CHỈ ĐỔI CÁCH BÀY — không thêm/bớt/sửa một chữ nào trong trình đơn.
 * ========================================================================== */

/* --- Tấm ngăn kéo: rộng hơn một chút, nền chuyển nhẹ để khoảng trống dưới
       cùng trông có chủ ý chứ không phải bị hụt --- */
.lc-drawer {
  width: min(320px, 88vw);
  background: linear-gradient(180deg, #fff 0%, #fff 62%, #F6F9FD 100%);
  box-shadow: -18px 0 44px rgba(12, 22, 48, .20);
  transition: transform .25s cubic-bezier(.2, .7, .3, 1), box-shadow .25s;
}
/* Đóng thì tấm nằm ngay ngoài mép phải (translateX(100%)) nhưng bóng đổ sang trái
   vẫn lọt vào màn hình thành một dải mờ dọc mép phải -> chỉ đổ bóng khi đang mở. */
.lc-drawer:not(.on) { box-shadow: none; }

/* --- Đầu thẻ: nền chuyển chéo + vạch nhấn mảnh dưới chân --- */
.lc-drawer .lc-drawer-head {
  background: linear-gradient(135deg, var(--cfg-primary, #143F8F) 0%, #0E2F6D 100%);
  padding: 12px 12px 13px 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .10), 0 3px 10px rgba(10, 22, 48, .18);
}
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn {
  height: 42px; border-radius: 10px; font-size: 12.5px; letter-spacing: .03em;
}
.lc-drawer-x {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  transition: background .16s, transform .16s;
}
.lc-drawer-x:hover { background: rgba(255, 255, 255, .26); }
.lc-drawer-x:active { transform: scale(.94); }

/* --- Thân: các mục thành ô bo góc, bỏ đường kẻ --- */
.lc-drawer-body { padding: 12px 0 20px; }
.lc-drawer .lc-nav { padding: 0 10px; }
.lc-drawer .lc-nav > li { border-bottom: none !important; margin-bottom: 2px; }

.lc-drawer .lc-nav > li > a,
.lc-drawer .lc-nav > li > .menu-link {
  display: flex !important; align-items: center; gap: 10px;
  padding: 13px 13px 13px 16px !important;
  border-radius: 10px;
  font-size: 12.8px !important; font-weight: 700; letter-spacing: .035em;
  color: #2B3750;
  white-space: normal !important;   /* thẻ <a> có style nội tuyến nowrap */
  transition: background .16s, color .16s;
}

/* Thanh nhấn bên trái — thay cho chấm tròn xám của bản cũ */
.lc-drawer .lc-nav > li > a::before,
.lc-drawer .lc-nav > li > .menu-link::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 0; border-radius: 0 3px 3px 0;
  background: var(--cfg-accent, #1F6FDD);
  transition: height .18s ease;
}

/* Mũi tên › bên phải (bản cũ ẩn ::after bằng !important nên phải ghi đè đúng mức) */
.lc-drawer .lc-nav > li > a::after,
.lc-drawer .lc-nav > li > .menu-link::after {
  display: block !important;
  content: ''; margin-left: auto; flex-shrink: 0;
  width: 7px; height: 7px;
  border-right: 2px solid #C6CFDE; border-top: 2px solid #C6CFDE;
  transform: rotate(45deg);
  transition: border-color .16s, transform .16s;
}

.lc-drawer .lc-nav > li > a:hover,
.lc-drawer .lc-nav > li > .menu-link:hover {
  background: #EEF5FF;
  color: var(--cfg-link, #1F6FDD) !important;
}
.lc-drawer .lc-nav > li > a:hover::before,
.lc-drawer .lc-nav > li > .menu-link:hover::before { height: 24px; }
.lc-drawer .lc-nav > li > a:hover::after,
.lc-drawer .lc-nav > li > .menu-link:hover::after {
  border-color: var(--cfg-link, #1F6FDD);
  transform: rotate(45deg) translate(2px, -2px);
}
.lc-drawer .lc-nav > li > a:active,
.lc-drawer .lc-nav > li > .menu-link:active { background: #E4EEFC; }

/* Mục của trang đang mở (theme gắn .active khi cuộn tới) */
.lc-drawer .lc-nav > li.active > a,
.lc-drawer .lc-nav > li > a.active {
  background: #EAF2FF; color: var(--cfg-link, #1F6FDD) !important;
}
.lc-drawer .lc-nav > li.active > a::before,
.lc-drawer .lc-nav > li > a.active::before { height: 24px; }

/* ============================================================================
 * NGĂN KÉO — HAI NÚT ĐĂNG KÝ / ĐĂNG NHẬP DÙNG CHUNG MỘT KIỂU     (2026-10-14)
 * ----------------------------------------------------------------------------
 * Mỗi trang sinh một bộ thẻ khác nhau nên màu nút mỗi nơi một kiểu (đo thật):
 *   /trang-chu            .btn-show-popup-register.btn-primary  -> nền #1A9D54
 *                         .btn-show-popup-login.btn-dark        -> trong suốt + viền trắng 50%
 *   /login, /register     .dk-btn-reg / .dk-btn-login           -> xanh lá + viền trắng 40%
 *   /lien-he, /gioi-thieu .login-btn (navbar bootstrap)         -> nền #1F6FDD, KHÔNG có nút Đăng ký
 * Nay ép chung một kiểu cho MỌI trang, màu lấy từ CẤU HÌNH (--cfg-*) nên đổi bộ
 * màu là hai nút đổi theo. Chỉ áp TRONG ngăn kéo — bản máy tính giữ nguyên.
 * ========================================================================== */
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-reg,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-login,
.lc-drawer .lc-drawer-head .lc-drawer-acc .login-btn {
  height: 42px !important;
  min-height: 42px;
  border-radius: 10px !important;
  border: none !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .03em;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  box-shadow: none !important;
  transition: filter .16s, transform .12s;
}
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn:active,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-reg:active,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-login:active,
.lc-drawer .lc-drawer-head .lc-drawer-acc .login-btn:active { transform: scale(.97); }

/* ĐĂNG KÝ — khối đặc, màu "thành công" của cấu hình */
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn-show-popup-register,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-reg,
.lc-drawer .lc-drawer-head .lc-drawer-acc a[href="/register"] {
  background: var(--cfg-success, #1A9D54) !important;
  color: #fff !important;
}
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn-show-popup-register:hover,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-reg:hover,
.lc-drawer .lc-drawer-head .lc-drawer-acc a[href="/register"]:hover { filter: brightness(1.08); }

/* ĐĂNG NHẬP — khối trắng đặc, chữ màu chủ đạo của cấu hình */
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn-show-popup-login,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-login,
.lc-drawer .lc-drawer-head .lc-drawer-acc .login-btn,
.lc-drawer .lc-drawer-head .lc-drawer-acc a[href="/login"] {
  background: #fff !important;
  color: var(--cfg-primary, #123F8F) !important;
}
.lc-drawer .lc-drawer-head .lc-drawer-acc .btn-show-popup-login:hover,
.lc-drawer .lc-drawer-head .lc-drawer-acc .dk-btn-login:hover,
.lc-drawer .lc-drawer-head .lc-drawer-acc .login-btn:hover,
.lc-drawer .lc-drawer-head .lc-drawer-acc a[href="/login"]:hover { filter: brightness(.94); }

/* Trang dùng thanh bootstrap chỉ có MỘT nút (Đăng nhập) — cho nó chiếm trọn hàng */
.lc-drawer .lc-drawer-head .lc-drawer-acc .login-btn { flex: 1 1 100%; }

/* ============================================================================
 * CHỮ TRÊN THANH ĐẦU TRANG — lấy từ ô màu riêng trong Cấu hình màu sắc
 *                                                              (2026-10-17)
 * ----------------------------------------------------------------------------
 * Vì sao phải có ô màu RIÊNG, không dùng lại --cfg-link:
 *   nền thanh đầu trang chính là --cfg-primary (màu chủ đạo). Luật cũ
 *   `.lc-topbar .menu-item a:hover { color: var(--cfg-link) }` — viết ra để dẹp
 *   màu vàng ghi cứng của style-azure.css — phủ luôn CHIP TÀI KHOẢN, thành ra
 *   chữ xanh dương đặt trên nền xanh đậm, gần như không đọc được.
 *   Màu chữ trên thanh phụ thuộc NỀN THANH chứ không phải vai trò "liên kết",
 *   nên nó là một lựa chọn riêng của quản trị: ThemeColorService phát ra
 *   --cfg-header-text (khoá COLOR_MANAGER.headerText).
 *
 * Chưa cấu hình -> rơi về #fff, y như trước, không đổi gì.
 *
 * CHỪA .menu-sub: danh sách thả xuống của chip nằm trên nền TRẮNG — dùng màu
 * chữ-trên-thanh ở đó là mất chữ. Vì vậy mọi bộ chọn đều đi qua `> li >` hoặc
 * trỏ đúng phần tử cấp 1, không có bộ chọn hậu duệ trần.
 * ========================================================================== */

/* --- Lúc bình thường --- */
.lc-home .lc-topbar .lc-brand,
.lc-home .lc-topbar .lc-nav > li > a,
.lc-home .lc-topbar .lc-nav > li > .menu-link,
.lc-home .lc-topbar .lc-nav-actions > li > a,
.lc-home .lc-topbar .lc-nav-actions > li > .menu-toggle,
.lc-ngan-keo .lc-topbar .lc-brand,
.lc-ngan-keo .lc-topbar .lc-burger,
.dk-topbar .dk-brand,
.dk-topbar .dk-nav > li > a {
  color: var(--cfg-header-text, #fff) !important;
}

/* --- Lúc rê chuột / lấy nét: GIỮ NGUYÊN màu, chỉ nền sáng lên ---
   (luật `.lc-topbar .menu-item a:hover{color:var(--cfg-link)}` ở trên sẽ đổi màu
    chữ nếu không chặn; đây chính là lỗi chip tài khoản đã gặp) */
.lc-home .lc-topbar .lc-nav > li > a:hover,
.lc-home .lc-topbar .lc-nav > li > a:focus,
.lc-home .lc-topbar .lc-nav > li > .menu-link:hover,
.lc-home .lc-topbar .lc-nav > li > .menu-link:focus,
.lc-home .lc-topbar .lc-nav-actions > li > a:hover,
.lc-home .lc-topbar .lc-nav-actions > li > a:focus,
.lc-home .lc-topbar .lc-nav-actions > li > .menu-toggle:hover,
.lc-home .lc-topbar .lc-nav-actions > li > .menu-toggle:focus,
.lc-topbar .lc-nav-actions > li > a:hover,
.lc-topbar .lc-nav-actions > li > a:focus,
.lc-topbar .lc-nav-actions > li > .menu-toggle:hover,
.lc-topbar .lc-nav-actions > li > .menu-toggle:focus,
.dk-topbar .dk-nav-actions > li > a:hover,
.dk-topbar .dk-nav-actions > li > a:focus {
  color: var(--cfg-header-text, #fff) !important;
}

/* Tên tài khoản hiện là text node của chính thẻ <a>; phòng khi sau này gói <span>. */
.lc-home .lc-topbar .lc-nav-actions > li > .menu-toggle > span,
.lc-home .lc-topbar .lc-nav-actions > li > .menu-toggle:hover > span,
.lc-home .lc-topbar .lc-nav-actions > li > .menu-toggle > em,
.lc-home .lc-topbar .lc-nav-actions > li > .menu-toggle:hover > em {
  color: var(--cfg-header-text, #fff) !important;
}

/* Mũi tên ▾ của chip và nút ba gạch cũng là "chữ trên thanh". */
.lc-home .lc-nav-actions .menu-item.has-sub > .menu-toggle:after {
  color: var(--cfg-header-text, #fff) !important;
}
.lc-ngan-keo .lc-topbar .lc-burger svg { color: var(--cfg-header-text, #fff); }


/* ====================================================================
 * KHUNG ĐEN KHI BẤM NÚT (2026-10-25) — trang chủ, chi tiết tập dữ liệu, tìm kiếm,
 * chi tiết tin, báo cáo trực quan, trang lỗi TỰ nạp CSS (không qua HeadMeta) nên
 * KHÔNG có common.css; vendor.bundle.css (bootstrap) giữ button:focus{outline:5px auto}
 * -> bấm chuột vào nút (vd TÌM KIẾM ở trang chủ) là Chrome vẽ khung đen-trắng.
 * CHÉP NGUYÊN 2 luật dùng chung của common.css: bấm chuột thì bỏ khung; đi bằng
 * bàn phím (:focus-visible) thì vòng xanh #1F6FDD. Trang có cả 2 tệp: luật trùng, vô hại.
 * ==================================================================== */
button:focus:not(:focus-visible),
[type="button"]:focus:not(:focus-visible),
[type="submit"]:focus:not(:focus-visible),
[type="reset"]:focus:not(:focus-visible) { outline: none !important; }
button:focus-visible,
[type="button"]:focus-visible,
[type="submit"]:focus-visible,
[type="reset"]:focus-visible { outline: 2px solid #1F6FDD; outline-offset: 2px; }
