/* Trang quản trị */
.dau-qt .khung { gap: 12px 16px; }
.dau-qt .logo { margin-right: auto; display: inline-flex; align-items: center; min-height: 44px; }
.qt { display: grid; gap: 20px; padding-block: 28px 64px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.menu .so-kt { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 6px; border-radius: 11px; background: var(--cam-dam); color: #fff; font-size: 12px; font-weight: 700; }
.the-qt { background: #fff; border-radius: var(--bo); padding: 24px; display: grid; gap: 16px; min-width: 0; grid-template-columns: minmax(0, 1fr); box-shadow: var(--bong); }
.the-qt h2 { font-size: 20px; }
.qt h1 { font-size: clamp(20px, 2vw, 24px); }
.the-qt ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.the-qt > .nut { justify-self: start; }
.dn > .nut { justify-self: stretch; }
.nut-hang:has(> .nhap) { align-items: flex-end; }
.cuon { overflow-x: auto; }
.bang th, .bang td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--vien); vertical-align: top; font-size: 14px; }
.bang th { color: var(--phu); font-weight: 600; white-space: nowrap; }
.bang td:first-child { color: inherit; width: auto; }
.bang td { overflow-wrap: normal; }
.bang tr:hover td { background: #fffbf0; }
.bang .so { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 22px; }
.tt-nhan { display: inline-block; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.4; padding: 3px 10px; border-radius: 99px; background: #ece6de; color: #544b44; }
.tt-nhan.xanh { background: #dff3e8; color: #04543a; }
.tt-nhan.vang { background: #ffeeb0; color: #6b4b00; }
.tt-nhan.do { background: #fde3dc; color: #97260d; }
.so-lieu { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.so-lieu div { background: #fff; border-radius: var(--bo); padding: 16px 18px; font-size: 14px; color: var(--phu); box-shadow: var(--bong); border-top: 4px solid var(--vang); }
.so-lieu strong { display: block; font-size: 24px; line-height: 1.4; color: var(--chu); font-variant-numeric: tabular-nums; }
.o-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.rong { grid-column: 1 / -1; }
.chua-luu.loi { background: #a8261a; }
.doi { grid-column: span 2; } .doi small { font-weight: 400; font-size: 13px; }
@media (max-width: 720px) { .doi { grid-column: 1 / -1; } .demo-co { flex-direction: column; align-items: flex-start; } .demo-co img { max-width: 100%; height: auto; max-height: 200px; } }
.demo-co { display: flex; gap: 18px; align-items: center; } .demo-co img { height: 150px; width: auto; border: 1px solid var(--vien); border-radius: 6px; } .demo-co > div { display: grid; gap: 4px; justify-items: start; }
.lien { background: none; border: 0; padding: 6px; color: var(--cam-dam); font: 600 14px/1.2 var(--phong); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lien:hover { color: var(--cam-toi); }
.tha-anh { border: 2px dashed var(--cam-dam); border-radius: 12px; padding: 28px 16px; display: grid; gap: 10px; justify-items: center; text-align: center; background: #fff; }
.tha-anh.dang-keo { background: var(--vang-nhat); }
.tha-anh label { cursor: pointer; }
.an-o { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tha-anh:focus-within label { outline: 3px solid var(--cam-dam); outline-offset: 2px; }
.xem-banner { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 10px; }
.xem-logo { height: 72px; width: auto; max-width: 260px; object-fit: contain; justify-self: start; }
.hai-cot { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.chua-luu { position: sticky; bottom: 12px; z-index: 4; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: var(--chu); color: #fff; border-radius: 12px; padding: 10px 14px 10px 18px; font-weight: 600; box-shadow: var(--bong-cao); }
.dn { width: 100%; max-width: 480px; margin: 0 auto; }
@media (max-width: 720px) { .the-qt { padding: 16px; } }
/* Thống kê truy cập ở Tổng quan */
.the-qt .so-lieu { margin-bottom: 18px; }
.the-qt .so-lieu div { box-shadow: none; background: #fffaf0; border: 1px solid var(--vien); border-top: 4px solid var(--cam); }
.hai-tk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.hai-tk h3 { font-size: 16px; margin: 0 0 6px; }
.bang.tk { width: 100%; } .bang.tk td, .bang.tk th { padding-block: 6px; }
.bang.tk progress { width: 100%; min-width: 80px; height: 10px; accent-color: var(--cam); }
@media (max-width: 900px) { .hai-tk { grid-template-columns: minmax(0, 1fr); } }
.lien.do { color: #b3261e; } .lien.do:hover { color: #7f1a14; }
/* Nhận xét trong quản trị */
.nx-qt { display: grid; gap: 12px; }
.nx-qt .the-qt { gap: 8px; }
.nx-qt .can-xem { border-left: 4px solid #b3261e; }
.sao-qt { color: #f2a900; letter-spacing: 1px; }
.nx-nd { white-space: pre-line; overflow-wrap: anywhere; }

/* Ô "Cũng hiện ở lớp" (27/11/2026) */
.lop-them { border: 1px solid var(--vien, #e5ddd3); border-radius: 10px; padding: 8px 12px 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 0; }
.lop-them legend { padding: 0 4px; font-size: 14px; }
.lop-them label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; cursor: pointer; }
.lop-them input { width: 18px; height: 18px; }
