/* =========================================================
   EduLabs – Thành phần dùng chung cho các trang con
   (đặt sau theme.css và layout.css)
   ========================================================= */
:root {
  --cta-500: #2b7bfe;
  --cta-600: #1a6ffd;
  --grad-cta: linear-gradient(180deg, #4a90ff 0%, #2474fd 100%);
  --grad-teal: linear-gradient(90deg, #18b3cf 0%, #0a84f8 100%);
  --lav-50: #f1efff; --lav-100: #e6e2ff; --lav-500: #8576fc;
  --pink-50: #fdeff6; --pink-500: #e2578f;
  --amber-50: #fff6e6; --amber-100: #fdecc8; --amber-600: #c46a00;
}

/* Menu: chừa khoảng sau "Tổng quan" dù đang ở trang nào */
.sidebar nav > a:first-child { margin-bottom: 18px; }
.nav-item.active { margin-bottom: 0; }
.nav-item.home .icon { stroke-width: 1.6; }
.logo { text-decoration: none; }

/* Trang con: khoảng cách gọn hơn */
.content.sub { gap: 16px; padding-top: 14px; }

/* ---------- Đầu trang ---------- */
.page-head { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.page-ic { width: 72px; height: 72px; border-radius: 16px; flex-shrink: 0; overflow: hidden; }
.page-ic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-head h2 { margin: 0; font-size: 23.5px; font-weight: 800; color: var(--text-strong); letter-spacing: -.7px; line-height: 1.06; }
.page-head p { margin: 3px 0 0; font-size: 15.5px; color: var(--text); }
.page-head .actions { margin-left: auto; display: flex; gap: 18px; align-items: center; }

/* ---------- Nút lớn ---------- */
.btn-lg { height: 48px; padding: 0 22px; border-radius: 10px; font-size: 16.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0;
  letter-spacing: -.3px; transition: filter .15s, background .15s; white-space: nowrap; }
.btn-lg .icon { width: 24px; height: 24px; stroke-width: 2; }
.btn-cta { background: var(--grad-cta); color: #fff; box-shadow: 0 4px 12px rgba(36,116,253,.28); }
.btn-cta:hover { filter: brightness(1.06); }
.btn-line { background: #fff; color: var(--cta-500); border: 1.6px solid var(--cta-500); }
.btn-line:hover { background: #f0f6ff; }
.btn-md { height: 38px; padding: 0 16px; border-radius: 8px; font-size: 13.5px; font-weight: 600; gap: 8px;
  display: inline-flex; align-items: center; justify-content: center; border: 0; white-space: nowrap; }
.btn-md .icon { width: 19px; height: 19px; stroke-width: 2; }
.btn-md.btn-line { border-width: 1.4px; }
.btn-sm { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12.5px; font-weight: 500; gap: 6px;
  display: inline-flex; align-items: center; justify-content: center; border: 0; white-space: nowrap; }
.btn-sm .icon { width: 16px; height: 16px; stroke-width: 2; }
.btn-sm.btn-line { border-width: 1.2px; border-color: #8fb5f7; }
.btn-lg.btn-line, .btn-md.btn-line { border: 1.5px solid var(--cta-500); }
.btn-sm.btn-line { border: 1.2px solid #8fb5f7; }
.fill-ic svg.icon { fill: currentColor; stroke: none; }

/* ---------- Khung (panel) ---------- */
.panel { background: #fff; border: 1px solid var(--border-soft); border-radius: 16px;
  box-shadow: var(--shadow-sm); padding: 14px 18px 16px; min-width: 0; }
.panel-title { display: flex; align-items: center; gap: 14px; margin: 0 0 12px;
  font-size: 19px; font-weight: 700; color: var(--text-strong); letter-spacing: -.5px; }
.panel-title .icon { width: 30px; height: 30px; color: var(--brand-600); stroke-width: 1.7; }
.panel-title .right { margin-left: auto; font-size: 13.5px; font-weight: 500; letter-spacing: 0; }
.panel.soft { background: #f2f6fd; }

/* ---------- Tab dạng nhóm nút ---------- */
.seg { display: inline-flex; gap: 6px; background: var(--bg-soft); border-radius: 12px; padding: 4px; }
.seg > button { border: 0; background: transparent; border-radius: 9px; height: 36px; padding: 0 22px;
  font-size: 14.5px; font-weight: 500; color: var(--text-strong); display: inline-flex; align-items: center; gap: 10px; }
.seg > button.on { background: var(--grad-cta); color: #fff; box-shadow: 0 2px 8px rgba(36,116,253,.3); }
.seg > button .icon { width: 22px; height: 22px; }
.seg.split { background: transparent; padding: 0; gap: 4px; }
.seg.split > button { background: var(--bg-soft); }
.seg.split > button.on { background: var(--grad-cta); }

/* ---------- Ô nhập / tìm kiếm / chọn ---------- */
.field { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px;
  border: 1.4px solid var(--border); border-radius: 10px; background: #fff; color: var(--text-muted);
  font-size: 14.5px; min-width: 0; }
.field .icon { width: 22px; height: 22px; color: var(--text-muted); }
.field input, .field select { border: 0; outline: 0; background: transparent; font: inherit; color: var(--text-strong);
  flex: 1; min-width: 0; letter-spacing: -.2px; }
.field input::placeholder { color: var(--text-muted); }
.field select { appearance: none; cursor: pointer; }
.field.select { color: var(--text-strong); font-weight: 500; }
.field.select .chev { margin-left: auto; color: var(--text-strong); width: 18px; height: 18px; }
.field:focus-within { border-color: var(--cta-500); box-shadow: 0 0 0 3px rgba(43,123,254,.12); }

/* ---------- Bảng ---------- */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.tbl th { background: var(--bg-soft); font-weight: 600; color: var(--text-strong); text-align: left;
  padding: 0 12px; height: 36px; white-space: nowrap; }
.tbl th:first-child { border-radius: 8px 0 0 8px; }
.tbl th:last-child { border-radius: 0 8px 8px 0; }
.tbl td { padding: 0 12px; height: 35px; border-bottom: 1px solid var(--border-soft); color: var(--text); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .c { text-align: center; }
.tbl .r { text-align: right; }
.tbl tbody tr:hover td { background: #f7faff; }

/* ---------- Nhãn trạng thái ---------- */
.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 4px 12px;
  font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.chip .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.chip.green { background: #e3f6ea; color: #13853f; }
.chip.amber { background: var(--amber-100); color: #9a5a00; }
.chip.orange { background: #ffe9d6; color: #d0570c; }
.chip.red { background: #ffe0e3; color: #d22c4a; }
.chip.gray { background: #eef2f8; color: var(--text); }
.chip.blue { background: #e8f0fe; color: var(--text-strong); }
.chip .d { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0;
  background: #1b2550; color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 13px;
  box-shadow: var(--shadow-md); transition: .25s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tiện ích nhỏ ---------- */
.row { display: flex; align-items: center; gap: 14px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--text-muted); }
.blend { mix-blend-mode: multiply; }
.vline { width: 1.5px; align-self: stretch; background: var(--divider); }

/* =========================================================
   TRANG: TẠO TRÒ CHƠI
   ========================================================= */
.game-bar { background: var(--bg-soft); border-radius: 14px; padding: 8px; display: flex; gap: 12px; }
.game-bar > button { height: 44px; border: 0; border-radius: 10px; padding: 0 28px; font-size: 16.5px; font-weight: 500;
  background: #fff; color: var(--text-strong); display: inline-flex; align-items: center; gap: 12px; box-shadow: var(--shadow-xs); }
.game-bar > button.on { background: var(--grad-cta); color: #fff; }
.game-bar > button .icon { width: 26px; height: 26px; }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.game { background: #fff; border-radius: 16px; border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.game:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.game img { width: 100%; height: 178px; object-fit: cover; display: block; }
.games.r2 .game img { height: 166px; }
.game .body { padding: 6px 16px 12px; }
.game h3 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text-strong); letter-spacing: -.5px; }
.game p { margin: 4px 0 12px; font-size: 13.5px; color: var(--text); letter-spacing: -.45px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game .foot { display: flex; align-items: center; }
.game .prev { display: inline-flex; align-items: center; gap: 10px; color: var(--cta-500); font-size: 14px; font-weight: 500;
  padding-right: 50px; border-right: 1.5px solid var(--divider); background: none; border-top: 0; border-left: 0; border-bottom: 0; }
.game .prev span { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid #b8cdf3; display: grid; place-items: center; }
.game .prev svg { width: 14px; height: 14px; fill: var(--cta-500); margin-left: 2px; }
.game .btn-md { margin-left: auto; height: 38px; font-size: 14.5px; padding: 0 18px; }
.note-line { text-align: center; color: var(--text); font-style: italic; font-size: 14.5px; display: flex; gap: 8px;
  justify-content: center; align-items: center; }
.note-line .icon { width: 20px; height: 20px; }

/* =========================================================
   TRANG: DẠY LIVE
   ========================================================= */
.live-top { display: grid; grid-template-columns: 1.24fr 1fr; gap: 18px; }
.next-lesson { border: 1px solid var(--border-soft); border-radius: 14px; padding: 12px; display: flex; gap: 16px; align-items: center; }
.next-lesson img { width: 118px; height: 80px; border-radius: 10px; object-fit: cover; }
.next-lesson h4 { margin: 0; font-size: 19px; font-weight: 700; color: var(--text-strong); }
.next-lesson .sub { font-size: 17px; margin: 2px 0 8px; }
.next-lesson .meta { display: flex; gap: 18px; font-size: 15.5px; color: var(--text-strong); align-items: center; }
.next-lesson .meta span { display: inline-flex; gap: 10px; align-items: center; }
.next-lesson .meta .icon { color: var(--brand-600); width: 22px; height: 22px; }
.next-lesson .btns { margin-left: auto; display: flex; flex-direction: column; gap: 10px; width: 200px; }
.next-lesson .btns .btn-md { height: 40px; font-size: 15.5px; }
.sched { display: flex; align-items: center; gap: 18px; padding: 8px 14px; background: #f6f9fe; border-radius: 10px; margin-bottom: 8px; }
.sched .d { width: 11px; height: 11px; border-radius: 50%; background: var(--cta-500); }
.sched b { display: block; font-size: 15.5px; color: var(--text-strong); letter-spacing: -.4px; }
.sched small { font-size: 13.5px; color: var(--text); }
.sched .chip { margin-left: auto; font-size: 14px; }
.lesson-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lcard { border: 1px solid var(--border-soft); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-xs); }
.lcard .top { display: flex; gap: 16px; margin-bottom: 12px; }
.lcard img { width: 156px; height: 95px; object-fit: cover; border-radius: 8px; }
.lcard h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--text-strong); letter-spacing: -.4px; line-height: 1.19; }
.lcard .pages { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin-bottom: 8px; }
.lcard .pages .icon { width: 19px; height: 19px; color: var(--brand-600); }
.lcard .bt { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lcard .bt .btn-md { font-size: 14.5px; }
.live-bottom { display: grid; grid-template-columns: 1fr 1.7fr; gap: 16px; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tool { border: 1px solid var(--border-soft); border-radius: 12px; height: 72px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; font-size: 13.5px; color: var(--text-strong); background: #fff;
  box-shadow: var(--shadow-xs); letter-spacing: -.3px; }
.tool .icon { width: 30px; height: 30px; color: var(--brand-600); stroke-width: 1.7; }
.tool:hover { background: #f4f8ff; }
.tbl.compact td { height: 32px; font-size: 13px; padding: 0 8px; letter-spacing: -.35px; }
.tbl.compact td .btn-sm { height: 28px; padding: 0 9px; font-size: 12px; }
.tbl.compact th { height: 32px; font-size: 13px; padding: 0 8px; }

/* =========================================================
   TRANG: GIƠ THẺ
   ========================================================= */
.gt-hero { background: linear-gradient(90deg, #e6eefc 0%, #dfe9fb 60%, #dfe9fb 100%); border-radius: 16px;
  position: relative; height: 200px; overflow: hidden; }
.gt-hero img { position: absolute; right: 0; top: 0; height: 100%; width: auto; }
.gt-hero .inner { position: relative; padding: 16px 24px; z-index: 1; }
.gt-hero h3 { margin: 0 0 14px; font-size: 20px; font-weight: 700; color: var(--text-strong); letter-spacing: -.5px; }
.steps { display: flex; align-items: center; gap: 10px; }
.step { border: 0; font-family: inherit; cursor: pointer; width: 162px; height: 100px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  font-size: 13.5px; color: var(--text-strong); letter-spacing: -.3px; }
.step:nth-child(5) { width: 186px; }
.step .icon { width: 38px; height: 38px; color: var(--brand-600); stroke-width: 1.6; }
.steps .arr { color: var(--brand-600); width: 22px; height: 22px; }
.qsets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.qset { border: 1px solid var(--border-soft); border-radius: 14px; padding: 10px; display: flex; gap: 6px; box-shadow: var(--shadow-xs); }
.qset img { width: 112px; height: 104px; flex-shrink: 0; object-fit: cover; border-radius: 10px; }
.qset .info { flex: 1; display: flex; flex-direction: column; padding: 4px 0 0 10px; min-width: 0; }
.qset h4 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--text-strong); letter-spacing: -.4px; line-height: 1.19; min-height: 50px; }
.qset .cnt { display: flex; gap: 10px; align-items: center; font-size: 14.5px; margin: 8px 0 auto; }
.qset .cnt .icon { width: 20px; height: 20px; color: var(--brand-600); }
.qset .bt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qset .bt .btn-md { flex: 1 1 auto; min-width: 0; height: 34px; font-size: 13.5px; padding: 0 10px; gap: 6px; white-space: nowrap; }
.gt-bottom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.cards-stat { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.cstat { border-radius: 12px; height: 92px; display: flex; align-items: center; gap: 18px; padding: 0 22px; }
.cstat b { display: block; font-size: 27.5px; font-weight: 700; color: var(--text-strong); line-height: 1; }
.cstat span { font-size: 16.5px; color: var(--text); }
.cstat.blue { background: #e6eefc; }
.cstat.amber { background: #fff3df; }
.cstat img { width: 54px; height: 54px; }
.dash-plus { width: 58px; height: 58px; border: 2px dashed #f0a43a; border-radius: 8px; display: grid; place-items: center; color: #f0a43a; }
.dash-plus .icon { width: 30px; height: 30px; }

/* =========================================================
   TRANG: HỒ SƠ HỌC SINH
   ========================================================= */
.hs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hs-stat { background: #fff; border-radius: 16px; height: 104px; display: flex; align-items: center; gap: 18px;
  padding: 0 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border-soft); }
.hs-stat img { width: 80px; height: 66px; object-fit: contain; }
.hs-stat small { display: block; font-size: 16.5px; color: var(--text-strong); margin-bottom: 4px; }
.hs-stat b { font-size: 30px; font-weight: 700; color: var(--text-strong); line-height: 1; }
.hs-main { display: grid; grid-template-columns: 1.75fr 1fr; gap: 14px; }
.hs-tools { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.hs-tools .panel-title { margin: 0; }
.view-toggle { display: flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; }
.view-toggle button { width: 46px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-strong); display: grid; place-items: center; }
.view-toggle button.on { background: var(--grad-cta); color: #fff; }
.view-toggle .icon { width: 22px; height: 22px; }
.stu-tbl td { height: 52px; font-size: 15.5px; color: var(--text-strong); }
.stu-tbl th { height: 38px; font-size: 14.5px; }
.stu-tbl tr.sel td { background: #e9f1fd; }
.stu-tbl tr.sel td:first-child { border-radius: 10px 0 0 10px; }
.stu-tbl tr.sel td:last-child { border-radius: 0 10px 10px 0; }
.stu-tbl tbody tr { cursor: pointer; }
.cbx { width: 21px; height: 21px; border: 1.5px solid #a7afc6; border-radius: 4px; appearance: none; margin: 0; vertical-align: middle; cursor: pointer; }
.cbx:checked { background: var(--brand-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--brand-600); }
.ini { width: 46px; height: 46px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 15.5px; font-weight: 700; margin-right: 14px; vertical-align: middle; }
.sex { display: inline-flex; align-items: center; gap: 12px; }
.sex .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.sex.m .icon { color: #2f74e8; } .sex.f .icon { color: #ef5fa7; }
.pager { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; font-size: 14.5px; }
.pager .pg { display: flex; gap: 8px; }
.pager .pg button { min-width: 32px; height: 32px; border: 1px solid var(--border); background: #fff; border-radius: 7px; font-size: 13.5px; color: var(--text-strong); display: grid; place-items: center; padding: 0 6px; }
.pager .pg button.on { background: var(--grad-cta); color: #fff; border-color: transparent; }
.pager .pg .icon { width: 16px; height: 16px; }
.stu-info .head { display: flex; gap: 18px; padding: 14px 0 12px; border-top: 1px solid var(--border-soft); }
.stu-info .head img { width: 122px; height: 110px; border-radius: 14px; object-fit: cover; }
.stu-info h3 { margin: 6px 0 12px; font-size: 19px; font-weight: 700; color: var(--text-strong); letter-spacing: -.5px; }
.stu-info .tags { display: flex; gap: 16px; }
.stu-info .tags span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 8px; font-size: 15.5px; font-weight: 500; color: var(--text-strong); }
.stu-info .tags .icon { width: 22px; height: 22px; color: var(--brand-600); }
.kv { display: grid; grid-template-columns: 26px 112px 18px 1fr; align-items: center; font-size: 13.5px; color: var(--text-strong); height: 35px; border-bottom: 1px solid var(--border-soft); letter-spacing: -.3px; }
.kv .icon { width: 20px; height: 20px; color: var(--brand-600); }
.kv span:nth-child(2) { color: var(--text); }
.quick4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0; }
.quick4 button { height: 90px; border: 1px solid var(--border-soft); background: #fff; border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--text-strong); box-shadow: var(--shadow-xs); line-height: 1.06; letter-spacing: -.4px; padding: 0 2px; font-family: inherit; }
.quick4.seg > button.on, .quick4 button.on { background: #e9f1fd; color: var(--text-strong); box-shadow: none; }
.quick4 .icon { width: 30px; height: 30px; color: var(--brand-600); stroke-width: 1.7; }
.stu-info .bt { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; border-top: 1px solid var(--border-soft); padding-top: 14px; }

/* =========================================================
   TRANG: TIỆN ÍCH LỚP HỌC
   ========================================================= */
.ut-sec { background: linear-gradient(90deg, #e6edfa 0%, #edf2fb 100%); border-radius: 12px; height: 42px; display: flex; align-items: center; gap: 14px;
  padding: 0 16px; font-size: 22.5px; font-weight: 700; color: var(--text-strong); letter-spacing: -.5px; }
.ut-sec .icon { width: 32px; height: 32px; color: var(--brand-600); }
.uts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ut { background: #fff; border-radius: 16px; border: 1px solid var(--border-soft); box-shadow: var(--shadow-md); height: 146px;
  display: flex; align-items: center; gap: 10px; padding: 0 12px 0 10px; position: relative; }
.ut > div { min-width: 0; }
.ut img { width: 80px; height: 84px; object-fit: contain; flex-shrink: 0; }
.ut h4 { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; color: var(--text-strong); letter-spacing: -.6px; padding-right: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ut p { margin: 0 0 12px; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); line-height: 1.24; letter-spacing: -.4px; }
.ut .btn-sm { width: 90px; height: 32px; font-size: 14.5px; font-weight: 700; border-radius: 9px; }
.ut .star { position: absolute; top: 12px; right: 12px; background: none; border: 0; padding: 0; color: var(--brand-600); }
.ut .star .icon { width: 22px; height: 22px; stroke-width: 1.7; }
.ut .star.on .icon { fill: #fcd34d; stroke: #f5a524; }

/* =========================================================
   TRANG: CHUYÊN CẦN
   ========================================================= */
.cc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cc-stat { border-radius: 16px; height: 96px; display: flex; align-items: center; gap: 20px; padding: 0 20px; box-shadow: var(--shadow-md); border: 1px solid var(--border-soft); }
.cc-stat img { width: 76px; height: 64px; object-fit: contain; }
.cc-stat small { display: block; font-size: 16.5px; font-weight: 600; color: var(--text-strong); }
.cc-stat b { font-size: 32.5px; font-weight: 700; color: var(--text-strong); line-height: 1.01; }
.cc-stat.s1 { background: #fff; } .cc-stat.s2 { background: #e8f7ef; } .cc-stat.s3 { background: #fdf2e6; } .cc-stat.s4 { background: #f8eef7; }
.cc-main { display: grid; grid-template-columns: 1fr 408px; gap: 16px; }
.cc-filters { display: grid; grid-template-columns: 220px 160px 1fr auto; gap: 18px; margin-bottom: 10px; }
.cc-tbl th { text-align: center; font-size: 14.5px; }
.cc-tbl td { text-align: center; height: 32px; font-size: 14.5px; color: var(--text-strong); }
.cc-tbl td.name { text-align: left; font-weight: 500; }
.cc-tbl td.name img { width: 40px; height: 36px; vertical-align: middle; margin-right: 22px; border-radius: 50%; }
.cc-tbl tbody tr:nth-child(odd) td { background: #f7f9fe; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid #9aa6c4; appearance: none; margin: 0; cursor: pointer; vertical-align: middle; background: #fff; }
.radio.present:checked { background: #22b45a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center/80% no-repeat; border-color: #22b45a; }
.radio.excused:checked { border-color: #f59e0b; box-shadow: inset 0 0 0 4px #fff; background: #f59e0b; }
.radio.unexcused:checked { border-color: #e53950; box-shadow: inset 0 0 0 4px #fff; background: #e53950; }
.radio.late:checked { border-color: #6366f1; box-shadow: inset 0 0 0 4px #fff; background: #6366f1; }
.cc-tbl .chip { font-size: 13px; padding: 3px 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 40px; margin-bottom: 8px; font-size: 16px; font-weight: 700; color: var(--text-strong); }
.cal-head button { background: none; border: 0; color: var(--cta-500); }
.cal-head .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 14.5px; color: var(--text-strong); row-gap: 4px; }
.cal .h { background: var(--bg-soft); font-weight: 600; font-size: 13.5px; padding: 5px 0; }
.cal .h:first-child { border-radius: 6px 0 0 6px; } .cal .h:nth-child(7) { border-radius: 0 6px 6px 0; }
.cal span:not(.h) { height: 27px; display: grid; place-items: center; }
.cal .today { background: var(--grad-cta); color: #fff; border-radius: 8px; width: 44px; margin: 0 auto; font-weight: 600; }
.absent { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.absent:last-child { border-bottom: 0; }
.absent img { width: 58px; height: 52px; border-radius: 50%; object-fit: cover; }
.absent b { display: block; font-size: 15.5px; color: var(--text-strong); letter-spacing: -.4px; }
.absent small { font-size: 13.5px; color: var(--text); }
.absent .chip { margin-left: auto; font-size: 13.5px; }
.cc-chart { display: grid; grid-template-columns: 1fr 1.5px 236px 1.5px 130px; gap: 18px; align-items: center; }
.bar-chart { display: grid; grid-template-columns: 46px 1fr; height: 160px; }
.bar-chart .yax { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--text-strong); padding: 0 6px 22px 0; text-align: right; }
.bar-chart .plot { position: relative; border-left: 1.5px solid #9aa6c4; border-bottom: 1.5px solid #9aa6c4; display: flex; justify-content: space-around; align-items: flex-end; padding: 0 10px; margin-bottom: 22px;
  background: repeating-linear-gradient(to top, transparent 0 24px, #e3e9f4 24px 25px); }
.bar-chart .b { width: 66px; background: linear-gradient(180deg, #5b9bff 0%, #2f7bf5 100%); border-radius: 6px 6px 0 0; position: relative; }
.bar-chart .b em { position: absolute; top: -24px; left: 50%; transform: translateX(-50%); font-style: normal; font-weight: 600; font-size: 13.5px; color: var(--text-strong); }
.bar-chart .b small { position: absolute; bottom: -42px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; text-align: center; line-height: 1.15; color: var(--text-strong); }
.rate { background: #e9f8ee; border-radius: 14px; height: 104px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.rate img { width: 52px; height: 60px; }
.rate small { white-space: nowrap; display: block; font-size: 13.5px; font-weight: 600; color: var(--text-strong); }
.rate b { font-size: 39.5px; font-weight: 800; color: #179a4d; line-height: 1; letter-spacing: -1px; }
.link { color: var(--cta-500); text-decoration: underline; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.link .icon { width: 18px; height: 18px; }

/* =========================================================
   TRANG: THEO DÕI THƯỜNG XUYÊN
   ========================================================= */
.td-filter { display: grid; grid-template-columns: 216px 1fr 236px 260px auto; gap: 22px; align-items: center; padding: 10px 14px; }
.pick { white-space: nowrap; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px 0 8px; border: 1.4px solid var(--border); border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text-strong); background: #fff; letter-spacing: -.45px; }
.pick img { width: 34px; height: 34px; border-radius: 50%; }
.pick button { background: none; border: 0; padding: 0; color: var(--text-strong); margin-left: auto; }
.pick .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.td-main { display: grid; grid-template-columns: 1.62fr 1fr; gap: 14px; }
.panel-title.plain { font-size: 17px; margin-bottom: 14px; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.mode button { height: 40px; border-radius: 10px; border: 0; font-size: 16px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.mode .pos { background: #eaf6fb; color: var(--text-strong); }
.mode .pos.on { background: var(--grad-teal); color: #fff; box-shadow: 0 3px 10px rgba(10,132,248,.3); }
.mode .neg { background: #fdf0d8; color: #7a4a00; }
.mode .neg.on { background: linear-gradient(90deg,#f7b733,#f39c12); color: #fff; }
.mode .icon { width: 24px; height: 24px; stroke-width: 2.2; }
.mode .neg .icon { color: #f08c00; } .mode .neg.on .icon { color: #fff; }
.crit { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.crit .col { min-width: 0; overflow: hidden; background: #f6f8fd; border-radius: 12px; padding: 0 8px 8px; }
.crit .ch { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 10px; margin: 0 -8px 6px; background: var(--bg-soft); border-radius: 12px 12px 0 0;
  font-size: 15.5px; font-weight: 600; color: var(--text-strong); }
.crit .ch .icon { width: 28px; height: 28px; color: var(--brand-600); stroke-width: 1.7; }
.crit label { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 8px; border-radius: 8px; font-size: 13.5px; color: var(--text-strong); margin-bottom: 3px; cursor: pointer; letter-spacing: -.35px; white-space: nowrap; }
.crit label:has(input:checked) { background: #e7f6ec; }
.crit input { width: 21px; height: 21px; flex-shrink: 0; }
.evid b { white-space: nowrap; }
.evid { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; align-items: center; }
.evid b { font-size: 14px; color: var(--text-strong); }
.evid textarea { height: 60px; border: 1.4px solid var(--border); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 13.5px; resize: vertical; color: var(--text-strong); }
.follow .who { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.follow .who img { width: 74px; height: 66px; border-radius: 50%; object-fit: cover; }
.follow .who b { display: block; font-size: 16.5px; color: var(--text-strong); letter-spacing: -.5px; }
.follow h5 { margin: 4px 0 6px; font-size: 15.5px; color: var(--text-strong); }
.tl { list-style: none; margin: 0 0 10px; padding: 0 0 0 26px; position: relative; font-size: 13px; color: var(--text-strong); letter-spacing: -.4px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1.5px; background: #9cbcf3; }
.tl li { position: relative; display: grid; grid-template-columns: 94px 1fr; gap: 10px; height: 28px; align-items: center; white-space: nowrap; overflow: hidden; }
.tl li::before { content: ""; position: absolute; left: -24px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--brand-600); background: #fff; }
.note-box { border-radius: 12px; padding: 10px 14px 10px 54px; position: relative; margin-bottom: 10px; font-size: 13.5px; color: var(--text-strong); line-height: 1.24; letter-spacing: -.3px; }
.note-box b { display: block; font-size: 14.5px; }
.note-box .icon { position: absolute; left: 16px; top: 10px; width: 26px; height: 26px; }
.note-box.good { background: #e8f7ee; border: 1px solid #c9ecd7; } .note-box.good b { color: #137a3d; } .note-box.good .icon { color: #fff; fill: #1fae55; stroke: #fff; }
.note-box.warn { background: #fff4e0; border: 1px solid #fadfae; } .note-box.warn b { color: #b45a00; } .note-box.warn .icon { color: #ef8a00; }
.log-tools { display: flex; align-items: center; gap: 16px; }
.log-tools .panel-title { margin: 0 auto 0 0; }
.td-tbl td { height: 37px; font-size: 13.5px; color: var(--text-strong); }
.td-tbl td img { width: 40px; height: 40px; border-radius: 50%; vertical-align: middle; margin-right: 12px; }
.td-tbl .ok, .td-tbl .wn { width: 22px; height: 22px; vertical-align: middle; margin-right: 8px; }
.td-tbl .ok { fill: #1fae55; stroke: #fff; } .td-tbl .wn { color: #ef8a00; }
.td-tbl .desc { max-width: 430px; overflow: hidden; text-overflow: ellipsis; }

/* Ô ngày hiển thị dd/mm/yyyy */
.datebox { position: relative; cursor: pointer; }
.datebox input[type=date] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.datebox .txt { font-weight: 500; color: var(--text-strong); flex: 1; }

/* =========================================================
   TRANG: ĐÁNH GIÁ VÀ NHẬN XÉT
   ========================================================= */
.dg-filter { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 14px; }
.dg-filter .r { display: flex; align-items: center; gap: 22px; }
.dg-filter .seg { padding: 4px; }
.dg-filter .seg > button { height: 38px; font-size: 15px; padding: 0 30px; }
.chk { display: inline-flex; align-items: center; gap: 14px; font-size: 15.5px; color: var(--text-strong); cursor: pointer; white-space: nowrap; letter-spacing: -.3px; }
.chk .cbx { width: 24px; height: 24px; }
.dg-tbl th { text-align: center; font-size: 15px; height: 40px; }
.dg-tbl td { height: 52px; font-size: 15.5px; color: var(--text-strong); text-align: center; }
.dg-tbl td.name { text-align: left; font-weight: 600; letter-spacing: -.4px; }
.dg-tbl td.name img { width: 46px; height: 42px; border-radius: 50%; vertical-align: middle; margin-right: 20px; }
.dg-tbl tr.hl td { background: #edf3fd; }
.lvl { appearance: none; border: 0; border-radius: 8px; height: 34px; width: 112px; padding: 0 30px 0 0; text-align: center; text-align-last: center;
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b2550' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/16px no-repeat, var(--lv-bg); color: var(--lv-fg); }
.lvl[data-v="HTT"] { --lv-bg: #dff5e4; --lv-fg: #157a36; }
.lvl[data-v="HT"]  { --lv-bg: #dde9fb; --lv-fg: #1d4fa8; }
.lvl[data-v="CHT"] { --lv-bg: #ffe8cc; --lv-fg: #c25a00; }
.score { width: 98px; height: 38px; border: 1.4px solid var(--border); border-radius: 8px; text-align: center; font: inherit; font-size: 15.5px; color: var(--text-strong); }
.cmt { width: 100%; height: 48px; border: 1.4px solid var(--border); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13.5px; color: var(--text-strong); resize: vertical; line-height: 1.24; letter-spacing: -.3px; display: block; }
.cmt:focus, .score:focus { outline: 0; border-color: var(--cta-500); box-shadow: 0 0 0 3px rgba(43,123,254,.12); }
.ai-btn { width: 38px; height: 38px; border-radius: 8px; border: 1.4px solid var(--border); background: #fff; color: var(--cta-500); display: grid; place-items: center; }
.ai-btn .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.ai-btn:hover, .ai-btn.on { background: #eaf2ff; border-color: var(--cta-500); }
.suggest { position: absolute; width: 330px; background: #fff; border: 1px solid var(--border-soft); border-radius: 14px; box-shadow: 0 10px 30px rgba(30,60,120,.18); padding: 12px 16px 14px; z-index: 20; display: none; }
.suggest.show { display: block; }
.suggest::before { content: ""; position: absolute; top: -8px; right: 28px; width: 14px; height: 14px; background: #fff; border-left: 1px solid var(--border-soft); border-top: 1px solid var(--border-soft); transform: rotate(45deg); }
.suggest h5 { margin: 0 0 10px; display: flex; gap: 10px; align-items: center; font-size: 15.5px; color: var(--text-strong); }
.suggest h5 .icon { width: 24px; height: 24px; fill: #7c5cf5; stroke: none; }
.suggest p { margin: 0 0 12px; background: #f6f8fd; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.29; color: var(--text-strong); letter-spacing: -.3px; }
.suggest .bt { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dg-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border-soft); margin-top: 6px; }
.dg-foot .pg { display: flex; align-items: center; gap: 22px; font-size: 14.5px; }
.dg-foot .pg button { width: 42px; height: 38px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--cta-500); display: grid; place-items: center; }

/* =========================================================
   TRANG: GIAO BÀI TẬP
   ========================================================= */
.bt-stat { background: #fff; }
.bt-stat.s4 { background: #fdf0f2; }
.bt-quick { background: linear-gradient(90deg, #e3ecfb, #e8effc); border-radius: 16px; padding: 10px 16px; display: grid; grid-template-columns: 300px repeat(3, 1fr); gap: 28px; align-items: center; }
.bt-quick h3 { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--text-strong); letter-spacing: -.5px; }
.bt-quick h3 img { width: 38px; height: 46px; }
.qcard { background: #fff; border-radius: 14px; height: 70px; display: flex; align-items: center; gap: 18px; padding: 0 18px; box-shadow: var(--shadow-sm);
  font-size: 15.5px; font-weight: 600; color: var(--text-strong); letter-spacing: -.4px; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.qcard img { width: 52px; height: 46px; object-fit: contain; }
.qcard .icon { margin-left: auto; width: 22px; height: 22px; stroke-width: 2.4; }
.qcard:hover { box-shadow: var(--shadow-md); }
.sj { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; padding: 3px 12px 3px 8px; font-size: 13.5px; white-space: nowrap; color: var(--text-strong); }
.sj img { width: 24px; height: 24px; }
.sj.toan { background: #e6effd; } .sj.tv { background: #fde8f1; } .sj.kh { background: #e3f6ea; }
.prog { display: flex; align-items: center; gap: 12px; }
.prog .track { width: 172px; height: 12px; }
.prog .track.g > i { background: linear-gradient(90deg, #2fb75a, #4cc36d); }
.bt-tbl td { height: 35px; font-size: 14.5px; color: var(--text-strong); }
.bt-tbl td:first-child { font-weight: 600; letter-spacing: -.3px; }
.more { width: 50px; height: 32px; border: 1.2px solid var(--border); border-radius: 8px; background: #fff; display: grid; place-items: center; color: var(--text-strong); }
.more .icon { width: 22px; height: 22px; }
.bt-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.pend { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 16px; align-items: center; height: 44px; font-size: 14.5px; color: var(--text-strong); }
.pend .ini { width: 38px; height: 38px; font-size: 13px; margin: 0; }
.pend .chip { font-size: 13px; margin-right: 34px; }
.seg > button { white-space: nowrap; }
.qcard { white-space: nowrap; font-size: 14.5px; }
.bt-quick { grid-template-columns: 280px repeat(3, 1fr); gap: 22px; }
.more { display: inline-grid; vertical-align: middle; }
