/* /chung/giao-dien/dau-hop.css — đầu trang chung (nút Hệ sinh thái số, logo trường), khuôn hộp thoại theo cỡ. Lớp tiền tố tg2-. Cắt nguyên đoạn từ vanphong/tg2.css (NV-GD-CHUNG-1, cong-cu/tach_css.js). Văn phòng số nạp xen kẽ đúng thứ tự, đừng đổi thứ tự luật. */
/* HDC-1 (NV-CB-NS-3, 26/10/2026) — ĐẦU TRANG DÙNG CHUNG: nút "Hệ sinh thái số" kiểu A (bên trái) · logo trường thật · khối chữ cách thoáng.
   Khuôn chung cho mọi app (skill tcntn-giao-dien §3.1a). Màu nút cố định (trắng ⇒ tím nhạt), không theo màu app. */
.tg2-hd .tg2-hst{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px 0 5px;border-radius:999px;flex:none;box-sizing:border-box;
  background:linear-gradient(180deg,#ffffff 0%,var(--m-plt) 100%);border:1.5px solid #fff;color:var(--m-pd);font:700 13px var(--tg2-phong);text-decoration:none;white-space:nowrap;
  box-shadow:0 3px 0 rgba(var(--m-bong-rgb),.30),0 8px 16px -6px rgba(var(--m-bong-rgb),.55),inset 0 1px 0 #fff;transition:transform .08s,box-shadow .08s}
.tg2-hd .tg2-hst img{width:30px;height:30px;border-radius:50%;display:block;box-shadow:0 0 0 1px rgba(var(--m-pl-rgb),.18)}
.tg2-hd .tg2-hst:hover{background:linear-gradient(180deg,#ffffff 0%,var(--m-chamt) 100%)}
.tg2-hd .tg2-hst:active{transform:translateY(2px);box-shadow:0 1px 0 rgba(var(--m-bong-rgb),.30),0 4px 10px -6px rgba(var(--m-bong-rgb),.5)}
.tg2-hd .tg2-hst:focus-visible,.tg2-hd .tg2-logo-truong:focus-visible{outline:2px solid #fff;outline-offset:2px}
.tg2-hd .tg2-hst-dt{display:none}
.tg2-hd .tg2-logo-truong{flex:none;width:44px;height:44px;margin-left:6px;border-radius:50%;background:#fff;display:grid;place-items:center;overflow:hidden;box-shadow:0 0 0 2px rgba(255,255,255,.45)}
.tg2-hd .tg2-logo-truong img{width:41px;height:41px;object-fit:contain;display:block}
.tg2-hd .tg2-nd.tg2-nd-chu{margin-left:6px;margin-right:18px}
@media (max-width:767px){
  .tg2-hd .tg2-hst{height:36px;padding:0 10px 0 4px;gap:6px;font-size:12px}
  .tg2-hd .tg2-hst img{width:26px;height:26px}
  .tg2-hd .tg2-hst-mt{display:none}.tg2-hd .tg2-hst-dt{display:inline}
  .tg2-hd .tg2-logo-truong{width:36px;height:36px;margin-left:0}.tg2-hd .tg2-logo-truong img{width:34px;height:34px}
  .tg2-hd .tg2-nd.tg2-nd-chu{margin-left:2px;margin-right:0;min-width:0}
  .tg2-hd .tg2-nd-chu>span{min-width:0}.tg2-hd .tg2-nd-chu small{overflow:hidden;text-overflow:ellipsis}
}
/* HDC-1 HET */
/* HDC-2 (NV-CB-NS-3, 26/10/2026 tối) — ĐIỆN THOẠI: [☰] [biểu tượng tcntn tròn, vùng bấm 40px] [logo trường 34px] [tên trường / tên app] … [tìm] [chuông].
   Không phần tử nào đè nhau: khối chữ co theo chỗ còn lại; tên trường rút "Trường TCN Thái Nguyên" khi hẹp; tên app luôn đủ.
   Đầu trang tự cao theo nội dung (không cao cố định) ⇒ không tràn xuống che nội dung. Nhãn ô KPI xuống dòng, không cắt "…". Máy tính / iPad giữ HDC-1. */
@media (max-width:767px){
  .tg2-hd{height:auto;min-height:56px;gap:6px;padding:8px}
  .tg2-hd .tg2-ib{width:36px;height:40px}
  .tg2-hd .tg2-bell{width:36px;height:40px}
  .tg2-hd .tg2-r{gap:0;flex:none}
  .tg2-hd .tg2-hst{width:40px;height:40px;padding:0;gap:0;justify-content:center;border-radius:50%;background:none;border:0;box-shadow:none}
  .tg2-hd .tg2-hst:hover{background:none}
  .tg2-hd .tg2-hst:active{transform:none;box-shadow:none}
  .tg2-hd .tg2-hst img{width:30px;height:30px;box-sizing:border-box;border:2px solid #fff;background:#fff;
    box-shadow:0 2px 0 rgba(var(--m-bong-rgb),.35),0 5px 10px -4px rgba(var(--m-bong-rgb),.6);transition:transform .08s}
  .tg2-hd .tg2-hst:active img{transform:translateY(1px)}
  .tg2-hd .tg2-hst-mt,.tg2-hd .tg2-hst-dt{display:none}
  .tg2-hd .tg2-logo-truong{width:34px;height:34px;margin-left:0}.tg2-hd .tg2-logo-truong img{width:32px;height:32px}
  .tg2-hd .tg2-nd.tg2-nd-chu{flex:1 1 0;min-width:0;margin:0;gap:0;overflow:hidden}
  .tg2-hd .tg2-nd-chu>span{display:block;min-width:0;overflow:hidden}
  .tg2-hd .tg2-nd-chu b{display:block;white-space:nowrap;font-size:16px;line-height:1.2}
  .tg2-hd .tg2-nd-chu small{display:block;white-space:nowrap;overflow:visible;text-overflow:clip;line-height:1.25}
  .tg2-k .tg2-l{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2}
}
@media (max-width:479px){
  .tg2-hd .tg2-nd-chu small,.tg2-hd .tg2-nd-chu small *{font-size:0!important}
  .tg2-hd .tg2-nd-chu small::before{content:"Trường TCN Thái Nguyên";font-size:12px}
}
@media (max-width:374px){
  .tg2-hd{gap:4px;padding:8px 6px}
  .tg2-hd .tg2-nd-chu b{font-size:15px}
}
/* HDC-2 HET */

/* ═══ NV-POPUP-TIM-1 (27/10/2026): khuôn hộp thoại theo loại + ô tìm-chọn (danh sách gợi ý là lớp nổi /chung/o-tim, ⛔ trong vùng cuộn của hộp) ═══ */
.tg2-hopn{padding:7.5vh 16px 16px;align-items:flex-start}
.tg2-hop{width:640px;max-width:92vw;max-height:85vh;overflow:hidden}
.tg2-hop.co-nho{width:480px}.tg2-hop.co-vua{width:640px}.tg2-hop.co-lon{width:760px}.tg2-hop.co-rong,.tg2-hop.rong{width:960px}
.tg2-hop .tg2-sh1{border-bottom:1px solid var(--tg2-line2);padding-bottom:12px}
.tg2-hop .tg2-sh1 h2{white-space:normal;flex:1;min-width:0;overflow-wrap:anywhere;font-size:17px;line-height:1.3}
.tg2-hop-than{flex:1 1 auto;min-height:0;padding-top:14px;overscroll-behavior:contain}
.tg2-hop.co-tim .tg2-hop-than{padding-bottom:24px}
.tg2-hop-chan{flex:none;flex-wrap:wrap;background:#fff}
.cc-ng-du{margin:8px 0 0;padding:8px 12px;border-radius:6px;background:var(--tg2-plt);border:1px solid var(--tg2-plb);color:var(--m-tx2);font-size:13px;font-weight:500}
@media (max-width:767px){
  .tg2-hopn{padding:8px 0 0;align-items:flex-end}
  .tg2-hop,.tg2-hop.rong,.tg2-hop[class*="co-"]{width:100%;max-width:100%;max-height:calc(100dvh - 8px);border-radius:6px 6px 0 0}
  .tg2-hop:not(.co-nho){height:calc(100dvh - 8px)}
  /* hàng nút Bỏ qua / Lưu ngay dưới tiêu đề, luôn hiện khi cuộn (⛔ sát đáy — Safari che) */
  .tg2-hop:not(.co-nho) .tg2-sh1{order:0}.tg2-hop:not(.co-nho) .tg2-hop-chan{order:1;border-top:0;border-bottom:1px solid var(--tg2-line2);padding:8px 12px}
  .tg2-hop:not(.co-nho) .tg2-hop-than{order:2}
  .tg2-hop-chan .tg2-btn{min-height:44px;flex:1 1 auto}
  .tg2-hop-than{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
  .tg2-hop.co-nho .tg2-hop-chan{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .tg2-hop .tg2-sh1 h2{font-size:16px}
}
/* ═══ NV-POPUP-TIM-1 HET ═══ */

