/* ==========================================================================
 * TRANG TỔNG: khung + thư viện giao diện (tự viết). Lớp bắt đầu bằng "tg-".
 * Người làm trang dùng BIẾN MÀU dưới đây để nền tối chạy đúng.
 * ========================================================================== */
/* Phông Roboto tự chứa (Apache 2.0, bản rút gọn chữ Latin + Việt, xem phong/GHI-CHU.txt) */
/* đo trang thật: 300–500 đều là chữ Regular, 600–700 là chữ Medium (không có Light, Bold) */
@font-face { font-family: Roboto; font-weight: 300 500; font-style: normal; font-display: swap; src: url(../phong/Roboto-Regular.woff) format("woff"); }
@font-face { font-family: Roboto; font-weight: 600 700; font-style: normal; font-display: swap; src: url(../phong/Roboto-Medium.woff) format("woff"); }
@font-face { font-family: Roboto; font-weight: 300 700; font-style: italic; font-display: swap; src: url(../phong/Roboto-Italic.woff) format("woff"); }
:root {
  --tg-nen: #fff;                        /* nền vùng chính */
  --tg-the: #fff;                        /* nền thẻ, bảng, hộp */
  --tg-nhat: rgb(235, 234, 234);         /* nền nút biểu tượng */
  --tg-mo: rgb(250, 250, 250);           /* dải ghi chú */
  --tg-chu: rgb(51, 51, 51);
  --tg-chu2: rgb(68, 68, 68);            /* nhãn */
  --tg-chu3: rgb(64, 64, 64);            /* chữ bảng */
  --tg-chu4: rgb(102, 102, 102);
  --tg-vien: rgb(206, 206, 206);
  --tg-vien-o: rgb(209, 209, 209);       /* viền ô nhập */
  --tg-vien-nhat: rgb(222, 222, 222);
  --tg-td: rgb(157, 28, 28);             /* tiêu đề trang kiểu cũ, đường dẫn */
  --tg-tdm: rgb(151, 20, 30);            /* tiêu đề trang kiểu mới */
  --tg-lk: rgb(17, 138, 242);
  --tg-lk2: rgb(4, 90, 206);             /* liên kết bảng kiểu cũ */
  --tg-am: rgb(204, 0, 0);
  --tg-am2: rgb(254, 0, 2);
  --tg-xanh: rgb(11, 89, 156);           /* nút chính */
  --tg-xanh-re: rgb(10, 84, 148);        /* nút chính khi rê / đang mở */
  --tg-tab: rgb(34, 103, 182);           /* tab đang chọn */
  --tg-sao: rgb(255, 1, 1);              /* dấu * ghi chú */
  --tg-i: rgb(28, 120, 200);             /* chữ i tròn */
  --tg-xam-nut: rgb(115, 115, 115);      /* nút trong cụm làm mới */
  --tg-ngon: rgb(247, 147, 26);          /* ngón tay */
  --tg-vien-xo: rgb(223, 223, 223);      /* viền menu ngày, hộp Cột Hiển Thị */
  --tg-xo-re: rgb(221, 221, 221);        /* rê dòng menu ngày */
  --tg-am-cu: rgb(233, 40, 25);          /* số âm bảng thành viên (kiểu cũ) */
  --tg-bong-nho: rgba(0, 0, 0, .25) 1px 2px 2px;   /* thẻ kết quả, nhãn ngày */
  --tg-bong-cu: rgba(0, 0, 0, .3) 0 1px 1px;       /* ô nhập, ô chọn kiểu cũ */
  --tg-bong-cu-nut: rgba(0, 0, 0, .3) 0 2px 2px;   /* nút kiểu cũ */
  --tg-luc: rgb(6, 130, 0);
  --tg-nut-luc: rgb(27, 172, 105);
  --tg-cam: rgb(246, 115, 27);
  --tg-do: rgb(218, 21, 38);
  --tg-dau: rgb(239, 243, 248);          /* đầu bảng kiểu mới */
  --tg-dau-chu: rgb(26, 26, 26);
  --tg-dau-vien: rgb(166, 166, 166);
  --tg-tong: rgb(222, 226, 232);
  --tg-re: rgb(245, 248, 252);           /* rê chuột dòng thường */
  --tg-re2: rgb(232, 244, 253);          /* rê chuột bảng kiểu mới */
  --tg-cu-dau: rgb(102, 102, 102);
  --tg-cu-dau2: rgb(63, 63, 63);
  --tg-cu-le: rgb(234, 233, 238);
  --tg-cu-re: rgb(248, 235, 149);
  --tg-phan: rgb(188, 203, 220);         /* đầu mục gập */
  --tg-phan-chu: rgb(38, 56, 76);
  --tg-tren: rgb(49, 68, 83);
  --tg-tren-re: rgb(58, 81, 99);         /* ô thanh trên khi rê / đang mở */
  --tg-hoso: rgb(76, 99, 117);
  --tg-cot: #fff;
  --tg-mn: rgb(237, 237, 237);
  --tg-mn-re: rgb(229, 229, 229);
  --tg-duong: rgb(227, 227, 227);
  --tg-bong: 0 4px 16px rgba(0, 0, 0, .2);
  /* TRẠNG THÁI TÀI KHOẢN: bảng màu đặt MỘT chỗ ở đây (nền cả dòng; chữ trạng thái không đổi màu) */
  --tg-mau-dc: rgb(248, 222, 215);       /* bị đình chỉ (riêng hoặc theo cấp trên) */
  --tg-mau-dong: rgb(247, 150, 70);      /* bị đóng, người xem gỡ được */
  --tg-mau-khoa: rgb(179, 162, 199);     /* bị đóng mà người xem không gỡ được, hoặc cấp trên bị đóng */
  --tg-mau-vh: rgb(160, 169, 122);       /* vô hiệu hóa */
  --tg-mau-luu: rgb(150, 150, 150);      /* đã lưu trữ (chưa dùng) */
  --tg-mau-sai: rgb(204, 204, 204);      /* bị khoá do nhập sai mật khẩu (chỉ khoá đăng nhập tài khoản đó) */
  --tg-dem-mo: rgb(4, 90, 206); --tg-dem-dong: rgb(233, 40, 25); --tg-dem-dc: rgb(252, 107, 0);      /* ba con số ở trang chủ: mở | đóng | đình chỉ */
  --tg-tt-vien: rgb(223, 223, 223);      /* viền hộp ô tích, hộp hỏi */
}
:root[data-nen="toi"] {
  color-scheme: dark;
  --tg-nen: #171c22; --tg-the: #222932; --tg-nhat: #323c48; --tg-mo: #28303a;
  --tg-chu: #dfe4ea; --tg-chu2: #c3cbd4; --tg-chu3: #d3d9e0; --tg-chu4: #a3adb8;
  --tg-vien: #414b57; --tg-vien-o: #4a5562; --tg-vien-nhat: #39434e;
  --tg-td: #ff8f8f; --tg-lk: #5db3ff; --tg-lk2: #7ab5ff; --tg-am: #ff6b6b; --tg-am2: #ff6b6b; --tg-xanh: #1d74bd; --tg-luc: #1c9416;
  --tg-dau: #2d3742; --tg-dau-chu: #eef1f5; --tg-dau-vien: #4a5562; --tg-tong: #343f4c; --tg-re: #2a333e;
  --tg-cu-dau: #3c4550; --tg-cu-dau2: #2b323a; --tg-cu-le: #272f39; --tg-cu-re: #4d4722;
  --tg-phan: #3a4a5c; --tg-phan-chu: #e4ebf3; --tg-tren: #1d2832; --tg-tren-re: #2b3a47; --tg-hoso: #2c3b48; --tg-cot: #1c222a; --tg-mn: #28303a; --tg-mn-re: #343e4a; --tg-duong: #313a45;
  --tg-bong: 0 4px 18px rgba(0, 0, 0, .55);
  --tg-mau-dc: #54352e; --tg-mau-dong: #7d420c; --tg-mau-khoa: #4b3d66; --tg-mau-vh: #474d2e; --tg-mau-luu: #4d4d4d; --tg-mau-sai: #555;
  --tg-dem-mo: #7ab5ff; --tg-dem-dong: #ff6b5c; --tg-dem-dc: #ff9a4a; --tg-tt-vien: #4a5562;
  --tg-tdm: #ff8f8f; --tg-xanh-re: #2a83cc; --tg-tab: #5db3ff; --tg-sao: #ff6b6b; --tg-i: #5db3ff; --tg-vien-xo: #4a5562; --tg-xo-re: #33414f; --tg-am-cu: #ff6b5c; --tg-re2: #2a333e;
  --tg-bong-cu: rgba(255, 255, 255, .28) 0 1px 1px; --tg-bong-cu-nut: rgba(0, 0, 0, .5) 0 2px 2px;
}
.tg, .tg *, .tg *::before, .tg *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.tg { margin: 0; background: var(--tg-the); color: var(--tg-chu); font: 13px/1.4 Roboto, Arial, sans-serif; min-height: 100vh; }
.tg button, .tg input, .tg select, .tg textarea { font: inherit; color: inherit; }
.tg button { cursor: pointer; }
.tg button:disabled { cursor: default; }
.tg [hidden] { display: none !important; }
.tg h1, .tg h2 { margin: 0; }
.tg b { font-weight: 700; }
.tg-bt { display: inline-block; flex: none; vertical-align: middle; }
.tg-anh { flex: none; border-radius: 50%; display: block; }
.tg :focus-visible { outline: 2px solid rgba(17, 138, 242, .65); outline-offset: 1px; }
.tg-am { color: var(--tg-am); }
.tg-so { white-space: nowrap; }
.tg-dam { font-weight: 700; }
.tg-an { display: none; }

/* ---------------- Khung ---------------- */
.tg-cot { position: fixed; left: 0; top: 0; bottom: 0; width: 300px; background: var(--tg-cot); box-shadow: rgba(0, 0, 0, .3) 1px 0 3px; display: flex; flex-direction: column; overflow: hidden; z-index: 60; transition: transform .22s ease; }
.tg-phai { margin-left: 300px; min-width: 0; transition: margin-left .22s ease; display: flex; flex-direction: column; min-height: 100vh; }
.tg-thu .tg-cot { transform: translateX(-300px); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
.tg-thu .tg-phai { margin-left: 0; }
.tg-man-cot { display: none; }
.tg-dang-mo .tg-cot, .tg-dang-mo .tg-tren { pointer-events: none; }
/* biểu tượng của khung: phần khoét lấy màu nền phía sau */
.tg-kh-n { fill: none; stroke: var(--o, #fff); }
.tg-kh-d { fill: var(--o, #fff); }
.tg-tren { position: sticky; top: 0; z-index: 50; height: 48px; flex: none; background: var(--tg-tren); color: #fff; display: flex; align-items: stretch; }
.tg-tren-gian { flex: 1; }
.tg-tren-nut { position: relative; flex: none; height: 48px; padding: 0; border: 0; border-radius: 0; background: none; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.tg-ngon-ngu:hover, .tg-tren-nut.tg-dang-bat { background: var(--tg-tren-re); }
.tg-tren-nut { width: 40px; }
.tg-tren > .tg-tren-nut:first-child { width: 46px; }
.tg-tren > #tgNen { width: 40px; padding-right: 2px; }
.tg-tren > .tg-tren-thich { width: 48px; margin-right: 7px; }
.tg-dong-ho { flex: none; display: flex; align-items: center; margin-right: 10px; font-size: 13px; font-weight: 300; line-height: 16px; white-space: pre; padding-top: 1px; }
.tg-dong-ho .tg-bt { margin-right: 8px; }
.tg-dong-ho b { margin-right: 3.22px; font-weight: 300; }
.tg .tg-ngon-ngu { width: 112px; gap: 8px; padding: 1px 0 0 1px; font-weight: 300; }
.tg-ngon-ngu span { line-height: 16px; padding-top: 2px; }
.tg .tg-tren-qr { width: 51px; padding-right: 5px; }
.tg .tg-tren-luoi { width: 42px; }
.tg-tren-thich .tg-bt { margin-top: -4px; }
.tg .tg-chuong .tg-bt { margin-top: -2px; }
.tg .tg-tren-luoi .tg-bt { margin-top: -2px; }
.tg .tg-tren > #tgThoat { width: 34px; }
.tg-tren > #tgThoat .tg-bt { margin-top: -2px; }
.tg-chuong-so { position: absolute; z-index: 1; left: 25px; top: 8px; height: 16px; padding: 0 4px; border-radius: 3px; background: rgb(218, 21, 38); color: #fff; font: 300 12px/16px Roboto, Arial, sans-serif; text-align: center; pointer-events: none; }
.tg-chay { position: relative; z-index: 1; height: 40px; flex: none; display: flex; align-items: center; padding: 0 19px 0 10px; background: var(--tg-the); box-shadow: rgba(0, 0, 0, .3) 1px 0 3px; }
.tg-nha { flex: none; width: 25px; height: 32px; margin-top: -5px; padding: 0; border: 0; background: none; color: var(--tg-chu); display: flex; align-items: center; justify-content: center; }
.tg-chay-o { flex: 1; min-width: 0; margin: 2px 0 0 2px; overflow: hidden; color: rgb(255, 0, 0); font-size: 13px; font-weight: 300; line-height: 16px; }
[data-nen="toi"] .tg-chay-o { color: #ff6b6b; }
.tg-chay-chu { display: flex; width: max-content; animation: tg-chay 60s linear infinite; }
.tg-chay-chu span { padding-right: 160px; white-space: nowrap; }
.tg-chay-o:hover .tg-chay-chu { animation-play-state: paused; }
@keyframes tg-chay { to { transform: translateX(-50%); } }
.tg-noi { flex: 1; min-width: 0; padding: 0 12px 24px; background: var(--tg-the); }
.tg-khung { min-width: 0; }
.tg-trang-hop { min-width: 0; animation: tg-hien .16s ease; }
@keyframes tg-hien { from { opacity: 0; } }
.tg-dinh-chi { margin: 10px 0 0; padding: 8px 12px; border: 1px solid rgb(252, 107, 0); border-radius: 3px; background: rgba(252, 107, 0, .1); color: rgb(196, 84, 0); display: flex; gap: 8px; align-items: center; font-weight: 700; }
[data-nen="toi"] .tg-dinh-chi { color: #ffb27a; }

/* hộp hồ sơ */
.tg-hs { flex: none; position: relative; width: 100%; height: 88px; padding: 0; border: 0; background: var(--tg-hoso); color: #fff !important; text-align: left; font-weight: 300 !important; }
.tg-hs .tg-anh { position: absolute; left: 12px; top: 14px; width: 56px; height: 56px; border: 3px solid rgba(255, 255, 255, .1); background-clip: padding-box; }
.tg-hs-chu > * { position: absolute; left: 80px; right: 12px; font-weight: 300; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg .tg-hs-ma { top: 17.5px; font-size: 13px; font-weight: 300; line-height: 16px; }
.tg-hs-ten, .tg-hs-otp { font-size: 12px; line-height: 17px; }
.tg-hs-ten { top: 39px; }
.tg-hs-otp { top: 60px; }
.tg-doi { flex: none; margin: 6px 10px 0; width: 280px; height: 36px; padding: 4px; border-radius: 5px; background: rgb(49, 68, 83); display: flex; }
.tg-doi-nut { flex: 1; padding: 2px 0 0; border: 0; border-radius: 5px; background: none; color: #fff !important; font-size: 13px !important; font-weight: 700 !important; line-height: 16px !important; transition: background .18s, color .18s; }
.tg-doi-nut.tg-doi-chon { background: #fff; color: rgb(59, 127, 180) !important; }

/* menu: chỉ phần danh sách này cuộn, thanh cuộn 4px nổi ở x = 290 */
.tg-menu-chinh { flex: 1 1 auto; min-height: 0; margin-top: 17px; padding: 0 0 16px 10px; overflow: hidden auto; }
.tg-menu-chinh::-webkit-scrollbar, .tg-thong-tin::-webkit-scrollbar { width: 10px; }
.tg-menu-chinh::-webkit-scrollbar-track, .tg-thong-tin::-webkit-scrollbar-track { margin: 12px 0; background: none; }
.tg-menu-chinh::-webkit-scrollbar-thumb, .tg-thong-tin::-webkit-scrollbar-thumb { border: 0 solid transparent; border-right-width: 6px; border-radius: 16px / 4px; background: rgba(0, 0, 0, .2); background-clip: padding-box; }
[data-nen="toi"] .tg-menu-chinh::-webkit-scrollbar-thumb, [data-nen="toi"] .tg-thong-tin::-webkit-scrollbar-thumb { background-color: rgba(255, 255, 255, .25); }
@supports not selector(::-webkit-scrollbar) { .tg-menu-chinh, .tg-thong-tin { scrollbar-width: thin; } }
.tg-mn-khoi { margin-bottom: 9px; }
.tg-mn { width: 280px; height: 36px; padding: 0 6px; border: 0; border-radius: 5px; background: none; color: var(--tg-chu); display: flex; align-items: center; text-align: left; transition: background .15s; }
.tg-mn:hover, .tg-mo > .tg-mn { background: var(--tg-mn-re); }
.tg-mn-bt { --o: rgb(237, 237, 237); width: 24px; height: 24px; margin-right: 18px; flex: none; border-radius: 5px; background: var(--o); color: var(--tg-chu); display: flex; align-items: center; justify-content: center; }
.tg-mn:hover > .tg-mn-bt, .tg-mo > .tg-mn .tg-mn-bt, .tg-menu-chinh:not(.tg-co-mo) .tg-chon-roi > .tg-mn-bt { --o: rgb(250, 250, 250); box-shadow: rgba(0, 0, 0, .15) 0 4px 4px; }
[data-nen="toi"] .tg-mn-bt { --o: #323c48; }
[data-nen="toi"] .tg-mn:hover > .tg-mn-bt, [data-nen="toi"] .tg-mo > .tg-mn .tg-mn-bt, [data-nen="toi"] .tg-menu-chinh:not(.tg-co-mo) .tg-chon-roi > .tg-mn-bt { --o: #46525f; }
.tg-mn-ten { flex: 1; min-width: 0; position: relative; top: 1px; font-size: 14px; font-weight: 700; line-height: 20px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-mn-mui { margin-top: -3px; transition: transform .2s; }
.tg-mo > .tg-mn .tg-mn-mui { transform: rotate(90deg); }
/* đang mở một nhóm: mục lẻ đang chọn (Dashboard) thôi sáng */
.tg .tg-co-mo .tg-mn.tg-chon-roi:not(.tg-mn-o):not(:hover) { background: none; }
.tg-mn-chatbot .tg-mn-ten { color: rgb(7, 118, 193) !important; }
[data-nen="toi"] .tg-mn-chatbot .tg-mn-ten { color: #4fb1f0 !important; }
.tg .tg-mn-chatbot .tg-mn-bt { background: none; box-shadow: none; justify-content: flex-start; }
.tg-mn-gap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; visibility: hidden; }
.tg-mo > .tg-mn-gap { grid-template-rows: 1fr; visibility: visible; }
.tg-mn-con { overflow: hidden; min-height: 0; }
.tg-mn-muc { width: 280px; padding: 9.5px 4px 8.5px 44px; border: 0; background: none; color: rgb(87, 87, 87) !important; font-size: 13px !important; font-weight: 600 !important; line-height: 18.57px !important; text-align: left; display: block; transition: color .3s; }
[data-nen="toi"] .tg-mn-muc { color: var(--tg-chu2) !important; }
.tg-mn-muc:hover, .tg-mn-muc.tg-chon-roi { color: rgb(59, 127, 180) !important; }
[data-nen="toi"] .tg-mn-muc:hover, [data-nen="toi"] .tg-mn-muc.tg-chon-roi { color: var(--tg-lk) !important; }
.tg-mn-vach { height: 1px; margin: 0 0 15px -10px; background: rgb(189, 189, 189); }
[data-nen="toi"] .tg-mn-vach { background: var(--tg-vien-nhat); }
.tg-mn-o { margin-bottom: 16px; background: rgb(245, 245, 245); border: 1px solid rgb(227, 227, 227); }
.tg .tg-mn-o > .tg-mn-bt { --o: rgb(245, 245, 245); background: none; box-shadow: none; }
[data-nen="toi"] .tg-mn-o { background: #242b34; border-color: #39434e; }
[data-nen="toi"] .tg-mn-o > .tg-mn-bt { --o: #242b34; }
.tg-mn-o.tg-chon-roi { background: var(--tg-mn-re); }
.tg-mn-o:hover { background: rgb(237, 237, 237); }
[data-nen="toi"] .tg-mn-o:hover { background: var(--tg-mn-re); }
.tg .tg-mn-o:hover > .tg-mn-bt { --o: rgb(250, 250, 250); background: var(--o); box-shadow: rgba(0, 0, 0, .15) 0 4px 4px; }
.tg .tg-mn-o.tg-chon-roi:not(:hover) > .tg-mn-bt { --o: var(--tg-mn-re); }
[data-nen="toi"] .tg-mn-o:hover > .tg-mn-bt { --o: #46525f; }
/* bảng lưới 138x315, bảng ngôn ngữ 114x254 */
.tg .tg-bat-luoi, .tg .tg-bat-ngon { border-color: rgb(223, 223, 223); border-radius: 0; box-shadow: rgba(0, 0, 0, .16) 0 3px 6px, rgba(0, 0, 0, .23) 0 3px 6px; }
[data-nen="toi"] .tg-bat-luoi, [data-nen="toi"] .tg-bat-ngon { border-color: var(--tg-vien-o); }
.tg-bat-luoi { width: 138px; }
.tg-bat-ngon { width: 114px; }
.tg-bat-luoi .tg-menu { padding: 4px 0 0; }
.tg-bat-ngon .tg-menu { padding: 0; }
.tg-bat-luoi .tg-menu-muc { height: 36px; padding: 0 4px 0 14px; gap: 10px; --o: var(--tg-the); }
.tg-bat-luoi .tg-mn-cach { margin-top: 4px; }
.tg-bat-luoi .tg-mn-lui { gap: 13px; }
.tg-bat-ngon .tg-menu-muc { height: 36px; padding: 0 4px 0 14px; gap: 8px; }
.tg-bat-luoi .tg-menu-muc:hover, .tg-bat-ngon .tg-menu-muc:hover { background: rgb(238, 238, 238); --o: rgb(238, 238, 238); }
[data-nen="toi"] .tg-bat-luoi .tg-menu-muc:hover, [data-nen="toi"] .tg-bat-ngon .tg-menu-muc:hover { background: #33414f; --o: #33414f; }
.tg .tg-bat-luoi .tg-mn-xam { margin-top: 0; font-weight: 300; background: rgb(247, 247, 249); --o: rgb(247, 247, 249); }
[data-nen="toi"] .tg-bat-luoi .tg-mn-xam { background: #2d3742; --o: #2d3742; }
.tg .tg-bat-luoi :not(.tg-mn-xam) + .tg-mn-xam { height: 37px; border-top: 1px solid rgb(211, 211, 211); }
.tg .tg-bat-luoi .tg-mn-xam + .tg-mn-xam { height: 40px; padding-top: 4px; }
[data-nen="toi"] .tg-bat-luoi :not(.tg-mn-xam) + .tg-mn-xam { border-top-color: var(--tg-vien-nhat); }

/* tab THÔNG TIN */
.tg-thong-tin { flex: 1 1 auto; min-height: 0; padding: 9px 10px 14px; overflow: hidden auto; }
.tg-tim { position: relative; width: 280px; }
.tg-tim-o { width: 100%; height: 30px; padding: 0 8px 0 29px; border: 1px solid rgb(227, 227, 227); border-radius: 5px; background: rgb(245, 245, 245); outline: 0 !important; -webkit-appearance: none; appearance: none; }
[data-nen="toi"] .tg-tim-o { border-color: var(--tg-vien-o); background: var(--tg-mo); }
.tg-tim-o::placeholder { color: rgb(117, 117, 117); font-size: 12.57px; font-style: italic; opacity: 1; }
[data-nen="toi"] .tg-tim-o::placeholder { color: var(--tg-chu4); }
.tg-tim-nut { position: absolute; left: 2px; top: 1px; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--tg-chu) !important; display: flex; align-items: center; justify-content: center; }
.tg-tim-kq { margin-top: 8px; }
.tg-tim-dong { width: 100%; min-height: 34px; padding: 5px 8px; border: 0; border-bottom: 1px solid var(--tg-vien-nhat); background: none; display: flex; align-items: center; gap: 8px; text-align: left; }
.tg-tim-dong:hover { background: var(--tg-mn); }
.tg-tim-dong b { color: var(--tg-lk); }
.tg-tim-dong i { font-style: normal; font-size: 12px; color: var(--tg-chu4); }
.tg-tim-ten { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tg-chu4); font-size: 12px; }
.tg-tim-dong .tg-tt { font-size: 12px; }
.tg-tim-dong.tg-mau, .tg-tim-dong.tg-mau:hover { background: var(--tg-mau-nen); }
.tg-tim-dong.tg-mau b, .tg-tim-dong.tg-mau i, .tg-tim-dong.tg-mau .tg-tim-ten { color: var(--tg-chu); }
.tg-tim-trong { padding: 10px 4px; color: var(--tg-chu4); }

/* ---------------- Trang chủ ---------------- */
.tg-trang-chu { margin: 0 -12px -24px; padding: 12px 16px 24px; background: var(--tg-nen); min-height: calc(100vh - 88px); }
.tg-hai-the { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.tg-the { background: var(--tg-the); padding: 0 16px 8px; box-shadow: rgba(0, 0, 0, .2) 1px 2px 6px; min-height: 120px; --o: var(--tg-the); }
.tg .tg-the .tg-tk-db-td { height: 46px; gap: 7px; line-height: 20px; color: var(--tg-chu); }
.tg .tg-the .tg-tk-db-td .tg-bt { color: var(--tg-chu); }
.tg-tk-db-td span { padding-top: 1px; }
.tg-muc-td { height: 29px; margin-bottom: 6px !important; font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 33px; border-bottom: 1px solid rgb(222, 222, 222); color: var(--tg-chu); }
[data-nen="toi"] .tg-muc-td { border-color: var(--tg-vien-nhat); }
.tg-d { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 16px; padding: 0 4px; }
.tg-d:hover { background: var(--tg-cu-re); --o: var(--tg-cu-re); }
.tg-d-gt { text-align: right; white-space: nowrap; }
.tg-d > .tg-d-gt { font-weight: 700; text-transform: uppercase; }
.tg-the .tg-am { color: var(--tg-am2); }
.tg-nut-tien { height: 22px; padding: 0 8px; border: 1px solid rgb(157, 157, 157); border-radius: 2px; background: linear-gradient(rgb(255, 255, 255), rgb(225, 225, 225)); color: rgb(6, 130, 0) !important; font-size: 13px !important; font-weight: 700 !important; line-height: 16px !important; display: block; }
[data-nen="toi"] .tg-nut-tien { border-color: #55534a; background: #2f2d22; color: #8fe08f !important; }
.tg-d-bam { padding: 0; border: 0; background: none; font-weight: 700 !important; }
.tg-dem { color: var(--tg-chu); }
.tg-dem button, .tg-dem b { font-weight: 700 !important; padding: 0 4px; }
.tg .tg-dem-mo { color: var(--tg-dem-mo); }
.tg .tg-dem-dong { color: var(--tg-dem-dong); }
.tg .tg-dem-dc { color: var(--tg-dem-dc); }
/* dấu cộng và hộp bảng nổi ngay dưới dòng */
.tg .tg-the .tg-tk-db-i { margin: -4px 0 0 1px; display: inline-flex; align-items: center; justify-content: center; color: rgb(11, 89, 156) !important; }
[data-nen="toi"] .tg-the .tg-tk-db-i { color: var(--tg-lk) !important; }
.tg-bung { position: relative; }
.tg-bung > .tg-d { justify-content: flex-start; }
.tg-bung-nut { width: 21px; height: 22px; margin: -3px -4px 0 -2px; padding: 0; border: 0; background: none; color: var(--tg-chu); vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; }
.tg-bung-gap { position: absolute; z-index: 5; left: 4px; top: 32px; width: 350px; max-width: calc(100% - 8px); padding: 0; border: 1px solid rgb(223, 223, 223); border-radius: 1px; background: var(--tg-the); box-shadow: rgba(0, 0, 0, .16) 0 3px 6px, rgba(0, 0, 0, .23) 0 3px 6px; display: none; }
.tg-mo > .tg-bung-gap { display: block; animation: tg-hien .12s ease; }
.tg-bung-than { overflow-x: auto; }
.tg-bung table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.tg-bung th, .tg-bung td { height: 39px; padding: 0 8px; border: 1px solid var(--tg-vien-o); }
.tg-bung th { background: var(--tg-cu-dau); color: #fff; font-weight: 400; text-align: center; white-space: nowrap; }
.tg-bung th:first-child { width: 39%; }
.tg-bung td:last-child { text-align: right; }
.tg-bung td .tg-d-gt { font-weight: 400; }
.tg-bung td.tg-bung-rong { text-align: center; }
[data-nen="toi"] .tg-bung-gap { border-color: var(--tg-vien-o); }

/* ---------------- Tiêu đề, bộ lọc ---------------- */
.tg-td { min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; border-bottom: 1px solid var(--tg-vien); }
.tg-td-chu { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--tg-tdm); line-height: 39px; }
.tg-td-phai { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tg-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; }
.tg-nhan { font-size: 13px; color: var(--tg-chu2); white-space: nowrap; }
.tg-cap { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.tg-o-canh { font-size: 12px; color: var(--tg-chu4); white-space: nowrap; }
.tg-o-canh:empty { display: none; }
.tg-o-canh.tg-am { color: var(--tg-am); }
.tg-loc-ky { font-size: 12px; font-weight: 700; color: var(--tg-am); }
.tg-o { height: 28px; padding: 0 8px; border: 1px solid var(--tg-vien-o); border-radius: 3px; background: var(--tg-the); font-size: 13px; max-width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea.tg-o { height: auto; padding: 6px 8px; resize: vertical; }
.tg-o:hover { border-color: rgb(160, 170, 180); }
.tg-o:focus { border-color: rgb(59, 127, 180); box-shadow: 0 0 0 2px rgba(59, 127, 180, .18); outline: 0; }
.tg-o:disabled { background: rgb(230, 230, 230); color: rgb(110, 110, 110); }
[data-nen="toi"] .tg-o:disabled { background: #323b46; color: #98a3af; }
.tg-o::placeholder { color: rgb(150, 150, 150); }
.tg-o-loi { border-color: var(--tg-do) !important; }
.tg-o-tich { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--tg-chu2); }
.tg-o-tich input { width: 13px; height: 13px; margin: 0; cursor: pointer; flex: none; }
.tg-o-mk { position: relative; display: inline-block; max-width: 100%; }
.tg-o-mk .tg-o { width: 100%; padding-right: 32px; }
.tg-o-mk input::-ms-reveal { display: none; }
.tg-mat { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 30px; padding: 0; border: 0; background: none; color: var(--tg-chu4) !important; display: flex; align-items: center; justify-content: center; }
.tg-mat:hover { color: var(--tg-xanh) !important; }

.tg-nut { height: 28px; min-width: 86px; padding: 0 10px; border: 0; border-radius: 3px; color: #fff !important; font-size: 13px !important; font-weight: 700 !important; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: filter .15s, opacity .15s; position: relative; }
.tg-nut-xanh { background: var(--tg-xanh); }
.tg .tg-nut-xanh:hover:not(:disabled), .tg .tg-nut-xanh.tg-dang-bat { background: var(--tg-xanh-re); filter: none; }
.tg-nut-luc { background: var(--tg-nut-luc); }
.tg-nut-cam { background: var(--tg-cam); }
.tg-nut-xam { background: rgb(144, 144, 144); }
.tg-nut-trang { background: var(--tg-the); color: var(--tg-chu) !important; border: 1px solid var(--tg-vien-o); font-weight: 400 !important; }
.tg-nut:hover:not(:disabled) { filter: brightness(1.12); }
.tg-nut-trang:hover:not(:disabled) { filter: none; background: var(--tg-mn); }
.tg-nut:active:not(:disabled) { filter: brightness(.93); }
.tg-nut:disabled { opacity: .5; }
.tg-nut-nhanh { justify-content: space-between; min-width: 0; padding: 0 9px 0 16px; gap: 11px; }
/* tam giác xổ 10x5 */
.tg-tam-giac { flex: none; display: block; font-style: normal; width: 0; height: 0; border: solid transparent; border-width: 5px 5px 0; border-top-color: currentColor; }
.tg-ban { pointer-events: none; color: transparent !important; }
.tg-ban > * { visibility: hidden; }
.tg-ban::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: tg-quay .7s linear infinite; }
.tg-nut-trang.tg-ban::after { border-color: var(--tg-vien); border-top-color: var(--tg-xanh); }
@keyframes tg-quay { to { transform: rotate(360deg); } }
.tg-nut-hinh { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 5px; background: var(--tg-nhat); color: var(--tg-chu2); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .15s; }
.tg-nut-hinh:hover { background: var(--tg-mn-re); filter: brightness(.96); }
.tg .tg-nh-tin { color: var(--tg-i); }
.tg-ngon { display: inline-flex; gap: 3px; flex: none; }
.tg .tg-ngon .tg-nut-hinh { border-radius: 3px; color: var(--tg-ngon); }
.tg-lk { padding: 0; border: 0; background: none; color: var(--tg-lk) !important; text-align: inherit; }
.tg-lk:hover { text-decoration: underline; }
.tg .tg-dem .tg-lk.tg-dem-mo { color: var(--tg-dem-mo) !important; }
.tg .tg-dem .tg-lk.tg-dem-dong { color: var(--tg-dem-dong) !important; }
.tg .tg-dem .tg-lk.tg-dem-dc { color: var(--tg-dem-dc) !important; }

.tg-chon { height: 28px; padding: 0 10px; border: 1px solid var(--tg-vien-o); border-radius: 3px; background: var(--tg-the); display: inline-flex; align-items: center; justify-content: space-between; gap: 6px; text-align: left; font-size: 13px; max-width: 100%; transition: border-color .15s; }
.tg-chon:hover { border-color: rgb(160, 170, 180); }
.tg-chon.tg-dang-bat { border-color: rgb(59, 127, 180); }
/* hàng lọc kiểu mới: rê, mở, đang gõ đều giữ viền 209 như trang thật (bàn phím vẫn có vòng sáng ở ô chọn) */
.tg .tg-tb-loc .tg-chon, .tg .tg-loc-moi .tg-chon, .tg .tg-tb-loc .tg-o:not(.tg-o-loi), .tg .tg-loc-moi .tg-o:not(.tg-o-loi), .tg .tg-bat-cot .tg-o { border-color: var(--tg-vien-o); box-shadow: none; }
.tg-chon:disabled { background: rgb(230, 230, 230); color: rgb(110, 110, 110); }
[data-nen="toi"] .tg-chon:disabled { background: #323b46; color: #98a3af; }
.tg-chon-chu { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* hộp bật */
.tg-bat { position: fixed; z-index: 1000; background: var(--tg-the); border: 1px solid var(--tg-vien-o); border-radius: 3px; box-shadow: var(--tg-bong); overflow: auto; max-width: calc(100vw - 8px); font-size: 13px; color: var(--tg-chu); scrollbar-width: thin; }
.tg-bat-hien { animation: tg-bat .13s ease-out; }
@keyframes tg-bat { from { opacity: 0; transform: translateY(-5px); } }
.tg-menu { padding: 3px 0; }
.tg-menu-muc { width: 100%; min-height: 28px; padding: 4px 12px; border: 0; background: none; display: flex; align-items: center; gap: 9px; text-align: left; white-space: nowrap; transition: background .1s; }
.tg-menu-muc:hover, .tg-menu-muc:focus-visible { background: rgb(229, 239, 250); outline: 0; }
[data-nen="toi"] .tg-menu-muc:hover, [data-nen="toi"] .tg-menu-muc:focus-visible { background: #33414f; }
.tg-menu-muc.tg-chon-roi { color: rgb(34, 103, 182) !important; font-weight: 700 !important; }
[data-nen="toi"] .tg-menu-muc.tg-chon-roi { color: var(--tg-lk) !important; }
.tg-menu-muc:disabled { opacity: .5; }
.tg-muc-ngay { min-height: 34.55px; }
.tg .tg-bat-ngay { width: 160px; border-color: var(--tg-vien-xo); box-shadow: none; }
.tg-bat-ngay .tg-menu { padding: 0; }
.tg-bat-ngay .tg-menu-muc { padding: 0 16px; color: rgb(33, 33, 33); }
.tg-bat-ngay .tg-menu-muc.tg-chon-roi { color: rgb(33, 33, 33) !important; font-weight: 400 !important; }
.tg-bat-ngay .tg-menu-muc:hover, .tg-bat-ngay .tg-menu-muc:focus-visible { background: var(--tg-xo-re); }
[data-nen="toi"] .tg-bat-ngay .tg-menu-muc, [data-nen="toi"] .tg-bat-ngay .tg-menu-muc.tg-chon-roi { color: var(--tg-chu) !important; }
.tg-menu-vach { height: 1px; margin: 4px 0; background: var(--tg-vien-nhat); }
.tg-bat-hs { border-radius: 0 0 4px 4px; }
.tg-bat-hs .tg-menu-muc { min-height: 36px; padding-left: 18px; gap: 14px; }
.tg-bat-hs .tg-menu-muc .tg-bt { opacity: .75; }
.tg-mn-thoat { color: var(--tg-do) !important; }
/* xổ nhiều chọn: hộp 220 cao nhất 300 */
.tg .tg-bat-xo { box-shadow: none; min-width: 220px; }
.tg-cot-ds { padding: 5px 10px; max-height: 298px; overflow-y: auto; scrollbar-width: thin; }
.tg-cot-muc { display: flex; min-height: 33px; white-space: nowrap; padding: 0 8px 0 3px; color: var(--tg-chu2); }
.tg-cot-het { border-bottom: 1px solid rgb(204, 204, 204); }
[data-nen="toi"] .tg-cot-het { border-color: var(--tg-vien-nhat); }
/* Cột Hiển Thị: hộp 220x324 có ô "Tìm Cột" */
.tg .tg-bat-cot { border-color: var(--tg-vien-xo); box-shadow: none; width: 220px; overflow: hidden; }
.tg-cot-hop { padding: 10px; display: flex; flex-direction: column; max-height: 322px; }
.tg-cot-hop .tg-cot-muc { font-weight: 700; flex: none; }
.tg-cot-hop .tg-cot-het { margin-bottom: 0; }
.tg-cot-hop .tg-cot-ds { padding: 0; flex: 1 1 auto; min-height: 0; }
.tg-cot-tim { position: relative; flex: none; }
.tg-cot-tim .tg-o { width: 100%; padding-right: 28px; }
.tg-cot-tim-x { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 26px; padding: 0; border: 0; background: none; color: var(--tg-chu2); display: flex; align-items: center; justify-content: center; }

/* tab */
.tg-tab { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--tg-vien); }
.tg-tab-nut { height: 41px; padding: 0 20px; border: 0; background: none; font-size: 13px !important; font-weight: 700 !important; position: relative; color: var(--tg-chu4) !important; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.tg-tab-nut::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: rgb(34, 103, 182); transform: scaleX(0); transition: transform .18s; }
.tg-tab-nut:hover { color: rgb(34, 103, 182) !important; }
.tg-tab-nut.tg-tab-chon { color: rgb(34, 103, 182) !important; }
[data-nen="toi"] .tg-tab-nut.tg-tab-chon, [data-nen="toi"] .tg-tab-nut:hover { color: var(--tg-lk) !important; }
.tg-tab-nut.tg-tab-chon::after { transform: none; }
.tg-moi { padding: 0 5px; border-radius: 3px; background: rgb(218, 21, 38); color: #fff; font: 700 10px/15px Roboto, Arial, sans-serif; }
.tg-duong { min-height: 41px; padding: 5px 7px; border: 1px solid var(--tg-dau-vien); background: var(--tg-the); display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.tg-duong:has(+ .tg-bang-ngoai) { border-bottom: 0; }
.tg-duong-mui { color: var(--tg-chu4); }
.tg-duong-cuoi { color: var(--tg-td); font-weight: 700; text-transform: uppercase; }
.tg-phan { margin: 10px 0; max-width: 100%; }
.tg-phan-dau { width: 100%; height: 27px; padding: 0 10px; border: 0; background: var(--tg-phan); color: var(--tg-phan-chu) !important; font-size: 13px !important; font-weight: 700 !important; text-transform: uppercase; display: flex; align-items: center; gap: 8px; text-align: left; }
.tg-phan-dau > span { flex: 1; }
.tg-phan-dau:hover { filter: brightness(.97); }
.tg-phan-mui { transition: transform .18s; transform: rotate(180deg); }
.tg-phan-gap > .tg-phan-dau .tg-phan-mui { transform: none; }
.tg-phan-than { padding: 10px; border: 1px solid var(--tg-vien-nhat); border-top: 0; }
.tg-phan-gap > .tg-phan-than { display: none; }

/* trạng thái tài khoản: chữ thường, liên kết xanh + hộp ô tích, hộp hỏi */
.tg-tt { white-space: nowrap; }
.tg-tt-o { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 4px; max-width: 100%; }
.tg-tt-o-khoa { width: 16px; height: 18px; padding: 0; border: 0; background: none; color: inherit; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tg-tt-o-sai { color: #d0021b; }
.tg-tt-lk { padding: 0; border: 0; background: none; color: var(--tg-lk2) !important; font-size: 13px !important; line-height: 18px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.tg-tt-lk:hover span { text-decoration: underline; }
.tg-tt-mui { width: 0; height: 0; border: 4px solid transparent; border-bottom-width: 0; border-top-color: currentColor; transition: transform .15s; }
.tg-tt-lk.tg-dang-bat .tg-tt-mui { transform: rotate(180deg); }
.tg-tt-hop { width: 300px; border-color: var(--tg-tt-vien); border-radius: 0; }
.tg-tt-ds { display: flex; flex-direction: column; }
.tg-tt-dong { height: 30px; padding: 0 10px; gap: 8px; color: var(--tg-chu); }
.tg-tt-dong:hover { background: var(--tg-re); }
.tg-tt-dong input { width: 13px; height: 13px; }
.tg-tt-dong.tg-tt-mo { color: rgb(131, 131, 131); cursor: default; }
.tg-tt-dong.tg-tt-mo input { cursor: default; }
.tg-tt-dong.tg-tt-mo:hover { background: none; }
.tg .tg-man-tt { padding-top: 100px; }
.tg .tg-hop-tt { position: relative; border: 1px solid var(--tg-tt-vien); border-radius: 1px; color: var(--tg-chu); }
.tg-hop-tt .tg-hop-dau { position: absolute; left: 0; right: 0; top: 0; min-height: 0; height: 36px; padding: 0; border: 0; justify-content: flex-end; }
.tg-hop-tt .tg-hop-td, .tg-hop-tt .tg-hop-x svg { display: none; }
.tg-hop-tt .tg-hop-x { width: 36px; height: 36px; border-radius: 0; font-size: 21px !important; font-weight: 700 !important; line-height: 1 !important; }
.tg-hop-tt .tg-hop-x::before { content: "\00d7"; }
.tg-hop-tt .tg-hop-x:hover { background: none; color: var(--tg-chu) !important; }
.tg-hop-tt .tg-hop-than { padding: 40px 16px 16px; font-size: 14px; line-height: 22px; overflow-wrap: anywhere; }
.tg-hop-tt-chu { display: flex; flex-direction: column; gap: 8px; }
.tg-hop-tt .tg-hop-chan { padding: 12px 16px 4px; justify-content: flex-end; }
.tg .tg-hop-tt .tg-nut { width: 80px; min-width: 0; height: 28px; margin-bottom: 16px; border-radius: 1px; color: rgb(237, 237, 237) !important; font-weight: 500 !important; text-transform: uppercase; }
.tg-hop-tt .tg-nut-xam { background: rgb(105, 105, 105); }
.tg-hop-tt .tg-nut-xanh { background: rgb(11, 89, 156); }
.tg-mau-dc { --tg-mau-nen: var(--tg-mau-dc); }
.tg-mau-dong { --tg-mau-nen: var(--tg-mau-dong); }
.tg-mau-khoa { --tg-mau-nen: var(--tg-mau-khoa); }
.tg-mau-vh { --tg-mau-nen: var(--tg-mau-vh); }
.tg-mau-sai { --tg-mau-nen: var(--tg-mau-sai); }

/* ---------------- Thông báo, hộp thoại ---------------- */
.tg-bao-khung { position: fixed; top: 6px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.tg-bao { pointer-events: auto; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 4px; color: #fff; display: flex; align-items: center; gap: 10px; box-shadow: var(--tg-bong); font-size: 13px; animation: tg-bao .2s ease-out; transition: opacity .2s, transform .2s; }
.tg-bao-mat { opacity: 0; transform: translateY(-8px); }
@keyframes tg-bao { from { opacity: 0; transform: translateY(-14px); } }
.tg-bao-tot { background: rgb(22, 138, 84); }
.tg-bao-loi { background: rgb(200, 35, 45); }
.tg-bao-tin { background: rgb(34, 103, 182); }
.tg-bao-khoa { background: rgb(62, 72, 84); }
.tg-bao-dong { width: 20px; height: 20px; padding: 0; border: 0; background: none; color: #fff !important; opacity: .75; display: flex; align-items: center; justify-content: center; flex: none; }
.tg-bao-dong:hover { opacity: 1; }
.tg-man { position: fixed; inset: 0; z-index: 900; background: rgba(0, 0, 0, .5); overflow: auto; padding: 60px 12px 24px; animation: tg-hien .15s ease; transition: opacity .15s; }
.tg-man-tat { opacity: 0; pointer-events: none; }
.tg-hop { margin: 0 auto; max-width: calc(100vw - 24px); background: var(--tg-the); border-radius: 3px; box-shadow: rgba(0, 0, 0, .3) 0 2px 6px; display: flex; flex-direction: column; animation: tg-hop .18s ease-out; }
@keyframes tg-hop { from { opacity: 0; transform: translateY(-16px) scale(.985); } }
.tg-hop-dau { min-height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--tg-vien); display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: move; user-select: none; touch-action: none; }
.tg-hop-td { font-size: 13px; font-weight: 700; color: var(--tg-td); overflow-wrap: anywhere; }
.tg-hop-x { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 3px; background: none; color: var(--tg-chu4) !important; display: flex; align-items: center; justify-content: center; flex: none; }
.tg-hop-x:hover { background: var(--tg-do); color: #fff !important; }
.tg-hop-than { padding: 14px; overflow: auto; max-height: calc(100vh - 180px); min-width: 0; }
.tg-hop-chan { padding: 10px 14px 14px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.tg-hop-keo { opacity: .93; }
.tg-hoi { display: flex; align-items: center; gap: 14px; padding: 8px 4px; font-size: 14px; overflow-wrap: anywhere; }
.tg-hoi .tg-bt { color: var(--tg-xanh); }
.tg-hoi-hai { align-items: flex-start; }
.tg-hoi-hai .tg-bt { color: var(--tg-cam); }
.tg-hoi-noi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; line-height: 20px; }

/* bảng luật mật khẩu (dùng chung) */
.tg-luat { width: 100%; list-style: none; margin: 2px 0 0; padding: 0; font-size: 12px; color: var(--tg-chu4); }
.tg-luat li { display: flex; align-items: flex-start; gap: 7px; line-height: 18px; margin: 1px 0; transition: color .15s; }
.tg-luat-cham { width: 14px; height: 14px; margin-top: 2px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tg-mn-re); color: transparent; transition: background .15s, color .15s; }
.tg-luat-ghi .tg-luat-cham { color: var(--tg-chu4); }
.tg-luat-dat { color: rgb(6, 130, 0); }
.tg-luat-dat .tg-luat-cham { background: var(--tg-nut-luc); color: #fff; }
.tg-luat-chua { color: var(--tg-am); }
[data-nen="toi"] .tg-luat-dat { color: #4cc95f; }

/* chờ, lỗi */
.tg-vong-cho { padding: 34px; text-align: center; }
.tg-vong { display: inline-block; width: 28px; height: 28px; border: 3px solid var(--tg-vien-nhat); border-top-color: var(--tg-xanh); border-radius: 50%; animation: tg-quay .8s linear infinite; }
.tg-dang-tai { position: relative; min-height: 70px; pointer-events: none; }
.tg-dang-tai > * { opacity: .45; transition: opacity .15s; }
.tg-dang-tai > .tg-nap { position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; opacity: 1; }
.tg-nap-vong { position: sticky; top: 45vh; bottom: 45vh; width: 44px; height: 44px; display: block; }
.tg-nap-vong i { position: absolute; left: 19px; top: 19px; width: 6px; height: 6px; border-radius: 50%; animation: tg-nap .8s steps(8) infinite;
  --c: 11, 89, 156; box-shadow: 0 -15px rgb(var(--c)), 10.600px -10.600px rgba(var(--c), .12), 15px 0 rgba(var(--c), .24), 10.600px 10.600px rgba(var(--c), .36), 0 15px rgba(var(--c), .5), -10.600px 10.600px rgba(var(--c), .62), -15px 0 rgba(var(--c), .75), -10.600px -10.600px rgba(var(--c), .88); }
[data-nen="toi"] .tg-nap-vong i { --c: 120, 190, 255; }
@keyframes tg-nap { to { transform: rotate(360deg); } }
.tg-loi-tai, .tg-khoa-trang { padding: 44px 16px; text-align: center; color: var(--tg-chu4); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tg-loi-tai .tg-bt { color: rgb(230, 150, 20); }

/* ---------------- Bảng ---------------- */
.tg-bang-hop { width: 100%; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
/* bảng rộng hơn khung: cột mã ghim bên trái, thanh cuộn ngang dính đáy màn hình */
.tg-bang-ngoai { width: 100%; max-width: 100%; min-width: 0; }
.tg-bang-thanh { display: none; }
.tg-bang-tran > .tg-bang-hop { scrollbar-width: none; }
.tg-bang-tran > .tg-bang-hop::-webkit-scrollbar { display: none; }
.tg-bang-tran > .tg-bang-thanh { display: block; position: sticky; bottom: 0; z-index: 6; height: 12px; overflow-x: auto; overflow-y: hidden; background: var(--tg-nhat); border-radius: 6px; }
.tg-bang-thanh > i { display: block; height: 1px; }
.tg-bang-thanh::-webkit-scrollbar { height: 12px; }
.tg-bang-thanh::-webkit-scrollbar-track { background: var(--tg-nhat); border-radius: 6px; }
.tg-bang-thanh::-webkit-scrollbar-thumb { background: rgb(150, 162, 174); border: 2px solid var(--tg-nhat); border-radius: 6px; }
.tg-bang-thanh::-webkit-scrollbar-thumb:hover { background: rgb(115, 128, 142); }
.tg-bang { border-collapse: collapse; table-layout: fixed; font-size: 13px; color: var(--tg-chu3); background: var(--tg-the); }
.tg-bang th, .tg-bang td { padding: 3px 6px; overflow-wrap: anywhere; }
.tg-bang th { font-weight: 700; text-align: center; line-height: 17px; }
.tg-bang td { background: var(--tg-the); }
.tg-bang-tran .tg-bang .tg-ghim { position: sticky; left: 0; z-index: 2; box-shadow: inset 1px 0 var(--tg-vien), inset -1px 0 var(--tg-vien), 3px 0 5px -2px rgba(0, 0, 0, .18); }
.tg-bang-tran .tg-bang thead .tg-ghim { z-index: 3; }
.tg-bang tfoot .tg-tong-nhan { overflow-wrap: normal; }
.tg-c-trai { text-align: left; }
.tg-c-giua { text-align: center; }
.tg-c-phai { text-align: right; }
/* kiểu mới: viền 166, đầu bảng có bóng (viền tách để bóng hiện được) */
.tg .tg-bang-moi { border-collapse: separate; border-spacing: 0; border: solid var(--tg-dau-vien); border-width: 1px 0 0 1px; }
.tg-bang-moi th, .tg-bang-moi td { height: 28px; border: solid var(--tg-dau-vien); border-width: 0 1px 1px 0; }
.tg-bang-moi th { background: var(--tg-dau); color: var(--tg-dau-chu); }
.tg-bang-moi thead { position: relative; z-index: 1; box-shadow: rgba(0, 0, 0, .25) 0 2px 4px; }
.tg-bang-moi th.tg-xep { position: relative; padding-right: 17px; }
.tg-bang-moi .tg-xep-mui { position: absolute; right: 6px; top: 50%; margin: 0; transform: translateY(-50%); }
.tg-bang-moi tbody tr:hover td { background: var(--tg-re2); }
.tg-bang-51 tbody td { color: var(--tg-chu); }     /* Danh sách, Hạn mức: chữ dòng đậm hơn bảng báo cáo */
.tg-bang-moi tfoot td { background: var(--tg-tong); color: var(--tg-dau-chu); font-weight: 700; }
.tg-bang-moi tfoot td:first-child, .tg-bang-moi tfoot .tg-tong-nhan { text-align: right; }
.tg .tg-tong-trai tfoot td:first-child { text-align: left; }
.tg-bang-cu th { height: 28px; background: var(--tg-cu-dau); color: #fff; border: 1px solid var(--tg-vien-o); font-weight: 400; }
.tg-bang-cu thead tr:nth-child(2) th { background: var(--tg-cu-dau2); }
.tg-bang-cu td { border: 1px solid var(--tg-vien-o); height: 28px; color: var(--tg-chu); }
.tg-bang-cu tbody tr:nth-child(even) td { background: var(--tg-cu-le); }
.tg-bang-cu tbody tr:hover td { background: var(--tg-cu-re); }
.tg-bang-cu tfoot td { background: var(--tg-tong); font-weight: 700; }
.tg-bang-cu .tg-lk { color: var(--tg-lk2) !important; }
[data-nen="toi"] .tg-bang-cu .tg-lk { color: var(--tg-lk2) !important; }
/* nền cả dòng theo trạng thái tài khoản: đè so le, rê chuột, dòng đang tích */
.tg .tg-bang tbody tr.tg-mau td { background: var(--tg-mau-nen); color: var(--tg-chu); }
.tg .tg-bang tbody tr.tg-mau .tg-tv-nho { color: inherit; }
.tg .tg-bang tbody tr.tg-mau .tg-lk:not(.tg-tv-am) { color: var(--tg-lk2) !important; }
.tg-bang .tg-rong td { text-align: center; background: var(--tg-the) !important; }
.tg-bam { cursor: pointer; }
.tg-xep { cursor: pointer; user-select: none; }
.tg-xep:hover { filter: brightness(.96); }
.tg-bang-cu .tg-xep:hover { filter: brightness(1.12); }
.tg-xep-mui { display: inline-flex; flex-direction: column; gap: 2px; margin-left: 5px; vertical-align: middle; }
.tg-xep-mui i { width: 0; height: 0; border: 4px solid transparent; border-top-width: 0; border-bottom: 4px solid rgb(64, 64, 64); }
.tg-xep-mui i.tg-xep-x { border: 4px solid transparent; border-bottom-width: 0; border-top: 4px solid rgb(64, 64, 64); }
.tg-xep-mui:has(.tg-xep-chon) i:not(.tg-xep-chon) { visibility: hidden; }
.tg-bang-cu .tg-xep-mui i { border-bottom-color: rgb(200, 205, 212); }
.tg-bang-cu .tg-xep-mui i.tg-xep-x { border-bottom-color: transparent; border-top-color: rgb(200, 205, 212); }
[data-nen="toi"] .tg-xep-mui i:not(.tg-xep-x) { border-bottom-color: rgb(150, 160, 172); }
[data-nen="toi"] .tg-xep-mui i.tg-xep-x { border-top-color: rgb(150, 160, 172); }
.tg .tg-bang .tg-xep-mui i.tg-xep-chon { border-bottom-color: rgb(218, 21, 38); }
.tg .tg-bang .tg-xep-mui i.tg-xep-x.tg-xep-chon { border-bottom-color: transparent; border-top-color: rgb(218, 21, 38); }
.tg-trang { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.tg-trang-nut { width: 28px; height: 28px; padding: 0; border: 1px solid var(--tg-vien-o); border-radius: 3px; background: var(--tg-the); display: inline-flex; align-items: center; justify-content: center; color: var(--tg-chu2) !important; }
.tg-trang-nut:hover:not(:disabled) { background: var(--tg-mn); }
.tg-trang-nut:disabled { opacity: .4; }
.tg-trang-o { text-align: center; }

/* ---------------- Ngày ---------------- */
.tg-loc-ngay { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.tg-o-ngay { position: relative; display: inline-block; }
.tg-o-ngay .tg-o { width: 100%; padding-right: 24px; }
.tg-o-ngay-nut { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 27px; padding: 0; border: 0; background: none; color: var(--tg-chu2) !important; display: flex; align-items: center; justify-content: center; }
/* lịch 250x276: đầu "Dec 2026", thứ 14/700, ô ngày 34x34 */
.tg .tg-bat-lich { border-radius: 0; box-shadow: none; }
.tg-lich { width: 248px; padding: 4px; }
.tg-lich-dau { display: flex; align-items: center; height: 31px; }
.tg-lich-nut { width: 34px; height: 31px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--tg-chu) !important; display: flex; align-items: center; justify-content: center; flex: none; }
.tg-lich-ten { flex: 1; height: 31px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 14px !important; font-weight: 700 !important; text-align: center; }
.tg-lich-nut:hover, .tg-lich-ten:hover { background: rgb(238, 238, 238); }
.tg-lich-luoi { display: grid; grid-template-columns: repeat(7, 1fr); }
.tg-lich-thu { text-align: center; font-size: 14px; font-weight: 700; line-height: 31px; }
.tg-lich-ngay { position: relative; height: 34px; padding: 0; border: 0; border-radius: 0; background: none; text-align: center; }
.tg .tg-lich-ngay { color: var(--tg-chu2); }
.tg-lich-ngay:hover:not(:disabled) { background: rgb(238, 238, 238); }
[data-nen="toi"] .tg-lich-ngay:hover:not(:disabled), [data-nen="toi"] .tg-lich-nut:hover, [data-nen="toi"] .tg-lich-ten:hover { background: #33414f; }
.tg-lich-nay { color: rgb(36, 145, 239) !important; }
.tg-lich-nay::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tg-lich-ngay.tg-lich-chon { background: var(--tg-xanh) !important; color: rgb(237, 237, 237) !important; }
.tg-lich-thang { grid-template-columns: repeat(4, 1fr); }
.tg-lich-thang .tg-lich-ngay { height: 58px; }
.tg-thang { display: inline-flex; align-items: center; height: 28px; border: 1px solid var(--tg-vien-o); border-radius: 3px; background: var(--tg-the); }
.tg-thang-chu { min-width: 120px; text-align: center; }
.tg-thang-nut { width: 18px; height: 26px; padding: 0; border: 0; background: none; color: rgb(33, 33, 33) !important; display: flex; align-items: center; justify-content: center; }
[data-nen="toi"] .tg-thang-nut { color: var(--tg-chu) !important; }
.tg-thang-nut i { width: 0; height: 0; border: solid transparent; border-width: 5px 5px 5px 0; border-right-color: currentColor; }
.tg-thang-nut:last-child i { border-width: 5px 0 5px 5px; border-right-color: transparent; border-left-color: currentColor; }
.tg-thang-nut:hover:not(:disabled) { background: var(--tg-mn-re); }
.tg-thang-nut:disabled { opacity: .3; }
/* cụm làm mới 114x28: ba nút xám cao 22 */
.tg-lam-moi { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 3px; border-radius: 3px; background: rgba(24, 150, 91, .25); }
.tg-lam-moi .tg-nut-hinh { width: 26px; height: 22px; border-radius: 3px; background: var(--tg-xam-nut); color: #fff; }
.tg-lam-moi .tg-nut-hinh:hover { background: rgb(90, 90, 90); filter: none; }
.tg .tg-lam-moi .tg-cong-tac { width: auto; min-width: 29px; height: 22px; padding: 0 3px; border-radius: 3px; }
.tg-lam-moi .tg-cong-tac i { display: none; }
.tg .tg-lam-moi .tg-cong-tac b { position: static; font-size: 13px; line-height: 22px; text-transform: uppercase; }
.tg .tg-lam-moi .tg-chon { width: 47px !important; height: 22px !important; padding: 0 6px; border: 0; border-radius: 3px; background: var(--tg-xam-nut); color: #fff; font-weight: 700; }
.tg .tg-lam-moi .tg-chon .tg-chon-chu { overflow: visible; }
.tg-quay .tg-bt { animation: tg-quay .7s linear infinite; }
.tg-cong-tac { position: relative; width: 54px; height: 24px; padding: 0; border: 0; border-radius: 12px; background: rgb(115, 115, 115); color: #fff !important; transition: background .18s; }
.tg-cong-tac i { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .18s; }
.tg-cong-tac b { position: absolute; left: 22px; right: 4px; top: 0; text-align: center; font-size: 11px; line-height: 24px; }
.tg-bat-roi.tg-cong-tac { background: rgb(27, 172, 105); }
.tg-bat-roi.tg-cong-tac i { left: 33px; }
.tg-bat-roi.tg-cong-tac b { left: 4px; right: 22px; }

/* ---------------- KIỂU CŨ ----------------
 * Đặt lớp tg-kieu-cu lên khung trang (hop trong T.dangKy … ve(hop)): tiêu đề 157,28,28; nhãn 13/400 cùng hàng ô; ô nhập / ô chọn không viền có bóng, bo 1; nút bo 1 có bóng 13/400; tab 51.
 * Thêm tg-cu-nhe (trang thành viên): chữ bảng, ô, nút 13/300; số âm 233,40,25.    Thêm tg-cu-vien (Danh sách Member): ô viền 196, nút không bóng không bo.
 * Bảng T.bang({kieu: 'cu', lop: …}): lop 'tg-cu-dam' đầu bảng 13/700; 'tg-cu-tron' không sọc dòng chẵn; 'tg-cu-td300' riêng bảng đó chữ 13/300. */
.tg .tg-kieu-cu .tg-td-chu { color: var(--tg-td); }
.tg-kieu-cu .tg-loc { gap: 8px 16px; padding: 14px 0 15px; }
.tg-kieu-cu .tg-loc-ngay { gap: 8px 16px; }
.tg-kieu-cu .tg-cap { gap: 9px; }
.tg-kieu-cu .tg-nhan, .tg-kieu-cu .tg-o-tich { color: var(--tg-chu); }
.tg-kieu-cu .tg-o, .tg-kieu-cu .tg-chon { border-color: transparent; border-radius: 1px; box-shadow: var(--tg-bong-cu); }
.tg-kieu-cu .tg-o:hover, .tg-kieu-cu .tg-chon:hover { border-color: transparent; }
.tg-kieu-cu .tg-o:focus, .tg-kieu-cu .tg-chon.tg-dang-bat { border-color: rgb(59, 127, 180); }
.tg-kieu-cu .tg-chon .tg-tam-giac, .tg-kieu-cu .tg-nut .tg-tam-giac { border-width: 4px 4px 0; }
.tg-kieu-cu .tg-nut { border-radius: 1px; font-weight: 400 !important; box-shadow: var(--tg-bong-cu-nut); }
.tg .tg-kieu-cu .tg-tab { gap: 0 14px; border-bottom-color: rgb(221, 221, 221); }
[data-nen="toi"] .tg-kieu-cu .tg-tab { border-bottom-color: var(--tg-vien-nhat); }
.tg .tg-kieu-cu .tg-tab-nut { height: 39px; padding: 0 17px; color: var(--tg-chu) !important; }
.tg .tg-kieu-cu .tg-tab-nut:hover, .tg .tg-kieu-cu .tg-tab-nut.tg-tab-chon { color: var(--tg-tab) !important; }
.tg-kieu-cu .tg-duong { min-height: 32px; padding: 4px 10px; border: 0; background: var(--tg-duong); }
.tg-cu-nhe .tg-o, .tg-cu-nhe .tg-chon { font-weight: 300; }
.tg .tg-cu-nhe .tg-nut { font-weight: 300 !important; }
.tg-cu-nhe .tg-bang-cu tbody td, .tg-cu-td300 tbody td { font-weight: 300; }
.tg-cu-nhe .tg-bang-cu tbody td.tg-dam { font-weight: 700; }
.tg-cu-nhe .tg-bang-cu .tg-am { color: var(--tg-am-cu); }
.tg .tg-cu-vien .tg-o, .tg .tg-cu-vien .tg-chon { border-color: rgb(196, 196, 196); border-radius: 0; box-shadow: none; }
[data-nen="toi"].tg .tg-cu-vien .tg-o, [data-nen="toi"] .tg-cu-vien .tg-chon { border-color: var(--tg-vien-o); }
.tg .tg-cu-vien .tg-nut { border-radius: 0; box-shadow: none; }
.tg .tg-cu-dam th { font-weight: 700; }
.tg .tg-cu-tron tbody tr:nth-child(even):not(:hover) td { background: var(--tg-the); }

/* ---------------- Ô của vé ---------------- */
.tg-ve-o { line-height: 17.2px; padding: 3px 0; }
.tg-ve-luc { font-size: 13.33px; color: rgb(67, 67, 67); }
.tg-ve-gio { overflow-wrap: anywhere; }
.tg-ve-chon { color: rgb(1, 18, 43); }
.tg-ve-do { color: rgb(181, 0, 0); }
.tg-ve-muc { color: rgb(96, 96, 96); }
.tg-ve-keo { font-weight: 600; color: rgb(0, 51, 153); }
.tg-ve-mon { color: rgb(0, 102, 204); }
.tg-ve-giai { color: rgb(102, 102, 102); }
.tg-ve-kieu { color: rgb(88, 105, 133); font-size: 11px; }
.tg-ve-tt { font-size: 11px; line-height: 16px; }
.tg-ve-tt-ten { font-weight: 700; color: rgb(96, 96, 96); }
.tg-ve-nho { font-size: 11px; overflow-wrap: anywhere; }
.tg-bang .tg-ve-kq { color: rgb(27, 164, 237) !important; }
.tg-ve-pt { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.tg-ve-pt-o { width: 100%; background: rgb(245, 227, 227); color: rgb(64, 64, 64); line-height: 20px; }
.tg-kq { padding: 10px 14px; line-height: 20px; min-width: 150px; }
.tg-kq .tg-vong-cho { padding: 6px; }
.tg-kq-tran { font-weight: 700; margin-bottom: 4px; }
[data-nen="toi"] .tg-ve-chon { color: #dbe6f5; }
[data-nen="toi"] .tg-ve-chon.tg-ve-do, [data-nen="toi"] .tg-ve-do { color: #ff7d7d; }
.tg-ve-chon.tg-ve-do { color: rgb(181, 0, 0); }
[data-nen="toi"] .tg-ve-keo { color: #8fb4ff; }
[data-nen="toi"] .tg-ve-mon { color: #6ab2ff; }
[data-nen="toi"] .tg-ve-luc, [data-nen="toi"] .tg-ve-muc, [data-nen="toi"] .tg-ve-giai, [data-nen="toi"] .tg-ve-tt-ten, [data-nen="toi"] .tg-ve-kieu { color: #aab4bf; }
[data-nen="toi"] .tg-ve-pt-o { background: #4a3236; color: #f0dada; }

/* ---------------- Chú thích rê chuột, hộp báo đỏ ở ô, dấu tròn, nút chữ i ---------------- */
.tg-ct { position: fixed; z-index: 1100; width: max-content; max-width: min(252px, calc(100vw - 12px)); padding: 8px 12px; border-radius: 5px; background: rgba(51, 51, 51, .9); color: #fff; font-size: 12px; line-height: 17px; pointer-events: none; animation: tg-hien .12s ease; }
.tg-ct-mui { position: absolute; top: -6px; width: 0; height: 0; border: 6px solid transparent; border-top-width: 0; border-bottom-color: rgba(51, 51, 51, .9); }
.tg-ct-loi { position: absolute; left: 0; bottom: calc(100% + 7px); z-index: 12; width: max-content; max-width: min(340px, calc(100vw - 48px)); min-height: 30px; padding: 8px; background: rgb(132, 0, 0); color: #fff; font: 400 13px/14px Roboto, Arial, sans-serif; text-align: left; white-space: normal; animation: tg-hien .12s ease; }
.tg-ct-loi::after { content: ""; position: absolute; left: var(--mui, 10px); top: 100%; border: 6px solid transparent; border-bottom-width: 0; border-top-color: rgb(132, 0, 0); }
.tg-dt { flex: none; border-radius: 50%; background: rgb(24, 150, 91); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.tg-dt-loi { background: rgb(254, 0, 0); }
.tg-i { flex: none; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgb(11, 89, 156); color: #fff !important; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.tg-i span { font: italic 700 12px/18px Georgia, "Times New Roman", serif; }
.tg-i:hover { filter: brightness(1.15); }

/* ---------------- Hàng tab kiểu mẫu (trang tạo tài khoản, Bảo mật) ---------------- */
.tg-tab-mau { min-height: 40px; gap: 0 14px; border-bottom-color: rgb(221, 221, 221); }
[data-nen="toi"] .tg-tab-mau { border-bottom-color: var(--tg-vien-nhat); }
.tg-tab-mau .tg-tab-nut { height: 39px; padding: 10px 20px 8px; color: rgb(51, 51, 51) !important; }
[data-nen="toi"] .tg-tab-mau .tg-tab-nut:not(.tg-tab-chon) { color: var(--tg-chu) !important; }
.tg-tab-mau .tg-tab-nut.tg-tab-chon, .tg-tab-mau .tg-tab-nut:hover { color: rgb(34, 103, 182) !important; }
[data-nen="toi"] .tg-tab-mau .tg-tab-nut.tg-tab-chon { color: var(--tg-lk) !important; }
.tg-tab-mau .tg-tab-nut:has(.tg-moi) { padding-right: 30px; }
.tg-tab-mau .tg-moi { position: absolute; right: 2px; top: -10px; height: 18px; padding: 2px; border-radius: 0; font: 400 10px/14px Roboto, Arial, sans-serif; }

/* ---------------- Mã bảo mật: màn Tạo / Xác nhận ---------------- */
.tg-man-cat { display: none; }
.tg-dang-ma > :not(.tg-ma-trang) { display: none; }
.tg-ma { width: 360px; max-width: 100%; padding: 20px 5px 0; line-height: 19px; }
.tg-ma-hinh { width: 120px; height: 120px; margin: 0 auto 16px 106px; border: 3px solid #fff; border-radius: 50%; background: rgb(176, 184, 192); box-shadow: 0 0 7px rgba(0, 0, 0, .25); color: #fff; font-size: 52px; font-weight: 700; line-height: 114px; text-align: center; }
.tg-ma-chao { margin-bottom: 5px; overflow-wrap: anywhere; }
.tg-ma-nhan { display: block; padding-top: 10px; margin: 4px 0 5px; }
.tg-ma-o { width: 350px; max-width: 100%; height: 28px; padding: 0 8px; border: 0; border-radius: 1px; background: #fff; color: rgb(85, 85, 85) !important; box-shadow: rgba(0, 0, 0, .3) 0 1px 1px; outline-offset: 0; -webkit-appearance: none; appearance: none; display: block; }
[data-nen="toi"] .tg-ma-o { background: #2d3742; color: var(--tg-chu) !important; box-shadow: rgba(255, 255, 255, .28) 0 1px 1px; }
.tg-ma-o::-ms-reveal { display: none; }
.tg-ma-o-loi { box-shadow: inset 0 0 0 1px var(--tg-do); }
.tg-ma-loi { padding-top: 5px; color: var(--tg-am); line-height: 17px; }
.tg-ma-loi:empty { display: none; }
.tg-ma-xem { margin-top: 13px; gap: 5px; color: var(--tg-chu); }
.tg-ma-xem input { width: 13px; height: 13px; }
.tg-ma-nut-h { margin-top: 16px; }
.tg .tg-ma-nut, .tg .tg-bm-n { width: auto; min-width: 86px; height: 28px; padding: 1px 15px; border-radius: 1px; background: rgb(11, 89, 156); font-weight: 400 !important; box-shadow: rgba(0, 0, 0, .3) 0 2px 2px; }
.tg-ma-luat { padding: 12px 0; max-width: 780px; color: rgb(102, 102, 102); line-height: 19px; }
[data-nen="toi"] .tg-ma-luat { color: var(--tg-chu4); }
.tg-ma-luat b { color: rgb(255, 1, 1); }
.tg-ma-luat ul { margin: 4px 0 0; padding-left: 26px; }

/* ---------------- Bảo mật ---------------- */
.tg-bm-trang { padding: 0 5px; line-height: 19px; }
.tg-bm-mau { width: 350px; max-width: 100%; padding-top: 22px; }
.tg-bm-mau .tg-ma-nhom, .tg-bm-gap .tg-ma-nhom { margin-bottom: 16px; }
.tg-bm-mau .tg-ma-nhan, .tg-bm-gap .tg-ma-nhan { padding: 0; margin: 0 0 4px; }
.tg-bm-mau .tg-ma-xem { margin: 0 0 16px; }
.tg-bm-hai-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.tg .tg-bm-n.tg-nut-cam { min-width: 79px; background: rgb(246, 115, 27); padding: 1px 10px; }
.tg .tg-bm-n.tg-nut-troi { min-width: 143px; background: rgb(40, 160, 226); }
.tg-nut-troi { background: rgb(40, 160, 226); }
.tg .tg-bm-lk, .tg .tg-bm-trang .tg-lk { color: rgb(4, 90, 206) !important; }
[data-nen="toi"].tg .tg-bm-lk, [data-nen="toi"] .tg .tg-bm-lk, [data-nen="toi"] .tg .tg-bm-trang .tg-lk { color: var(--tg-lk) !important; }
/* tab Mật Khẩu: biểu mẫu cũ xếp lại cùng kiểu tab Mã bảo mật (nhãn trên ô 350×28 không viền) */
.tg .tg-bm-mk { padding: 22px 0 0; }
.tg-bm-mk .tg-bm-hang { display: block; margin-bottom: 16px; }
.tg-bm-mk .tg-bm-nhan { display: block; width: auto; margin-bottom: 4px; line-height: 19px; color: var(--tg-chu); }
.tg-bm-mk .tg-bm-nhan:empty { display: none; }
.tg-bm-mk .tg-o-mk .tg-o:not(.tg-o-loi) { border-color: transparent; }
.tg-bm-mk .tg-o-mk .tg-o { padding: 0 30px 0 7px; border-radius: 1px; box-shadow: rgba(0, 0, 0, .3) 0 1px 1px; }
[data-nen="toi"] .tg-bm-mk .tg-o-mk .tg-o { box-shadow: rgba(255, 255, 255, .28) 0 1px 1px; }
.tg-bm-mk .tg-o-tich { gap: 5px; }
.tg-bm-mk .tg-bm-nut { gap: 8px; }
.tg-bm-mk .tg-bm-luat-hop { margin: 0; padding: 0; border: 0; background: none; color: rgb(102, 102, 102); }
[data-nen="toi"] .tg-bm-mk .tg-bm-luat-hop { color: var(--tg-chu4); }
.tg-bm-viec { padding: 10px 0; }
.tg-bm-viec-td, .tg-bm-viec-n { display: block; }
.tg-bm-viec-n { padding: 8px 0 2px 18px; }
.tg-bm-viec ul { list-style: none; margin: 0; padding: 0 0 0 42px; }
.tg-bm-viec li { position: relative; line-height: 23px; }
.tg-bm-viec li::before { content: "+"; position: absolute; left: -14px; }
.tg-bm-ct-d { display: flex; align-items: center; gap: 10px; min-height: 30px; padding-left: 42px; }
.tg-bm-ct { position: relative; flex: none; width: 54px; height: 22px; padding: 0; border: 0; border-radius: 11px; background: rgb(150, 150, 150); color: #fff !important; transition: background .18s; }
.tg-bm-ct i { position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .18s; }
.tg-bm-ct b { position: absolute; left: 20px; right: 4px; top: 0; font-size: 11px; font-weight: 400; line-height: 22px; text-align: center; }
.tg-bm-ct.tg-bat-roi { background: rgb(27, 172, 105); }
.tg-bm-ct.tg-bat-roi i { left: 35px; }
.tg-bm-ct.tg-bat-roi b { left: 4px; right: 20px; }
.tg-bm-gt { margin: 0; padding-top: 16px; max-width: 1100px; }
.tg-bm-gap-ds { padding-top: 14px; }
.tg-bm-gap { margin-bottom: 12px; }
.tg-bm-gap-dau { width: 100%; min-height: 34px; padding: 0 12px; border: 0; background: rgb(240, 242, 245); display: flex; align-items: center; gap: 10px; text-align: left; font-weight: 700 !important; }
[data-nen="toi"] .tg-bm-gap-dau { background: #2d3742; }
.tg-bm-gap-dau:hover { filter: brightness(.97); }
.tg-bm-gap-mui { width: 0; height: 0; border: 5px solid transparent; border-bottom-width: 0; border-top-color: currentColor; transition: transform .15s; }
.tg-bm-gap-dong .tg-bm-gap-mui { transform: rotate(-90deg); }
.tg-bm-gap-than { padding: 14px 12px 6px; }
.tg-bm-gap-dong .tg-bm-gap-than { display: none; }
.tg-bm-gap-than p { margin: 0 0 12px; }
.tg-bm-hang2 { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
.tg-bm-hs { display: flex; flex-wrap: wrap; gap: 16px 34px; align-items: flex-start; }
.tg-bm-hs-trai { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tg-bm-tron { width: 130px; height: 130px; padding: 2px; border: 1px solid var(--tg-vien); border-radius: 50%; }
.tg-bm-tron .tg-anh { margin: 0; }
.tg-bm-tai { height: 28px; padding: 0 16px; border: 1px solid rgb(157, 28, 28); border-radius: 1px; background: none; color: var(--tg-td) !important; }
.tg-bm-hs-phai { flex: 1; min-width: 260px; }
.tg-bm-hs-td { display: flex; justify-content: space-between; max-width: 570px; color: var(--tg-td); }
.tg-bm-hs-ds { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 0 18px; }
.tg-bm-mau-anh { width: 104px; height: 104px; padding: 3px; border: 0; border-radius: 50%; background: none; }
.tg-bm-mau-anh:hover { box-shadow: 0 0 0 2px var(--tg-vien-o); }
.tg-bm-mau-anh.tg-bm-chon { box-shadow: 0 0 0 3px rgb(34, 103, 182); }
.tg-bm-ud { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tg-bm-ud-o { width: 60px; height: 60px; border-radius: 14px; background: rgb(40, 160, 226); }
.tg-bm-ud-chu { display: flex; flex-direction: column; align-items: flex-start; }
.tg-bm-qr { width: 163px; height: 163px; margin-bottom: 12px; background: rgb(225, 228, 232); color: rgb(130, 138, 146); display: flex; align-items: center; justify-content: center; }
[data-nen="toi"] .tg-bm-qr { background: #323b46; }
.tg-bm-mo { padding: 14px 0 4px; opacity: .6; }

/* ---------------- Màn hẹp ---------------- */
@media (max-width: 999px) {
  .tg-phai { margin-left: 0; }
  .tg-cot { box-shadow: 4px 0 18px rgba(0, 0, 0, .3); z-index: 200; }
  body.tg:not(.tg-thu) .tg-man-cot { display: block; position: fixed; inset: 0; z-index: 190; background: rgba(0, 0, 0, .45); }
  .tg-thu .tg-cot { box-shadow: none; }
  .tg-hai-the { grid-template-columns: minmax(0, 1fr); }
  .tg-trang-chu { padding: 10px 10px 24px; }
}
@media (max-width: 640px) {
  .tg-an-hep, .tg-ngon-ngu span { display: none; }
  .tg .tg-tren-nut, .tg .tg-tren > #tgNen, .tg .tg-tren > #tgThoat { width: 40px; }
  .tg .tg-ngon-ngu { width: 42px; }
  .tg-dong-ho { display: block; align-self: center; margin: 0 6px 0 4px; font-size: 11px; line-height: 14px; padding: 0; text-align: right; white-space: nowrap; }
  .tg-dong-ho b { margin: 0; }
  .tg-dong-ho .tg-bt { display: none; }
  .tg-dong-ho b, .tg-dong-ho span { display: block; }
  .tg-noi { padding: 0 8px 20px; }
  .tg-trang-chu { margin: 0 -8px -20px; }
  .tg-chay { padding: 0 8px 0 4px; }
  .tg-man { padding-top: 24px; }
  .tg-tab-nut { padding: 0 10px; }
  .tg-hop-than { max-height: calc(100vh - 130px); }
  .tg-loc { gap: 8px 10px; }
  .tg-loc-ngay { gap: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) { .tg-chay-chu { animation-duration: 140s; } }
