/* Ma trận, bản đặc tả đề kiểm tra (mt-). Khung trang in dùng chung sg- ở cc-ke-hoach-bai-day.css. */
.chinh:has(> .mt-rong) { max-width: 1480px; }
.mt-lech { color: var(--nhan-dam); }
.mt-dung { color: var(--xanh-la); }
.mt-hai-cot { display: grid; gap: 14px; }
@media (min-width: 1000px) { .mt-hai-cot { grid-template-columns: 1fr 1fr; } .mt-hai-cot > .the { margin-bottom: 0; } .mt-hai-cot { margin-bottom: 14px; } }
.mt-diem { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 12px; }
.mt-diem .field label { font-size: .8125rem; }
.mt-mt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.mt-mt caption { text-align: left; padding-bottom: 4px; }
.mt-mt th { font-size: .8125rem; font-weight: 600; text-align: left; padding: 2px 4px; }
.mt-mt td { padding: 2px 4px 8px; }
.mt-mt input, .mt-o { width: 100%; min-height: 38px; padding: 4px 6px; border: 1px solid #cfd6d1; border-radius: 7px; font: inherit; text-align: center; background: #fff; }
.mt-can__ds { margin: 0; padding-left: 1.2em; font-size: .9375rem; }
.mt-can__ds li { margin: 2px 0; }
.mt-tab { display: flex; gap: 4px; margin: 0 0 -1px; }
.mt-tab [role="tab"] { border: 1px solid var(--vien); border-bottom: 0; background: #eef0ed; color: var(--phu); font: inherit; font-weight: 700;
  padding: 10px 18px; border-radius: 10px 10px 0 0; cursor: pointer; min-height: 44px; }
.mt-tab [role="tab"][aria-selected="true"] { background: var(--the); color: var(--c-dam); }
.mt-tab + .the, .mt-tab ~ [role="tabpanel"] { border-top-left-radius: 0; }

/* Bảng soạn ma trận */
.mt-bang { border-collapse: collapse; min-width: 1180px; width: 100%; font-size: .875rem; }
.mt-bang th, .mt-bang td { border: 1px solid var(--vien); padding: 3px; vertical-align: middle; }
.mt-bang thead th { background: var(--c-nhat); color: var(--c-dam); font-weight: 700; text-align: center; font-size: .8125rem; line-height: 1.25; }
.mt-bang__muc { font-weight: 600 !important; font-size: .75rem !important; }
.mt-bang__tt { text-align: center; width: 32px; font-weight: 700; }
.mt-bang__cd { width: 170px; }
.mt-bang__nd { width: 200px; }
.mt-bang__cd input, .mt-bang__nd input { width: 100%; min-height: 38px; padding: 4px 8px; border: 1px solid #cfd6d1; border-radius: 7px; font: inherit; }
.mt-bang__nut { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mt-bang__nd { position: relative; }
.mt-bang__nd .mt-nut-nho { margin-top: 3px; }
.mt-bang__o { width: 46px; text-align: center; }
.mt-bang__o .mt-o { min-height: 34px; padding: 2px; -moz-appearance: textfield; }
.mt-bang__o .mt-o::-webkit-inner-spin-button { display: none; }
.mt-bang__o--ds { background: #fbfaf5; }
.mt-bang__o--tl .mt-o--diem { margin-top: 3px; font-size: .8125rem; }
.mt-bang__so { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-dam); min-width: 42px; }
.mt-bang__du-kien { width: 64px; background: #f7f8f6; }
.mt-bang tfoot th { text-align: right; background: #f3f5f2; }
.mt-bang tfoot td { background: #f3f5f2; }
.mt-nut-nho { border: 1px solid var(--c-vien); background: #fff; color: var(--c-dam); border-radius: 999px; font: inherit; font-size: .75rem; font-weight: 700;
  padding: 3px 9px; cursor: pointer; min-height: 28px; }
.mt-nut-nho:hover { background: var(--c-nhat); }
.mt-nut-nho--xoa { color: var(--do); border-color: #efc2bd; }
.mt-nut-nho--xoa:hover { background: var(--do-nhat); }
.mt-hang-nut { margin-top: 12px; }

/* Bản đặc tả (soạn) */
.mt-dt h3 { margin: 14px 0 8px; color: var(--c-dam); }
.mt-dt__nd { border: 1px solid var(--vien); border-radius: var(--r-nho); padding: 10px 12px; margin-bottom: 10px; }
.mt-dt__nd h4 { margin: 0 0 8px; }
.mt-dt__muc { display: grid; gap: 6px 12px; grid-template-columns: 1fr; margin-bottom: 10px; }
@media (min-width: 720px) { .mt-dt__muc { grid-template-columns: 1fr 180px; } .mt-dt__so { grid-column: 1 / -1; } }
.mt-dt__muc textarea { min-height: 60px; }
.mt-dt__so { margin: 0; }
.mt-cb__ds { margin: 0; padding-left: 1.2em; }
.mt-cb__ds li { margin: 3px 0; }
.mt-luu { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 0 12px;
  background: linear-gradient(to top, var(--bg) 75%, transparent); }

/* Gắn nhãn, rút đề */
.mt-g-ds { list-style: none; margin: 0; padding: 0; }
.mt-g { padding: 10px 0; border-bottom: 1px solid var(--vien); display: grid; gap: 8px; }
.mt-g:last-child { border-bottom: 0; }
@media (min-width: 900px) { .mt-g { grid-template-columns: 1fr 440px; align-items: start; } }
.mt-g__chon { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .mt-g__chon { grid-template-columns: 1fr 1fr; } }
.mt-g__chon:has(.mt-g__y) { grid-template-columns: 1fr; }   /* câu Đúng – Sai: bốn ô mức cần đủ rộng để đọc được chữ */
.mt-g__nhan { font-weight: 600; font-size: .9375rem; }
.mt-g__y { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mt-g__yy { display: flex; flex-direction: column; font-size: .8125rem; font-weight: 600; }
.mt-g select { width: 100%; min-height: 42px; padding: 6px 8px; border: 1px solid #cfd6d1; border-radius: var(--r-nho); font: inherit; background: #fff; }
.mt-g__y select { padding: 4px; }
.mt-r-de { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.mt-r-de legend { font-weight: 700; margin-bottom: 6px; }
.mt-r-de__muc { display: flex; gap: 10px; align-items: flex-start; }
.mt-r-de__muc input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c); flex: none; }
.mt-r-bang { border-collapse: collapse; width: 100%; font-size: .9375rem; margin-bottom: 12px; }
.mt-r-bang th, .mt-r-bang td { border-bottom: 1px solid var(--vien); padding: 6px 8px; text-align: left; }
.mt-r-bang td:nth-child(n+3), .mt-r-bang th:nth-child(n+3) { text-align: center; width: 70px; }
.mt-r-cau li { margin: 4px 0; }
.mt-r-tao { margin-top: 14px; border-top: 1px solid var(--vien); padding-top: 12px; }

/* Bản in */
.mt-to { font-size: 10.5pt; }
.mt-in__td { font-size: 13pt; margin-top: 6pt !important; }
.mt-in__bang { font-size: 10pt; }
.mt-in__bang th { font-size: 10pt; }
.mt-in__phai { text-align: right !important; }
.mt-in__diem { font-size: 8.5pt; white-space: nowrap; }
.mt-in__ghi { font-size: 9.5pt; font-style: italic; }
.mt-in__cb { max-width: 297mm; margin: 12px auto 0; padding: 0 16px; }
.mt-in__trang-moi { height: 16pt; }
@media print { .mt-in__trang-moi { break-before: page; height: 0; } }
