/* CSS riêng loại trang «phieuTuan» (công tắc TRANG_MOI.phieuTuan) — ba trang: thân /phieu-bai-tap · phiếu một tuần · phiếu chuyên đề. Mọi luật bắt đầu bằng `.gdm ` (không rò sang trang cũ); màu / chữ / nút theo LUAT-THIET-KE, không thêm màu ngoài luật. */
/* PHIEU-TUAN 18/11/2026 (ca #147 «áp luật 100 %») */

/* nút chính ở khối đầu là <button> (in phiếu) — dáng y .cta của KhoiDau */
.gdm .hero button.cta{width:100%;border:0;border-bottom:5px solid #bfdc9f;cursor:pointer;font-family:var(--gdm-f9)}
.gdm .gt b{font-weight:800;color:#475569}
/* mô tả dài gập <details>: chữ giữ đủ, chỉ thu gọn (LUAT 6b) */
.gdm .gt-them{padding:0 4px;min-width:0}
.gdm .gt-them>summary{min-height:44px;padding:0;gap:6px;font-size:13px;font-weight:800;color:var(--lk)}
.gdm .gt-them>summary::after{content:"+";font-size:16px;line-height:1}
.gdm .gt-them[open]>summary::after{content:"−"}
.gdm .gt-them>.gt{padding:0 0 6px}
.gdm .dang-doi a{color:var(--lk);font-weight:800;text-decoration:underline;text-underline-offset:2px}

/* thẻ «Con làm online»: hình + tên, nút đầy ngang bên dưới. Nút là NutLamOnline CŨ (chàm) → vẽ lại bằng màu luật (xanh chính, đáy #245400) */
.gdm .pt-the{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 12px;align-items:center;background:#fff;border:2px solid var(--vien);border-radius:20px;padding:12px}
.gdm .pt-the .nut-hang{grid-column:1/-1;min-width:0}
.gdm .pt-the [data-qa="con-lam-online"]{height:48px;padding:0 16px;border-radius:14px;background-color:#367c00;border:0;border-bottom:4px solid #245400;font-size:14px;font-family:var(--gdm-f9)}
.gdm .pt-the [data-qa="con-lam-online"]:active{border-bottom-width:1px;transform:translateY(3px)}

/* THẺ IN PHIẾU + TỜ — nằm NGOÀI gốc .gdm (KhoiIn: lớp .gdm-duoi) để khung không thấm vào TỜ GIẤY: chữ kế thừa từ <body> y như trang cũ.
   Thẻ trắng viền #e2e8f0 bo 22 theo luật mục 5; bề ngang trong thẻ = 358 px ở 390 (như khung trang cũ) nên tờ co đúng như cũ. */
.gdm-duoi.pt-ngoai{padding:12px 14px 0;background:#f3f5fb}
.gdm-duoi .pt-ngoai-in{max-width:1112px;margin:0 auto;display:grid;gap:12px;min-width:0}
.gdm-duoi .pt-ngoai-dau{margin:6px 2px -2px}
.gdm-duoi .pt-ngoai-dau h2{font-size:18px;font-weight:900;line-height:1.25;letter-spacing:-.01em;font-family:var(--gdm-f9);color:#0f172a}
.gdm-duoi .pt-ngoai-the{background:#fff;border:2px solid #e2e8f0;border-radius:22px;min-width:0;max-width:100%}
.gdm-duoi .pt-ngoai-the .m3-cong-khai>:not(.mt-5):not(style){margin-left:12px;margin-right:12px}
.gdm-duoi .pt-nut{padding:14px 12px 2px;display:grid;gap:10px;min-width:0}
.gdm-duoi .pt-nut p.gt{font-size:12.5px;color:#64748b;line-height:1.5;padding:0 2px}
.gdm-duoi .pt-phu{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gdm-duoi .pt-nut [data-qa="in-phieu-chuyen-de"]{width:100%;max-width:420px}
.gdm-duoi .pt-cuon{overflow-x:auto}

/* hai khối cuối trang (điện thoại: xếp dọc; máy tính: hai cột) */
.gdm .pt-duoi{display:grid;gap:14px;min-width:0}
.gdm .pt-c{display:grid;gap:14px;min-width:0;align-content:start}
.gdm .pt-anh{padding:12px;display:flex;gap:14px;align-items:flex-start}
.gdm .pt-anh a{display:block;flex:none}
.gdm .pt-anh img{display:block;width:200px;height:auto;aspect-ratio:397/561;border:2px solid var(--vien);border-radius:12px;background:#f8fafc}
.gdm .dang-xem{background:#f3fbe8}
.gdm .dang-xem .so{background:var(--x);color:#fff}

/* thân /phieu-bai-tap: chọn lớp + mỗi lớp một thẻ */
.gdm .pt-chon{padding:14px}
.gdm .pt-chon-t{font-size:15.5px;font-weight:900;line-height:1.25}
.gdm .pt-chon-o{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:10px}
.gdm .pt-chon-o a{height:48px;display:grid;place-items:center;border-radius:14px;border:2px solid var(--vien);border-bottom-width:4px;background:#fff;font-weight:900;font-size:13.5px;white-space:nowrap}
.gdm .pt-lop{display:grid;gap:12px;min-width:0;scroll-margin-top:72px}
.gdm .pt-lop>.dau{margin:10px 2px -2px}
.gdm .pt-sm{font-size:12px;font-weight:700;color:var(--phu);white-space:nowrap}
.gdm .pt-anh-nho{flex:none;width:52px;border:2px solid var(--vien);border-radius:8px;overflow:hidden;background:#f8fafc}
.gdm .pt-anh-nho img{display:block;width:100%;height:auto;aspect-ratio:397/561}
.gdm .pt-lop .con{margin-left:64px}
.gdm .pt-lop .nhom .ch>.so{width:52px;height:52px}

@media (min-width:1024px){
.gdm .pt-duoi{grid-template-columns:minmax(0,1fr) 372px;gap:20px;align-items:start}
.gdm .pt-duoi.dao{grid-template-columns:372px minmax(0,1fr)}
.gdm .pt-cd{display:grid;grid-template-columns:1fr 1fr}
.gdm .pt-cd>.hang:nth-child(-n+2){border-top:0}
.gdm .pt-cd>.hang:nth-child(odd){border-right:1px solid #edf1f6}
.gdm .pt-lop .nhom{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
.gdm .pt-lop .nhom>.hang+.hang{border-top:0;border-left:1px solid #edf1f6}
.gdm-duoi .pt-nut{padding:18px 20px 2px}
.gdm-duoi.pt-ngoai{padding:22px 24px 0}
.gdm-duoi .pt-ngoai-dau h2{font-size:21px}
.gdm-duoi .pt-ngoai-the .m3-cong-khai>:not(.mt-5):not(style){margin-left:20px;margin-right:20px}
.gdm .pt-chon{padding:18px 20px}
.gdm .pt-the{padding:16px;border-radius:26px}
}

/* IN GIẤY: chỉ còn tờ (#phieu-in) — mọi thứ quanh tờ bỏ khỏi dòng chảy (như trang cũ: print:hidden), kẻo đẩy tờ sang trang thừa */
/* 18/11 (sếp): chỉ ẩn .gdm khi trang CÓ tờ (.pt-ngoai) — trang danh sách /phieu-bai-tap cũng nạp tệp này mà không có tờ, trước đó in ra tờ trắng */
@media print{
body:has(.pt-ngoai) .gdm{display:none!important}
.gdm-duoi:not(.pt-ngoai){display:none!important}
.gdm-duoi.pt-ngoai{padding:0!important;background:none!important}
.gdm-duoi .pt-ngoai-dau,.gdm-duoi .pt-nut{display:none!important}
.gdm-duoi .pt-ngoai-the{border:0!important;border-radius:0!important;background:none!important}
}

/* trang cả học kì: lưới ảnh tờ phiếu (tờ A4 rộng hơn màn điện thoại → cuộn NGANG TRONG thẻ, trang không cuộn) */
.gdm .pt-xt{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.gdm .pt-xt-o{display:flex;flex-direction:column;background:#fff;border:2px solid var(--vien);border-radius:18px;overflow:hidden;min-width:0}
.gdm .pt-xt-o>a:first-child{display:block;padding-bottom:6px}
.gdm .pt-xt-o img{display:block;width:100%;height:auto;aspect-ratio:397/561;background:#f8fafc;border-bottom:1px solid #edf1f6}
.gdm .pt-xt-o b{display:block;font-size:14px;font-weight:800;padding:8px 10px 0}
.gdm .pt-xt-o b i{font-style:normal;font-size:11px;font-weight:800;color:var(--xd);background:var(--xn);border-radius:99px;padding:2px 8px;margin-left:4px}
.gdm .pt-xt-o small{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;color:var(--phu);padding:2px 10px 0;line-height:1.4}
.gdm .pt-xt-o>a:last-child{margin:auto 10px 8px;display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:800;color:var(--lk)}
@media (min-width:1024px){.gdm .pt-xt{grid-template-columns:repeat(6,1fr);gap:12px}}
