/* /chung/giao-dien/danh-sach.css — khung trang, đầu màn, thanh lọc, danh sách dạng dòng, bảng tiến trình, ô chọn đơn vị, hộp thoại, thông báo, nút đang chờ, khối. 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. */
/* ═══ KHUNG TRANG + THÀNH PHẦN DANH SÁCH (mẫu khuon2-danh-sach.html, khuon2b-bang-tien-trinh.html) ═══ */
/* Phần 3: mọi màn cùng một khung — lề 24 (máy tính) / 16 (iPad) / 12 (điện thoại), không giới hạn bề ngang, không tràn ngang */
#nd.tg2-trang{padding:20px 24px 30px;max-width:none;margin:0;min-width:0;box-sizing:border-box;overflow-x:clip}
@media (max-width:1199px){#nd.tg2-trang{padding:20px 16px 30px}}
@media (max-width:767px){#nd.tg2-trang{padding:12px 12px 90px}}
#nd.tg2-trang > *{max-width:100%;box-sizing:border-box}
#nd.tg2-trang table{max-width:100%}
.tg2-cuon-x{overflow-x:auto;max-width:100%}
/* đầu màn (mẫu .ph): tên 22px + "?" + mô tả 13px; nút bên phải */
.tg2-ph.tg2-dau-man{display:flex;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap;background:none;border:0;padding:0;box-shadow:none}
.tg2-ph-chu{min-width:0;flex:1 1 auto}
.tg2-ph h1{font-size:22px;letter-spacing:-.01em;margin:0;color:var(--tg2-tx);display:flex;gap:10px;align-items:center;font-weight:700;line-height:1.25}
.tg2-ph p{color:var(--tg2-mu);font-size:13px;margin:3px 0 0}
.tg2-phai{margin-left:auto;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.tg2-phai:empty{display:none}
@media (max-width:767px){.tg2-ph h1{font-size:18px}.tg2-ph.tg2-dau-man{gap:8px;margin-bottom:12px}.tg2-phai{margin-left:0;width:100%}.tg2-ph p{font-size:12.5px}}
/* ô KPI gọn kiêm lọc (mẫu khuon2: .k hàng ngang, đệm 11/14, số 20, nhãn 12.5) */
.tg2-kp.tg2-kp-gon{grid-template-columns:repeat(var(--tg2-kn,4),minmax(0,1fr));margin-bottom:16px}
.tg2-kp-gon .tg2-k{display:flex;gap:12px;align-items:center;padding:11px 14px;min-height:0}
.tg2-kp-gon .tg2-k .tg2-ic{margin:0}.tg2-kp-gon .tg2-k .tg2-n{font-size:20px}.tg2-kp-gon .tg2-k .tg2-l{margin:0;font-size:12.5px;font-weight:600;line-height:1.25}
.tg2-kp-gon .tg2-k>div:last-child{min-width:0}
.tg2-k.tinh{cursor:default}
@media (max-width:1023px){.tg2-kp.tg2-kp-gon{grid-template-columns:repeat(min(var(--tg2-kn,4),3),minmax(0,1fr))}}
@media (max-width:767px){.tg2-kp.tg2-kp-gon{grid-template-columns:1fr 1fr}}
/* thanh lọc (mẫu .fbar2) — nằm ở đầu khối bảng: nền trắng, viền, bo trên */
.tg2-loc{display:flex;gap:8px;align-items:center;padding:12px 14px;background:#fff;border:1px solid var(--tg2-line);border-radius:6px 6px 0 0;border-bottom-color:var(--tg2-line2);flex-wrap:wrap;position:relative}
.tg2-loc + *{margin-top:0}
.tg2-loc-dau{display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.tg2-loc-dau .tg2-chips{margin:0}
.tg2-loc-tim{flex:1 1 220px;min-width:180px;padding:8px 12px;border:1px solid var(--tg2-line);font-size:13px}
.tg2-loc-gian{flex:1}
.tg2-loc .nut-loc em.dem,.tg2-loc em.dem{font-style:normal;font-size:12px;padding:0 7px;border-radius:20px;background:var(--tg2-pl);color:#fff}
.tg2-loc-them{display:none;position:absolute;right:14px;top:calc(100% + 6px);z-index:35;width:min(560px,calc(100vw - 32px));background:#fff;border:1px solid var(--tg2-line);border-radius:6px;box-shadow:0 16px 32px -14px rgba(var(--m-bong-rgb),.45)}
.tg2-loc-them.mo{display:block}
.tg2-loc-than{padding:0 16px 8px;display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow-y:auto}
.tg2-loc-nhom{display:flex;flex-direction:column;gap:6px}.tg2-loc-nhan{font-size:12.5px;font-weight:700;color:var(--m-tx3)}
.tg2-loc-nhom .tg2-chips{margin:0}
.tg2-loc-ngay{flex-direction:row;gap:12px;flex-wrap:wrap}.tg2-loc-o{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:var(--m-tx3)}
.tg2-loc-nen{display:none}
.tg2-hop-chan{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--tg2-line2)}
@media (max-width:767px){
  .tg2-loc{padding:10px;border-radius:6px 6px 0 0}
  .tg2-loc-dau{flex-wrap:nowrap;overflow-x:auto;width:100%}.tg2-loc-dau .tg2-chips{flex-wrap:nowrap}
  .tg2-loc-tim{min-width:0;flex:1 1 auto}
  .tg2-loc .nut-dat-lai .tg2-nhan{display:none}
  .tg2-loc-them{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;border-radius:6px 6px 0 0;z-index:85;max-height:80vh}
  .tg2-loc-them.mo ~ .tg2-loc-nen{display:block;position:fixed;inset:0;background:rgba(var(--m-bong-rgb),.55);z-index:84}
}
/* chip gọn (mẫu .chip) — dùng cho hàng chip của bộ dựng chung */
.tg2-chips-gon{margin-bottom:0}
.tg2-chip em.sl{font-style:normal;font-size:12px;padding:0 7px;border-radius:20px;background:var(--m-n93);color:var(--tg2-pl)}.tg2-chip.on em.sl{background:rgba(255,255,255,.22);color:#fff}
/* dòng danh sách (mẫu hàng bảng .card table tr) */
.tg2-ds-khung{border-radius:0 0 6px 6px;border-top:0}
.tg2-ds-khung:before{display:none}
.tg2-loc + .tg2-ds-khung,.tg2-loc + * > .tg2-ds-khung:first-child{border-top:0}
*:not(.tg2-loc) + .tg2-ds-khung,.tg2-ds-khung:first-child{border-radius:6px;border-top:1px solid var(--tg2-line)}
.tg2-dhs{display:grid;grid-template-columns:32px minmax(min(240px,45%),1fr) auto auto;gap:12px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--tg2-line2);font-size:13.5px;color:var(--m-tx);background:#fff}
.tg2-dhs:nth-child(even){background:var(--m-t99)}
.tg2-dhs[role=link]{cursor:pointer}.tg2-dhs[role=link]:hover{background:var(--tg2-plt)}
.tg2-dhs:last-child{border-bottom:0}
.tg2-dhs.co-xc{grid-template-columns:auto 32px minmax(min(240px,45%),1fr) auto auto}
.tg2-dhs-ic{width:32px;height:32px;border-radius:6px;display:grid;place-items:center;background:var(--m-plt);color:var(--m-pl)}
.tg2-dhs-ten{min-width:0}.tg2-dhs-d1{display:flex;gap:8px;align-items:center;min-width:0}.tg2-dhs-d1 b{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tg2-dhs-phu{font-size:12.5px;color:var(--tg2-mu);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tg2-ma{font-size:12.5px;font-weight:700;color:var(--m-mu);white-space:nowrap}
.tg2-dhs-nhan{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.tg2-dhs-nut{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.tg2-pg2{padding:12px 16px;border-top:1px solid var(--tg2-line2);font-size:12.5px;color:var(--tg2-mu);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media (max-width:767px){
  .tg2-dhs{grid-template-columns:32px minmax(0,1fr);gap:4px 10px;padding:10px 12px}
  .tg2-dhs.co-xc{grid-template-columns:auto 32px minmax(0,1fr)}
  .tg2-dhs-nhan,.tg2-dhs-nut{grid-column:2 / -1;justify-content:flex-start}
  .tg2-dhs.co-xc .tg2-dhs-nhan,.tg2-dhs.co-xc .tg2-dhs-nut{grid-column:3}
  .tg2-dhs-d1 b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
}
/* bảng tiến trình 2b (mẫu .tt) */
.tg2-tt2 th{vertical-align:bottom}
.tg2-tt2 th.tg2-tc,.tg2-tt2 td.tg2-tc{width:70px;text-align:center;padding-left:0;padding-right:0;position:relative}
.tg2-cotn{display:inline-flex;flex-direction:column;align-items:center;gap:1px;padding:5px 4px;border-radius:6px;width:66px;border:0;background:none;cursor:pointer;font-family:var(--tg2-phong)}
.tg2-cotn b{font-size:16px;color:var(--m-tx2)}.tg2-cotn span{white-space:normal;line-height:1.2;text-align:center;font-size:12px;font-weight:600;color:var(--m-mu)}
.tg2-cotn.sel{background:var(--tg2-plt);box-shadow:inset 0 0 0 1px var(--tg2-plb)}.tg2-cotn.sel b,.tg2-cotn.sel span{color:var(--tg2-pl)}
.tg2-ln{position:absolute;left:0;right:50%;top:50%;height:2px;background:var(--m-n91);transform:translateY(-50%)}.tg2-ln.first{display:none}.tg2-ln.on{background:#8ccfcb}
.tg2-dt{position:relative;z-index:1;display:inline-grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#fff;border:2px solid var(--m-n87);color:#fff;vertical-align:middle;box-sizing:border-box}
.tg2-dt.d{background:#25787a;border-color:#25787a;width:16px;height:16px}.tg2-dt.c{width:20px;height:20px;background:#a8661f;border-color:#fff;box-shadow:0 0 0 3px #f6dfbf}.tg2-dt.r{width:20px;height:20px;background:#b03d55;border-color:#fff;box-shadow:0 0 0 3px #f6d3da}
.tg2-cl1{display:flex;gap:8px;align-items:center;margin-bottom:4px}.tg2-cd{font-size:12px;font-weight:700;color:var(--m-mu);white-space:nowrap}.tg2-nd2{font-weight:600;display:block}.tg2-mn{font-weight:700;white-space:nowrap}
.tg2-go{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:6px;border:1px solid var(--tg2-line);color:var(--m-mu);background:#fff;cursor:pointer}
.tg2-who{font-weight:600;font-size:13px;white-space:nowrap}.tg2-wt2{font-size:12px;color:var(--tg2-mu)}.tg2-wt2.w-ro{color:#b03d55;font-weight:600}.tg2-wt2.w-me{color:var(--tg2-pl);font-weight:600}.tg2-wt2.w-late{color:#8a5212;font-weight:600}
.tg2-tbg tr.hl td{background:var(--m-plt)}
.tg2-dots{display:inline-flex;gap:4px}.tg2-dots i{width:9px;height:9px;border-radius:50%;background:var(--m-n89)}.tg2-dots i.d{background:#48a4a2}.tg2-dots i.c{background:#d39c52;box-shadow:0 0 0 3px #f8ead6}.tg2-dots i.r{background:#b03d55}
/* bảng tg2-ds điện thoại: mỗi hàng thành dòng gọn có nhãn cột */
@media (max-width:767px){
  .tg2-ds thead{display:none}.tg2-ds,.tg2-ds tbody,.tg2-ds tr,.tg2-ds td{display:block;width:auto}
  .tg2-ds tr{padding:10px 12px;border-bottom:1px solid var(--tg2-line2)}.tg2-ds td{padding:2px 0;border:0;text-align:left!important;background:none!important}
  .tg2-ds td[data-nh]:not(:nth-child(-n+2))::before{content:attr(data-nh) ": ";color:var(--tg2-mu);font-size:12px}
}
/* ô chọn đơn vị gõ tìm */
.tg2-dv{position:relative;max-width:420px;background:#fff}.tg2-dv input{flex:1;min-width:0}
.tg2-dv-ds{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:40;background:#fff;border:1px solid var(--tg2-line);border-radius:6px;box-shadow:0 16px 32px -14px rgba(var(--m-bong-rgb),.45);max-height:320px;overflow-y:auto;padding:4px}
.tg2-dv-muc{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:8px 10px;border:0;background:none;border-radius:6px;font:500 13.5px var(--tg2-phong);color:var(--m-tx);cursor:pointer;text-align:left}
.tg2-dv-muc small{font-size:12px;color:var(--tg2-mu)}.tg2-dv-muc.on,.tg2-dv-muc.tro{background:var(--tg2-plt);color:var(--tg2-pl)}
/* hộp thoại tg2 */
.tg2-hopn{position:fixed;inset:0;background:rgba(var(--m-bong-rgb),.55);z-index:95;display:flex;justify-content:center;align-items:flex-start;padding:60px 16px 16px;box-sizing:border-box;overflow-y:auto}
.tg2-hop{background:#fff;border-radius:6px;width:560px;max-width:100%;display:flex;flex-direction:column;font-family:var(--tg2-phong);color:var(--tg2-tx);line-height:normal;max-height:calc(100vh - 80px)}
.tg2-hop.rong{width:860px}
.tg2-hop-than{padding:4px 16px 16px;overflow-y:auto;font-size:13.5px;line-height:1.5;display:flex;flex-direction:column;gap:10px}
.tg2-hop-than p{margin:0}
.tg2-hop-than .tg2-o{width:100%}
@media (max-width:767px){.tg2-hopn{padding:50px 0 0;align-items:flex-end}.tg2-hop,.tg2-hop.rong{width:100%;border-radius:6px 6px 0 0;max-height:calc(100vh - 50px)}}
/* thông báo nổi */
/* NV-VP-NOI-1: thông báo nổi không nhận bấm, kể cả lúc đang hiện (không có nút đóng) */
.tg2-noi{pointer-events:none;position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:120;display:flex;gap:9px;align-items:flex-start;max-width:min(560px,calc(100vw - 32px));padding:10px 14px;border-radius:6px;background:#eaf6f4;border:1px solid #c3e4e0;color:#1a5e5a;font:500 13.5px/1.45 var(--tg2-phong);box-shadow:0 12px 28px -14px rgba(var(--m-bong-rgb),.45);transition:opacity .3s}
.tg2-noi.tg2-loi{background:#fdf1f2;border-color:#f1d0d5;color:#8c2c40}
@media (max-width:767px){.tg2-noi{bottom:92px}}
/* nút đang chờ máy chủ */
.tg2-quay{width:12px;height:12px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:tg2q .8s linear infinite;flex:none}
@keyframes tg2q{to{transform:rotate(360deg)}}
/* khung đang tải, khối rỗng, danh sách nhật ký */
.tg2-xuong .tg2-cb{padding:18px;display:flex;flex-direction:column;gap:12px}.tg2-xuong i{display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,var(--m-n93),var(--m-n96),var(--m-n93));background-size:200% 100%;animation:tg2x 1.2s linear infinite}
@keyframes tg2x{to{background-position:-200% 0}}
.tg2-trong-khoi{background:#fff;border:1px solid var(--tg2-line);border-radius:6px;padding:22px 16px}
.tg2-trong-khoi b{display:block;font-size:15px;color:var(--tg2-tx);margin-bottom:4px}.tg2-trong-khoi p{margin:0 0 10px}
.tg2-ls{list-style:none;margin:0;padding:0;font-size:13px}.tg2-ls li{padding:6px 0;border-bottom:1px solid var(--tg2-line2)}.tg2-ls li:last-child{border-bottom:0}
.tg2-loi-o{color:#8c2c40;font-size:12.5px}
/* khối cũ đổi tại chỗ ở màn chưa dựng riêng: thẻ mẫu */
#nd .tg2-khoi:not(.tg2-inb .tg2-khoi){background:#fff;border:1px solid var(--tg2-line);border-radius:6px;box-shadow:0 6px 18px -15px rgba(var(--m-pl-rgb),.45);padding:0;margin:0 0 16px;overflow:hidden}
#nd .tg2-khoi:not(.tg2-inb .tg2-khoi) > .tg2-khoi-dau{padding:15px 18px 11px;margin:0}
#nd .tg2-khoi:not(.tg2-inb .tg2-khoi) > .tg2-khoi-dau h2{font-size:15px;color:var(--tg2-tx)}
#nd .tg2-khoi:not(.tg2-inb .tg2-khoi) > .tg2-khoi-than{padding:0 18px 16px}
#nd .tg2-khoi:not(.tg2-inb .tg2-khoi) > .tg2-cuon-x{padding:0 0 4px}
.tg2-ttb .tg2-btn{padding:5px 9px;font-size:12.5px}
