/* Trang quản lý: Concept "Cửa lớp đang mở"
   Đồng bộ màu sắc: Xanh mực Viện hàn lâm (#16325c)
   Nền trang: #f4f6fa, Surfaces: #ffffff, Viền nhẹ: #e2e8f0
   Đạt chuẩn Tasteskill --app */

.app-body, .app-body button, .app-body input, .app-body select, .app-body textarea, .app-body h1, .app-body h2, .app-body h3 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.app-body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100dvh;
}

/* Layout Full Màn Hình cho Khu Quản trị */
.app-body .wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(16px, 2.5vw, 36px);
  padding-right: clamp(16px, 2.5vw, 36px);
  box-sizing: border-box;
}

/* Header quản trị */
.qtop {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0; /* taste-skill-ignore */
  position: relative;
  z-index: 30;
}
@media (min-width: 900px) {
  .qtop {
    position: sticky;
    top: 0;
  }
}
.qtop__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.qbrand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qbrand__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.qbrand__tag {
  font-size: var(--s-nho);
  color: var(--muted);
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.qscope {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.qscope__item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qscope__nhan {
  font-size: var(--s-nho);
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.qselect, .qinput {
  font: inherit;
  font-size: var(--s-nho);
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 16px;
  min-height: 40px;
  transition: border-color var(--nhanh) var(--ease);
}
.qselect:focus-visible, .qinput:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.qlink-khach {
  font-size: var(--s-nho);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--accent-soft);
  transition: filter var(--nhanh) var(--ease);
}
.qlink-khach:hover {
  filter: brightness(0.96);
}

/* Khung Shell chính */
.qshell {
  padding-top: 24px;
  padding-bottom: 72px;
  display: grid;
  gap: 32px;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  width: 100%;
  max-width: none;
}

/* Sidebar navigation */
.qnav {
  position: sticky;
  top: 130px;
}
.qnav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.qnav__item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  min-height: 44px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background var(--nhanh) var(--ease), color var(--nhanh) var(--ease);
}
.qnav__item:hover {
  background: #e2e8f0;
  color: var(--ink);
}
.qnav__item.is-active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}
.qnav__item.is-locked {
  color: #475569;
  cursor: pointer;
}
.qnav__lock {
  width: 14px;
  height: 14px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Vùng nội dung chính */
.qmain {
  min-width: 0;
}
.qhead {
  margin-bottom: 24px;
}
.qhead h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.qhead__meta {
  font-size: var(--s-nho);
  color: var(--muted);
  margin: 0;
}

/* Các panels nội dung */
.qpanel {
  display: grid;
  gap: 24px;
}
.qpanel[hidden] {
  display: none !important;
}

/* KPI thống kê */
.stat-luoi {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.stat-the {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 24px;
  display: grid;
  gap: 8px;
}
.stat-the__nhan {
  font-size: var(--s-nho);
  font-weight: 600;
  color: var(--muted);
}
.stat-the__so {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow-wrap: normal;
}
.stat-the__chu {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
}

.qpanel__khoi {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.qpanel__tieu-de {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.qpanel__nut-nhanh {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.qpanel__chu-thich {
  font-size: var(--s-nho);
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

/* Danh sách task việc cần làm */
.qds-task {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.qtask-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 16px;
  padding: 16px 16px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: var(--s-nho);
}
.qtask-item__noi {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}
.qtask-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  margin-top: 8px;
  flex-shrink: 0;
}
.qtask-item .tag-tt {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bảng biểu Quản trị */
.qtoolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.qtoolbar--giua {
  justify-content: space-between;
}
.qtoolbar__ghi-chu {
  font-size: var(--s-nho);
  color: var(--muted);
}
.bang-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.qtable {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--s-nho);
}
.qtable th {
  background: #f8fafc;
  color: var(--muted);
  font-weight: 600;
  padding: 16px 16px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.qtable td {
  padding: 16px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--ink);
  vertical-align: middle;
}
.qtable tr:last-child td {
  border-bottom: 0;
}
.qtable tr:hover td {
  background: #f8fafc;
}
.qtable .num, .qtable .num-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qtable th.num-col {
  text-align: right;
  white-space: nowrap;
}

#m-crm .qtable,
#m-lop .qtable,
#m-hoc-phi .qtable {
  min-width: 840px;
}
#m-diem-danh .qtable {
  min-width: 780px;
}

/* Tag trạng thái */
.tag-tt {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  white-space: nowrap;
}
.tag-tt--ok {
  background: #e2ece5;
  color: #1e5a35;
}
.tag-tt--accent {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-tt--dong {
  background: #fee2e2;
  color: #991b1b;
}

.act-btn {
  font: inherit;
  font-size: var(--s-nho);
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 4px 8px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.act-btn:hover {
  filter: brightness(0.85);
}

/* Lớp của tôi */
.gv-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.my-classes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.my-class-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.my-class-item h3 {
  font-size: 17px;
  margin: 0 0 4px;
}
.my-class-item p {
  font-size: var(--s-nho);
  color: var(--ink-2);
  margin: 0;
}

/* Phân hệ Điểm danh & Điểm số */
.so-diem-chon-hang {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.so-diem-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.stat-mini {
  font-size: var(--s-nho);
  color: var(--muted);
  background: #f8fafc;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.stat-mini strong {
  color: var(--accent);
  font-weight: 700;
}
.att-group {
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.att-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  transition: background-color var(--nhanh) var(--ease), color var(--nhanh) var(--ease), border-color var(--nhanh) var(--ease);
}
.att-btn--p.is-chon {
  background: #1e5a35;
  color: #ffffff;
  border-color: #1e5a35;
}
.att-btn--l.is-chon {
  background: #8f5a1e;
  color: #ffffff;
  border-color: #8f5a1e;
}
.att-btn--a.is-chon {
  background: #991b1b;
  color: #ffffff;
  border-color: #991b1b;
}
.score-input {
  width: 72px;
  padding: 4px 8px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: var(--s-nho);
}
.score-input:focus-visible {
  outline: 2px solid var(--accent);
}
.note-input {
  width: 100%;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
}
.note-input:focus-visible {
  outline: 2px solid var(--accent);
  background: #ffffff;
}

/* Báo cáo thống kê */
.report-luoi {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.report-the {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 16px;
}
.report-the__tieu-de {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  font-size: var(--s-nho);
}
.bar-row__label {
  grid-column: 1;
  grid-row: 1;
  color: var(--ink-2);
  min-width: 0;
  overflow-wrap: anywhere;
}
.bar-row__track {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.bar-row__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.2, .7, .2, 1);
}
.bar-row__val {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
  text-align: right;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Khung khóa quyền */
.qpanel--khoa {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 48px 24px;
  text-align: center;
}
.qkhoa__hop {
  max-width: 440px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.qkhoa__icon {
  width: 44px;
  height: 44px;
  color: #475569;
}
.qkhoa__tieu-de {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.qkhoa__mo-ta {
  font-size: var(--s-nho);
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Dialog Sheet */
.qdialog {
  border: 0;
  border-radius: 16px;
  padding: 0;
  width: min(540px, calc(100% - 32px));
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 20px 40px rgba(13, 30, 56, 0.16); /* taste-skill-ignore */
}
.qdialog::backdrop {
  background: rgba(13, 30, 56, 0.45);
}
.qdialog__form {
  margin: 0;
}
.qdialog__dau {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e2e8f0; /* taste-skill-ignore */
}
.qdialog__tieu-de {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--accent);
}
.qdialog__phu {
  font-size: var(--s-nho);
  color: var(--muted);
  margin: 0;
}
.qdialog__than {
  padding: 24px 24px;
  display: grid;
  gap: 16px;
}
.qfield {
  display: grid;
  gap: 8px;
}
.qfield__nhan {
  font-size: var(--s-nho);
  font-weight: 600;
  color: var(--ink-2);
}
.qfield__loi {
  font-size: 13px;
  color: #b91c1c;
  margin: 0;
  min-height: 1.2em;
}
.qdialog__chan {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0; /* taste-skill-ignore */
  border-radius: 0 0 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

/* Biên lai thu tiền */
.bien-lai-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
  font-size: var(--s-nho);
  line-height: 1.6;
}
.bien-lai-box dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 8px 16px;
  margin: 0;
}
.bien-lai-box dt {
  color: var(--muted);
  font-weight: 500;
}
.bien-lai-box dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.bien-lai-so-tien {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.bien-lai-canh-bao {
  padding: 8px 24px 16px;
  font-size: 12px;
  color: #b91c1c;
  background: #fff5f5;
  border-top: 1px dashed #fecaca; /* taste-skill-ignore */
  line-height: 1.4;
  text-align: center;
}

/* Toast */
.qtoast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--accent);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: var(--s-nho);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(13, 30, 56, 0.2); /* taste-skill-ignore */
  transform: translateY(120%);
  opacity: 0;
  transition: transform var(--nhanh) var(--ease), opacity var(--nhanh) var(--ease);
  pointer-events: none;
}
.qtoast.is-on {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 1100px) {
  .stat-luoi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .qshell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 16px;
  }
  .qnav {
    position: static;
  }
  .qnav__list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .qnav__item {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .report-luoi {
    grid-template-columns: minmax(0, 1fr);
  }
  .my-class-item {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .my-class-item .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 640px) {
  .stat-luoi {
    grid-template-columns: minmax(0, 1fr);
  }
  .qtop__row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .qscope {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .qscope__item {
    justify-content: space-between;
  }
  .qscope__item .qselect {
    flex: 1;
    min-width: 0;
  }
  .qlink-khach {
    text-align: center;
  }
  .qtask-item {
    flex-direction: column;
    gap: 8px;
  }
  .qtask-item .tag-tt {
    margin-left: 24px;
    align-self: flex-start;
  }
  .so-diem-chon-hang {
    flex-direction: column;
    align-items: stretch;
  }
  .so-diem-stats {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  .bien-lai-box dl {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

#m-tai-chinh .qtable {
  min-width: 0;
}
#m-tai-chinh .qtable td,
#m-tai-chinh .qtable th {
  padding: 16px 12px;
}
#m-tai-chinh .chu-thich-nho {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

#m-diem-danh .so-diem-chon-hang > .qfield:first-child {
  flex: 1 1 280px;
  min-width: 0;
}
#m-diem-danh .so-diem-chon-hang > .qfield:nth-child(2) {
  flex: 0 0 200px;
  min-width: 0;
}
#m-diem-danh .so-diem-stats {
  flex-wrap: wrap;
}
#m-diem-danh .dd.is-open {
  z-index: 50;
}

.qtoolbar__phai {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: auto;
}
.qtoolbar__phai .qinput {
  min-width: 240px;
}
.tim-nhanh {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tim-nhanh .qinput {
  width: 240px;
  min-height: 44px;
}
.tim-ket-qua {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 320px;
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(13, 30, 56, 0.16);
}
.tim-ket-qua .dd__muc {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.qdialog--rong {
  max-height: 90vh;
  overflow-y: auto;
}
.ho-so {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}
.ho-so__khu {
  display: grid;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}
.ho-so__dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0;
}
.ho-so__dl dt {
  font-size: 13px;
  color: var(--muted);
}
.ho-so__dl dd {
  margin: 0;
}
.ho-so__ds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ho-so__dong {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}
.ho-so__nhap {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.ho-so__nhap .qfield {
  flex: 1 1 200px;
}
.lich-su,
.viec {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.lich-su__muc {
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}
.lich-su__muc p {
  margin: 8px 0 0;
}
.viec__muc {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}
.viec__nut {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  font: inherit;
  cursor: pointer;
}
.viec__muc.is-xong > span:nth-child(2) {
  text-decoration: line-through;
  color: var(--muted);
}
.khu-nhap {
  display: grid;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}
.chon-nhieu-nhom {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
}
.chon-nhieu {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.qds-task .is-tre {
  background: #fef2f2;
}
.qtask-item__hanh {
  display: flex;
  align-items: center;
  gap: 16px;
}
.qdialog__chan--cuoi {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}
.qdialog .ho-so {
  padding: 0 24px;
}

.qdialog--ho-so {
  width: min(640px, 92vw);
}
.hs-tabs {
  display: flex;
  gap: 24px;
  padding: 0 24px;
  border-bottom: 1px solid #e2e8f0;
  overflow-x: auto;
  scrollbar-width: none;
}
.hs-tabs::-webkit-scrollbar {
  display: none;
}
.hs-tab {
  min-height: 44px;
  padding: 12px 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.hs-tab[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hs-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hs-panel.ho-so {
  margin-top: 0;
  padding-top: 24px;
}
@media (max-width: 640px) {
  .hs-tabs {
    gap: 16px;
    padding: 0 16px;
  }
  .hs-tab {
    font-size: 14px;
  }
}
.hs-panel > .ho-so__khu:first-child {
  border-top: 0;
  padding-top: 0;
}

#m-lop .qtable th:last-child,
#m-lop .qtable td.lop__thao-tac {
  width: 232px;
  min-width: 232px;
  white-space: nowrap;
}
#m-lop .lop__thao-tac .act-btn {
  display: inline-block;
  min-width: 104px;
  text-align: center;
}

.qdialog--ho-so {
  width: min(880px, 94vw);
}
.hs-dau {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hs-dau__chu {
  min-width: 0;
}
.hs-dau .qdialog__tieu-de {
  font-size: 22px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.hs-dau .qdialog__phu {
  margin-top: 8px;
}
.hs-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.hs-tag--ok {
  background: #dcfae5;
  color: #04250e;
}
.hs-tag--canh {
  background: #fffbeb;
  color: #92400e;
}
.hs-tag--loi {
  background: #ffedea;
  color: #831c1e;
}
.hs-tag--trung {
  background: #eef2f7;
  color: #334155;
}
.hs-panel[data-hs-panel="tt"] {
  display: grid;
  gap: 32px;
  padding: 24px;
  align-items: start;
}
@media (min-width: 760px) {
  .hs-panel[data-hs-panel="tt"] {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}
.hs-panel[data-hs-panel="tt"] > .qdialog__form {
  margin: 0;
}
.hs-panel[data-hs-panel="tt"] > .qdialog__form:only-child {
  max-width: 560px;
}
.hs-panel[data-hs-panel="tt"] .qdialog__than {
  padding: 0;
  gap: 20px;
}
.hs-panel[data-hs-panel="tt"] .qdialog__chan {
  padding: 24px 0 0;
  background: none;
  border: 0;
  border-radius: 0;
  justify-content: flex-start;
}
.hs-panel[data-hs-panel="tt"] > .ho-so {
  margin: 0;
  padding: 0;
  gap: 24px;
}
.hs-panel[data-hs-panel="tt"] > .ho-so .ho-so__khu {
  padding: 0;
}
.ho-so__khu {
  border-top: 0;
  padding-top: 0;
  gap: 16px;
}
.ho-so__khu h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #111111;
}
.ho-so__dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 8px 0;
  background: #f8fafc;
  border-radius: 12px;
}
.ho-so__dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 8px 16px;
}
.ho-so__dl dt {
  font-size: 14px;
  color: #5f6368;
}
.ho-so__dl dd {
  margin: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  color: #111111;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ho-so__dl .ho-so__chinh {
  padding: 16px;
  margin: 4px 8px;
  background: #ffffff;
  border-radius: 10px;
}
.ho-so__dl .ho-so__chinh dt {
  font-size: 15px;
  font-weight: 600;
  color: #111111;
}
.ho-so__dl .ho-so__chinh dd {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: #16325c;
}
.ho-so__ds {
  gap: 8px;
}
.ho-so__dong {
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
  border-bottom: 0;
}
.ho-so__dong span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ho-so__nhap {
  margin-top: 8px;
}
.lich-su,
.viec {
  gap: 8px;
}
.lich-su__muc {
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
}
.lich-su__muc > div {
  font-size: 13px;
  color: #5f6368;
}
.lich-su__muc strong {
  font-weight: 600;
  color: #111111;
}
.lich-su__muc p {
  margin: 4px 0 0;
  font-size: 15px;
  color: #111111;
}
.viec__muc {
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 10px;
}
.viec__muc.is-xong > span:nth-child(2) {
  color: #5f6368;
}
.khu-nhap {
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  gap: 12px;
}
.hs-panel.ho-so {
  padding: 24px;
}
.hs-panel.ho-so > .ho-so__khu {
  padding: 0;
}
.qdialog--ho-so .qdialog__chan--cuoi {
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.ho-so__khu > .btn {
  justify-self: start;
}
#hop-phu-huynh,
#hop-giao-vien {
  width: min(640px, 94vw);
}
#hop-phu-huynh .hs-panel[data-hs-panel="tt"],
#hop-giao-vien .hs-panel[data-hs-panel="tt"] {
  grid-template-columns: minmax(0, 1fr);
}
#hop-phu-huynh .hs-panel[data-hs-panel="tt"] > .qdialog__form:only-child,
#hop-giao-vien .hs-panel[data-hs-panel="tt"] > .qdialog__form:only-child {
  max-width: none;
}

.qdialog--ho-so {
  display: none;
  flex-direction: column;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
}
.qdialog--ho-so[open] {
  display: flex;
}
.qdialog--ho-so > .qdialog__dau,
.qdialog--ho-so > .hs-tabs,
.qdialog--ho-so > .qdialog__chan--cuoi {
  flex: none;
}
.qdialog--ho-so > .hs-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
