/* Tab Đào tạo › Kiểm tra (exam.js) */
.ex { display: grid; gap: 14px; }
.ex-c { padding: 16px 18px; }
.ex-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ex-h b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #FFCB05; color: #22262B; font-size: 14px; }
.ex-h h3 { margin: 0; font-size: 17px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 14px; }
.ex-grid label, .ex-row label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted, #6B7077); }
.ex-num { margin-top: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.ex-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.ex-mod { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; cursor: pointer; }
.ex-mod.off { opacity: .5; cursor: default; }
.ex-mod small { color: var(--muted, #6B7077); }
.ex-chk { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: 14px; }
.ex-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.ex-row .inp { min-width: 240px; flex: 1; }
.ex-t td, .ex-t th { vertical-align: top; }
.ex-code { font-size: 17px; font-weight: 700; letter-spacing: .12em; background: #FFF4CC; padding: 2px 8px; border-radius: 6px; }
.ex-open td { background: rgba(255, 203, 5, .06); }
.ex-act { white-space: nowrap; }
.ex-act .btn { margin: 0 4px 4px 0; }
.ex-one { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.ex-strip { margin: 6px 0 12px; }
.ex-ok { color: #1F7A4A; font-weight: 600; }
.ex-no { color: #B3261E; }
.ex-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; margin: 1px 0; }
.ex-tag.ok { background: #E3F2EA; color: #1F5C3B; } .ex-tag.no { background: #FBE6E3; color: #8F1F17; }
.ex-paper { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ex-paper summary { cursor: pointer; }
.ex-paper .ex-grid { margin-top: 10px; }
.ex-paper .btn { margin-top: 10px; }
.ex-qs { font-size: 14px; line-height: 1.5; }
.ex-qs > li { margin: 8px 0; }
.ex-qs ul { margin: 4px 0 0; padding-left: 18px; }
.ex-bank { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-b { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #F3F0E8; }
.ex-b.off { opacity: .5; }

/* Màn chiếu mã QR */
.ex-qr { position: fixed; inset: 0; z-index: 9999; background: #FAF8F2; display: grid; place-items: center; padding: 3vw; }
.ex-qr-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4vw; align-items: center; width: min(100%, 1500px); }
.ex-qr-l img { width: 100%; max-height: 82vh; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .08); }
.ex-qr-k { color: #8a6d00; font-weight: 700; letter-spacing: .2em; font-size: clamp(14px, 1.4vw, 22px); }
.ex-qr-r h1 { font-size: clamp(26px, 3.4vw, 56px); line-height: 1.12; margin: 10px 0 14px; color: #22262B; }
.ex-qr-r p { font-size: clamp(16px, 1.6vw, 26px); line-height: 1.5; color: #3A3F45; }
.ex-qr-code { font-size: clamp(48px, 8vw, 140px); font-weight: 800; letter-spacing: .14em; color: #22262B; background: #FFCB05; display: inline-block; padding: .05em .3em; border-radius: 16px; margin: 6px 0 10px; }
.ex-qr-n { font-size: clamp(18px, 2vw, 32px); font-weight: 700; margin: 10px 0 18px; color: #1F5C3B; }
@media (max-width: 800px) { .ex-qr-in { grid-template-columns: 1fr; } .ex-qr-l img { max-height: 46vh; } }
