/* ====================================================== TRANG QUẢN TRỊ PHIẾU */

.qt { background: var(--soft); }
.qt-bao { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 20px; }

/* --------------------------------------------------------- đăng nhập */
.qt-vao {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  background: linear-gradient(160deg, #042b7b 0%, #053596 55%, #0b4bbd 100%);
  padding: 24px;
}
.hop-vao {
  width: 100%; max-width: 392px; background: #fff; border-radius: 16px;
  padding: 34px 30px 28px; box-shadow: 0 18px 50px rgba(2, 18, 56, .3); text-align: center;
}
.hop-vao img { margin: 0 auto 14px; display: block; }
.hop-vao h1 { margin: 0 0 4px; font-size: 20.5px; color: var(--navy); }
.phu-vao { margin: 0 0 22px; font-size: 13.4px; color: var(--muted); }
.hop-vao label { display: block; text-align: left; margin-bottom: 14px; font-size: 14px;
  font-weight: 600; color: var(--ink); }
.hop-vao input {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 15.4px; color: var(--ink);
}
.hop-vao input:focus { outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(5, 53, 150, .12); }
.nut-vao {
  width: 100%; margin-top: 6px; padding: 13px; border: 0; border-radius: 10px;
  background: var(--navy); color: #fff; font-family: inherit; font-size: 16px;
  font-weight: 700; cursor: pointer;
}
.nut-vao:hover { background: var(--navy-dark); }
.bao-loi {
  background: #fdf1f0; border: 1px solid #f3c9c6; color: #a51f19; border-radius: 9px;
  padding: 10px 13px; font-size: 14px; font-weight: 600; margin: 0 0 16px; text-align: left;
}
.hop-vao .ve { display: inline-block; margin-top: 16px; font-size: 13.6px;
  color: var(--muted); text-decoration: none; }
.hop-vao .ve:hover { color: var(--navy); }

/* ------------------------------------------------------------ đầu trang */
.qt-dinh { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 9; }
.qt-dinh-trong { display: flex; align-items: center; gap: 13px; height: 62px; }
.qt-ten { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.qt-ten b { font-size: 15.5px; color: var(--navy); }
.qt-ten span { font-size: 12px; color: var(--muted); }
.qt-dinh .nut-nho {
  border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 9px;
  padding: 8px 13px; font-size: 13.8px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.qt-dinh .nut-nho:hover { background: var(--card); }

.qt-than { padding: 26px 0 60px; }
.bao-xong {
  background: #eafaf4; border: 1px solid #b7e6d5; color: #0d6a52; border-radius: 10px;
  padding: 11px 15px; font-size: 14.6px; font-weight: 600; margin: 0 0 18px;
}
.qt-trong { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 60px 30px; text-align: center; }
.qt-trong h2 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
.qt-trong p { margin: 0; color: var(--muted); }

/* ------------------------------------------------------------- ô số liệu */
.qt-so { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.o-so {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: 11px; padding: 16px 18px;
}
.o-so b { display: block; font-size: 30px; line-height: 1.1; color: var(--navy); letter-spacing: -.025em; }
.o-so span { display: block; font-size: 13.2px; color: var(--muted); margin-top: 3px; }
.o-so:nth-child(2) { border-left-color: var(--blue); }
.o-so:nth-child(3) { border-left-color: var(--cyan); }
.o-so:nth-child(4) { border-left-color: var(--teal); }

.qt-hang-thao { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.nut-xuat {
  background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); border: 0;
  font-size: 15.4px; padding: 12px 22px;
}
.nut-xuat:hover { background: #0e6156; }
.ghi-nho { font-size: 13.6px; color: var(--muted); max-width: 46ch; }

/* ------------------------------------------------------------ hộp nội dung */
.qt-luoi2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 18px; }
.qt-hop {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px;
}
.qt-hop h3 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.hop-phu { margin: 0 0 14px; font-size: 13.6px; color: var(--muted); }

/* thanh ngang so sánh điểm trung bình từng năng lực */
.thanh-dong { display: grid; grid-template-columns: 1fr 132px 62px; gap: 12px;
  align-items: center; padding: 7px 0; }
.thanh-dong + .thanh-dong { border-top: 1px dashed #eef1f6; }
.thanh-ten { font-size: 14.4px; color: var(--ink); line-height: 1.34; }
.thanh-ten b { color: var(--navy); font-size: 12.8px; margin-right: 2px; }
.thanh-ke { height: 9px; background: #e9edf4; border-radius: 999px; overflow: hidden; }
.thanh-ke i { display: block; height: 100%; background: var(--red); border-radius: 999px; }
.thanh-ke i.ke-cam { background: var(--amber); }
.thanh-so { font-size: 14px; font-weight: 700; color: var(--muted); text-align: right; }

/* ----------------------------------------------------------------- bảng */
.qt-bang-hop { padding-bottom: 14px; }
.cuon-ngang { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.qt-bang { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.qt-bang th {
  background: var(--navy); color: #fff; font-size: 12.4px; font-weight: 700;
  text-align: left; padding: 10px 9px; white-space: nowrap; position: sticky; top: 0;
}
.qt-bang th:first-child { border-radius: 8px 0 0 0; }
.qt-bang th:last-child { border-radius: 0 8px 0 0; }
.qt-bang td { padding: 9px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.qt-bang tbody tr:nth-child(odd) { background: #fbfcfe; }
.qt-bang tbody tr:hover { background: var(--card); }
.qt-bang .giua { text-align: center; }
.qt-bang .nho { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ten-gv { color: var(--navy); font-weight: 700; text-decoration: none; }
.ten-gv:hover { text-decoration: underline; }
.qt-bang tr.dang-xem { background: var(--card) !important; }

.muc { font-size: 12.2px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.muc-0 { background: #fdeceb; color: #a51f19; }
.muc-1 { background: #fdf3e5; color: #9a5a10; }
.muc-2 { background: #e8f0fc; color: var(--blue); }
.muc-3 { background: #e6f5f1; color: #0d6a52; }

.hang-xoa { margin: 0; }
.nut-xoa {
  border: 1px solid var(--line); background: #fff; color: var(--faint); border-radius: 7px;
  width: 26px; height: 26px; cursor: pointer; font-size: 12px; line-height: 1; padding: 0;
}
.nut-xoa:hover { background: #fdf1f0; border-color: #f3c9c6; color: var(--red); }

/* ------------------------------------------------------- chi tiết một phiếu */
.hang-chi-tiet td { background: #f7f9fd; padding: 18px 14px; }
.chi-tiet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ct-mien h4 { margin: 0 0 7px; font-size: 13.6px; color: var(--navy); line-height: 1.3; }
.ct-dong { display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 4px 0; border-top: 1px dashed #e4e9f2; font-size: 13.4px; color: var(--ink); }
.dc { font-size: 12.2px; font-weight: 700; white-space: nowrap; padding: 2px 8px; border-radius: 999px; }
.dc-0 { background: #eef0f4; color: #4c5563; }
.dc-1 { background: #fdf3e5; color: #9a5a10; }
.dc-2 { background: #e8f0fc; color: var(--blue); }
.dc-3 { background: #e6f5f1; color: #0d6a52; }
.ct-uu { margin: 13px 0 0; font-size: 14px; color: var(--ink); }
.ct-uu b { color: var(--navy); }

.qt-luu-y {
  margin: 24px 0 0; font-size: 13.4px; color: var(--faint); text-align: center;
  max-width: 76ch; margin-inline: auto;
}

@media (max-width: 1000px) {
  .qt-so { grid-template-columns: repeat(2, 1fr); }
  .qt-luoi2 { grid-template-columns: 1fr; }
  .chi-tiet { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .qt-so { grid-template-columns: 1fr; }
  .chi-tiet { grid-template-columns: 1fr; }
  .thanh-dong { grid-template-columns: 1fr 78px 52px; }
  .qt-ten span { display: none; }
}
