/* ==========================================================
   THỜI KHÓA BIỂU (module tkb)
   ========================================================== */
.tkb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.tkb-title { display: flex; align-items: center; gap: 14px; }
.tkb-ic { flex: 0 0 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 26px; color: #fff; background: linear-gradient(135deg, #2a6be0, #0f4aad); box-shadow: 0 8px 18px rgba(20, 80, 181, .3); }
.tkb-title h2 { margin: 0; font-size: 24px; font-weight: 800; color: #12306b; line-height: 1.25; }
.tkb-title p { margin: 3px 0 0; font-size: 13.5px; color: #6b7690; }
.tkb-title p b { color: #e5252f; }
.tkb-actions { display: flex; gap: 8px; }
.tkb-tabs { display: inline-flex; padding: 5px; gap: 4px; background: #eef3fb; border-radius: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.tkb-tabs button { border: 0; background: transparent; padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 14.5px; color: #4a5878; transition: background .2s, color .2s, box-shadow .2s; }
.tkb-tabs button:hover { color: #1450b5; }
.tkb-tabs button.active { background: #fff; color: #e5252f; box-shadow: 0 4px 12px rgba(20, 80, 181, .15); }
.tkb-tabs .fa { margin-right: 6px; }
.tkb-pane { display: none; }
.tkb-pane.active { display: block; animation: tkbIn .3s ease; }
@keyframes tkbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tkb-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tkb-pick { min-width: 200px; }
.tkb-pick label { display: block; margin-bottom: 4px; font-size: 12.5px; color: #6b7690; }
.tkb-grow { flex: 1; min-width: 240px; }
.tkb-search { position: relative; }
.tkb-search .fa { position: absolute; left: 14px; top: 13px; color: #9aa7c4; }
.tkb-search input { padding-left: 38px; }
.tkb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tkb-chips button { border: 1px solid #d3deef; background: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: #27385f; transition: all .15s; }
.tkb-chips button:hover { border-color: #1450b5; color: #1450b5; }
.tkb-chips button.on { background: linear-gradient(180deg, #2a6be0, #1450b5); border-color: #1450b5; color: #fff; box-shadow: 0 4px 10px rgba(20, 80, 181, .25); }
.tkb-classes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; max-height: 150px; overflow-y: auto; padding: 2px; }
.tkb-classes button { border: 1px solid #e3ebf8; background: #f6f9ff; padding: 6px 13px; border-radius: 10px; font-weight: 600; font-size: 13px; color: #27385f; transition: all .15s; }
.tkb-classes button:hover { background: #eef4ff; border-color: #1450b5; }
.tkb-classes button.on { background: #e5252f; border-color: #e5252f; color: #fff; box-shadow: 0 4px 10px rgba(229, 37, 47, .3); }
.tkb-card { border: 1px solid #e3ebf8; border-radius: 18px; overflow: hidden; background: #fff; }
.tkb-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: linear-gradient(135deg, #f6f9ff, #eaf2ff); border-bottom: 1px solid #e3ebf8; }
.tkb-big { font-size: 22px; font-weight: 800; color: #12306b; }
.tkb-ses { margin-left: 12px; padding: 3px 12px; border-radius: 999px; background: #fff; border: 1px solid #d3deef; font-size: 12.5px; font-weight: 600; color: #1450b5; }
.tkb-note { font-size: 13.5px; color: #6b7690; }
.tkb-note b { color: #e5252f; font-size: 17px; }
.tkb-scroll { overflow-x: auto; }
.tkb-t { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 720px; }
.tkb-t th, .tkb-t td { border-right: 1px solid #edf1f9; border-bottom: 1px solid #edf1f9; text-align: center; vertical-align: middle; padding: 6px; }
.tkb-t thead th { background: linear-gradient(180deg, #1a5fd0, #0f4aad); color: #fff; padding: 12px 8px; font-size: 14px; border-color: rgba(255, 255, 255, .15); position: relative; }
.tkb-t thead th em { display: block; font-style: normal; font-size: 10.5px; font-weight: 600; color: #ffd666; }
.tkb-t thead th.today { background: linear-gradient(180deg, #ee3640, #c8102e); }
.tkb-t .tkb-p { width: 64px; background: #f6f9ff; color: #1450b5; font-weight: 800; font-size: 15px; }
.tkb-t thead .tkb-p { color: #fff; background: #0b3d91; }
.tkb-t td.today { background: #fff8f8; }
.tkb-t tr:last-child td, .tkb-t tr:last-child th { border-bottom: 0; }
.tkb-cell { --h: 210; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; padding: 8px 6px; border-radius: 12px; background: hsl(var(--h), 85%, 94%); border-left: 4px solid hsl(var(--h), 70%, 48%); text-align: left; align-items: flex-start; transition: transform .15s, box-shadow .15s; }
.tkb-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20, 80, 181, .16); }
.tkb-cell b { font-size: 14px; color: hsl(var(--h), 70%, 26%); line-height: 1.25; }
.tkb-gv { font-size: 12.5px; color: #5d6a85; line-height: 1.25; }
.tkb-gv[data-gv], .tkb-gv[data-lop] { cursor: pointer; text-decoration: underline dotted; }
.tkb-gv[data-gv]:hover, .tkb-gv[data-lop]:hover { color: #e5252f; }
.tkb-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 14px 20px; background: #fafcff; border-top: 1px solid #edf1f9; }
.tkb-lg { --h: 210; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #27385f; }
.tkb-lg i { width: 12px; height: 12px; border-radius: 4px; background: hsl(var(--h), 70%, 48%); }
.tkb-lg small { color: #8a96ad; }
.tkb-lg2 { font-size: 13px; color: #5d6a85; }
.tkb-lg2 b { color: #12306b; }
.tkb-all { min-width: 1200px; table-layout: auto; }
.tkb-all thead th a { color: #fff; }
.tkb-all .tkb-cell { min-height: 48px; padding: 4px 5px; border-left-width: 3px; }
.tkb-all .tkb-cell b { font-size: 12.5px; }
.tkb-all .tkb-gv { font-size: 11px; }
.tkb-all td { padding: 3px; min-width: 76px; }
.tkb-empty { text-align: center; padding: 50px 20px; color: #7a869f; }
.tkb-empty .fa { font-size: 46px; color: #c8d3ea; margin-bottom: 10px; }
.tkb-admin { margin-top: 26px; padding: 18px 20px; border-radius: 16px; background: #f6f9ff; border: 1px dashed #b8c9e8; }
.tkb-admin h4 { margin: 0 0 10px; font-size: 16px; color: #1450b5; }
.tkb-admin h4 small { color: #9aa7c4; font-size: 12px; font-weight: 500; }
.tkb-up { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tkb-up input[type=file] { flex: 1; min-width: 240px; height: auto; padding: 8px 12px; }
@media (max-width: 767px) { .tkb-title h2 { font-size: 19px; } .tkb-tabs button { padding: 9px 12px; font-size: 13px; } .tkb-pick { min-width: 100%; } .tkb-actions { width: 100%; } }
@media print {
    .tg-topbar, .tg-hero, .section-nav, .third-nav, #footer, .section-footer-bottom, .tkb-tabs, .tkb-tools, .tkb-classes, .tkb-actions, .tkb-admin, .bttop, .fix_banner_left, .fix_banner_right { display: none !important; }
    .tg-main { box-shadow: none; padding: 0; } .tkb-pane { display: none !important; } .tkb-pane.active { display: block !important; }
    .tkb-t thead th { background: #0f4aad !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } .tkb-cell { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.tkb-week { width: auto; min-width: 180px; height: 38px; border-radius: 999px; padding: 4px 14px; }
.tkb-oldbn { margin-bottom: 14px; } .tkb-oldbn a { font-weight: 700; text-decoration: underline; }

.tkb-arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 6px; }
.tkb-arch-i { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid #e3ebf8; border-radius: 16px; background: linear-gradient(135deg, #fff, #f3f8ff); color: #27385f !important; transition: transform .2s, box-shadow .2s; }
.tkb-arch-i:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 80, 181, .16); }
.tkb-arch-i > .fa { font-size: 24px; color: #1450b5; }
.tkb-arch-i b { font-size: 16px; color: #12306b; }
.tkb-arch-i span { font-size: 12.5px; color: #7a869f; }
.tkb-arch-i em { margin-top: 6px; font-style: normal; font-weight: 700; color: #e5252f; font-size: 13px; }
.tkb-old { margin-top: 18px; color: #6b7690; font-size: 13.5px; }

.tkb-old a { font-weight: 700; color: #e5252f; text-decoration: underline; }

.tkb-p small { display: block; font-size: 10px; font-weight: 600; opacity: .7; text-transform: uppercase; }
.tkb-t tr.tkb-pm > * { border-top: 3px solid #f2a900; }
.tkb-title h2 { color: #0a3a78; }


/* Khung đăng thời khóa biểu (quản trị) */
.tkb-admin { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(180deg, #f4f8ff, #eef4fd); border: 1px solid #cddcf2; box-shadow: 0 6px 20px rgba(15, 76, 156, .08); }
.tkb-admin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tkb-admin-ic { flex: 0 0 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #2470c7, #0a3a78); }
.tkb-admin h4 { margin: 0; font-size: 18px; font-weight: 800; color: #0a3a78; }
.tkb-admin-head p { margin: 2px 0 0; font-size: 12.5px; color: #6b7690; }
.tkb-cur { margin: 0 0 16px; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid #dbe6f6; font-size: 13.5px; color: #34425e; }
.tkb-cur i { color: #2470c7; margin-right: 4px; }
.tkb-up { display: block; }
.tkb-up-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.tkb-fld label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #0a3a78; }
.tkb-fld small { display: block; margin-top: 4px; font-size: 12px; color: #7a889e; }
.tkb-fld .form-control { height: 42px; border-radius: 10px; border: 1px solid #c3d3ec; box-shadow: none; }
.tkb-fld .form-control:focus { border-color: #2470c7; box-shadow: 0 0 0 3px rgba(36, 112, 199, .15); }
.tkb-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 26px 16px; margin: 0 0 14px; text-align: center; border: 2px dashed #9db8e0; border-radius: 14px; background: #fff; cursor: pointer; transition: all .2s; }
.tkb-drop:hover, .tkb-drop.over { border-color: #2470c7; background: #f0f6ff; }
.tkb-drop.has { border-style: solid; border-color: #1d9b57; background: #f1fbf5; }
.tkb-drop i { font-size: 34px; color: #1d9b57; }
.tkb-drop-t { font-size: 15px; font-weight: 700; color: #0a3a78; word-break: break-all; }
.tkb-drop-s { font-size: 12.5px; color: #7a889e; }
.tkb-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tkb-up-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tkb-up-foot p { margin: 0; font-size: 13px; color: #52627a; }
.tkb-up-foot .btn { padding: 10px 24px; font-weight: 700; border-radius: 99px; }
@media (max-width: 640px) { .tkb-up-grid { grid-template-columns: 1fr; } .tkb-admin { padding: 16px; } }
/* Quản lý các bản đã đăng */
.tkb-mng { margin-top: 22px; padding-top: 18px; border-top: 1px dashed #b8c9e8; }
.tkb-mng-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tkb-mng-head h5 { margin: 0; font-size: 15px; font-weight: 800; color: #0a3a78; }
.tkb-mng-head h5 span { color: #7a889e; font-weight: 600; }
.tkb-mng-head .form-control { width: 260px; max-width: 100%; height: 36px; border-radius: 99px; }
.tkb-mng-list { max-height: 360px; overflow-y: auto; background: #fff; border: 1px solid #dbe6f6; border-radius: 12px; }
.tkb-mng-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #edf2fa; }
.tkb-mng-row:last-child { border-bottom: 0; }
.tkb-mng-row.is-cur { background: #f1fbf5; }
.tkb-mng-ck { margin: 0; flex: 0 0 auto; }
.tkb-mng-t { flex: 1 1 auto; min-width: 0; }
.tkb-mng-t b { display: block; font-size: 14px; color: #16243b; line-height: 1.35; }
.tkb-mng-t small { color: #7a889e; font-size: 12px; }
.tkb-badge { flex: 0 0 auto; padding: 3px 10px; border-radius: 99px; background: #1d9b57; color: #fff; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tkb-mng-act { flex: 0 0 auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tkb-mng-act .btn.armed, .tkb-mng-foot .btn.armed { background: #b3261e; border-color: #b3261e; color: #fff; }
.tkb-mng-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.tkb-mng-foot label { margin: 0; font-size: 13px; color: #52627a; font-weight: 600; }
@media (max-width: 640px) { .tkb-mng-row { flex-wrap: wrap; } .tkb-mng-act { width: 100%; justify-content: flex-start; } }
.tkb-mng-act .btn-default { color: #0a3a78 !important; background: #fff; border: 1px solid #c3d3ec; }
.tkb-mng-act .btn-default:hover { background: #eef4fd; }
