.khung {
  min-height: 100vh;
  background-color: #F4F6FA;
  background-image: radial-gradient(900px 420px at 0% -80px, rgba(58, 105, 226, 0.1), transparent 70%), radial-gradient(700px 360px at 100% -60px, rgba(109, 102, 218, 0.09), transparent 70%);
  background-attachment: fixed;
}

.khung__che {
  display: none;
}

.thanh-ben {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: 18rem;
  display: flex;
  flex-direction: column;
  background-color: #264296;
  background-image: linear-gradient(165deg, #264296 0%, #383482 100%);
  color: rgba(255, 255, 255, 0.78);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
  transition: width 350ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 200ms ease;
}

.thanh-ben__dau {
  position: relative;
  flex: none;
  height: 4rem;
  display: flex;
  align-items: center;
  padding: 0 24px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.thanh-ben__logo {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: opacity 250ms ease;
}

.thanh-ben__logo-nho {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.thanh-ben__dong {
  display: none;
}

.thanh-ben__menu {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 10px 16px;
}

.thanh-ben__muc {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 22px;
  margin-top: 2px;
  transition: padding 350ms cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s ease, color 0.15s ease;
}
.thanh-ben__muc:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}
.thanh-ben__muc.is-dang-chon {
  background-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
}
.thanh-ben__muc.is-dang-chon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: #fff;
  border-radius: 0 3px 3px 0;
}
.thanh-ben__muc.is-dang-chon .thanh-ben__muc-ico {
  opacity: 1;
}

.thanh-ben__muc-ico {
  flex: none;
  width: 20px;
  font-size: 17px;
  text-align: center;
  opacity: 0.75;
}

.thanh-ben__muc:hover .thanh-ben__muc-ico {
  opacity: 1;
}

.thanh-ben__muc-ten {
  display: inline-block;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  opacity: 1;
  transition: max-width 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease, margin-left 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.thanh-ben__nhom {
  max-height: 44px;
  overflow: hidden;
  padding: 16px 12px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  user-select: none;
  opacity: 1;
  transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease, padding 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.thanh-ben__ke {
  height: 1px;
  margin: 0 8px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.12);
  transition: opacity 300ms ease, margin 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.thanh-ben--thu-gon {
  width: 5rem;
}
.thanh-ben--thu-gon .thanh-ben__logo {
  opacity: 0;
  pointer-events: none;
}
.thanh-ben--thu-gon .thanh-ben__logo-nho {
  opacity: 1;
}
.thanh-ben--thu-gon .thanh-ben__muc.is-thu-gon {
  padding-left: 20px;
  padding-right: 0;
}
.thanh-ben--thu-gon .thanh-ben__muc-ten.is-thu-gon {
  max-width: 0;
  opacity: 0;
  margin-left: -12px;
}
.thanh-ben--thu-gon .thanh-ben__nhom.is-thu-gon {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.thanh-ben--thu-gon .thanh-ben__ke.is-thu-gon {
  opacity: 1;
  margin: 12px 8px;
}
.thanh-ben--thu-gon:hover {
  width: 18rem;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
}
.thanh-ben--thu-gon:hover .thanh-ben__logo {
  opacity: 1;
}
.thanh-ben--thu-gon:hover .thanh-ben__logo-nho {
  opacity: 0;
}
.thanh-ben--thu-gon:hover .thanh-ben__muc.is-thu-gon {
  padding-left: 12px;
  padding-right: 12px;
}
.thanh-ben--thu-gon:hover .thanh-ben__muc-ten.is-thu-gon {
  max-width: 220px;
  opacity: 1;
  margin-left: 0;
}
.thanh-ben--thu-gon:hover .thanh-ben__nhom.is-thu-gon {
  max-height: 44px;
  opacity: 1;
  padding-top: 16px;
  padding-bottom: 4px;
}
.thanh-ben--thu-gon:hover .thanh-ben__ke.is-thu-gon {
  opacity: 0;
  margin: 0 8px;
}

.thanh-ben__menu::-webkit-scrollbar {
  width: 6px;
}

.thanh-ben__menu::-webkit-scrollbar-track {
  background: transparent;
}

.thanh-ben__menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 6px;
}

.thanh-ben__chan {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
}

.thanh-ben--thu-gon .thanh-ben__chan {
  justify-content: center;
  padding: 0;
}
.thanh-ben--thu-gon .thanh-ben__chan-chu {
  display: none;
}
.thanh-ben--thu-gon .thanh-ben__chan-so::before {
  content: "v";
}
.thanh-ben--thu-gon:hover .thanh-ben__chan {
  justify-content: flex-start;
  padding: 0 24px;
}
.thanh-ben--thu-gon:hover .thanh-ben__chan-chu {
  display: inline;
}
.thanh-ben--thu-gon:hover .thanh-ben__chan-so::before {
  content: none;
}

.khung__than {
  padding-left: 18rem;
  transition: padding-left 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.khung--thu-gon .khung__than {
  padding-left: 5rem;
}

.khung__dau {
  position: sticky;
  top: 0;
  z-index: 40;
}

.khung--khach {
  --cao-dai: 2.25rem;
}

.dai-khach {
  height: 2.25rem;
  justify-content: center;
  padding: 0 24px;
  font-size: 14px;
  white-space: nowrap;
}

.dai-khach__chu {
  overflow: hidden;
  text-overflow: ellipsis;
}

.dai-khach__thoat {
  height: 26px;
  padding: 0 10px;
  font-size: 13px;
}

.thanh-tren {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  background: rgba(251, 252, 254, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #E0E4EB;
}

.thanh-tren__trai,
.thanh-tren__phai {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thanh-tren__trai {
  min-width: 0;
}

.thanh-tren__phai {
  flex: none;
}

.thanh-tren__nut {
  width: 36px;
  height: 36px;
  margin-left: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1F2937;
  font-size: 19px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.thanh-tren__nut:hover {
  background: #EEF1F6;
}

.thanh-tren__nut--ngan-keo {
  display: none;
}

.o-website {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 40px;
  padding: 0 12px 0 6px;
  border: 1px solid #E0E4EB;
  border-radius: 8px;
  background: #F7F9FC;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.o-website:hover {
  border-color: #9CA3AF;
  text-decoration: none;
}

.o-website__ico {
  flex: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-image: linear-gradient(135deg, #3A69E2, #6D66DA);
  color: #FFFFFF;
  font-size: 15px;
}

.o-website__chu {
  min-width: 0;
  line-height: 1.25;
}

.o-website__cham {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16A34A;
}

.o-website__ten {
  display: block;
  max-width: 16rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

.o-website__mien {
  display: block;
  max-width: 16rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
  color: #6B7280;
}

.o-website__duoi {
  flex: none;
  font-size: 15px;
  color: #6B7280;
}

.thanh-tren__xem {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #E0E4EB;
  border-radius: 8px;
  background: #F7F9FC;
  color: #1F2937;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.thanh-tren__xem i {
  color: #6B7280;
}
.thanh-tren__xem:hover {
  border-color: #9CA3AF;
}
.thanh-tren__xem:hover i {
  color: #1F2937;
}
.thanh-tren__xem:disabled {
  cursor: wait;
  opacity: 0.7;
}

.tai-khoan {
  position: relative;
  padding-left: 8px;
  border-left: 1px solid #E0E4EB;
}

.tai-khoan__nut {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.tai-khoan__ten-khoi {
  text-align: right;
  line-height: 1.25;
}

.tai-khoan__ten {
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

.tai-khoan__vai,
.tai-khoan__email {
  font-size: 11px;
  color: #6B7280;
}

.tai-khoan__ten-khoi .tai-khoan__ten,
.tai-khoan__ten-khoi .tai-khoan__vai {
  display: block;
}

.tai-khoan__avatar {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background-image: linear-gradient(135deg, #3A69E2, #6D66DA);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 14px -6px rgba(45, 82, 176, 0.7);
}

.tai-khoan__che {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.tai-khoan__menu {
  position: absolute;
  right: 0;
  top: 48px;
  z-index: 50;
  width: 14rem;
  padding: 6px 0;
  background: #FBFCFE;
  border: 1px solid #E0E4EB;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.tai-khoan__dau {
  padding: 8px 16px;
  margin: -6px 0 6px;
  background: #F7F9FC;
  border-bottom: 1px solid #E0E4EB;
  border-radius: 8px 8px 0 0;
}
.tai-khoan__dau .tai-khoan__ten {
  display: block;
}
.tai-khoan__dau .tai-khoan__email {
  display: block;
  word-break: break-all;
}

.tai-khoan__muc {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #1F2937;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.tai-khoan__muc:hover {
  background: #F4F6FA;
}
.tai-khoan__muc .fa {
  width: 18px;
  font-size: 16px;
  text-align: center;
}

.tai-khoan__muc--do {
  color: #B91C1C;
}
.tai-khoan__muc--do:hover {
  background: #FEF2F2;
}

.khung__vung {
  width: 100%;
  max-width: 1448px;
  margin: 0 auto;
  padding: 24px;
  transition: max-width 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.khung--thu-gon .khung__vung {
  max-width: 1656px;
}

.the-so-lieu {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chi-dien-thoai {
  display: none;
}

.the-so-lieu--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.page-trang-chu .tc-hero {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  padding: 26px 28px;
}
.page-trang-chu .tc-hero__chao {
  font-size: 26px;
}
.page-trang-chu .tc-luoi {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.page-cau-hinh-website .chw-luoi {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.page-cau-hinh-website .chw-anh-luoi {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.page-cau-hinh-website .chw-anh--bia {
  grid-column: 1/-1;
}
.page-cau-hinh-website .chw-anh--bia .o-anh__xem {
  max-width: 480px;
}

.page-xac-thuc {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #3A69E2;
  background-image: url("../images/login-bg.png"), linear-gradient(135deg, #3A69E2, #6D66DA);
  background-size: cover;
  background-position: center;
}
.page-xac-thuc .xt-khung {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-xac-thuc .xt-gioi-thieu {
  width: 62%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 48px;
  text-align: center;
  color: #fff;
}
.page-xac-thuc .xt-gioi-thieu__tieu-de {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.page-xac-thuc .xt-gioi-thieu__chu {
  max-width: 800px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.page-xac-thuc .xt-gioi-thieu__anh {
  width: 100%;
  max-width: 600px;
  margin-top: 16px;
}
.page-xac-thuc .xt-cot {
  width: 38%;
  min-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}
.page-xac-thuc .xt-the {
  padding: 48px;
}

body:has(.page-dieu-khoan) {
  background-color: #F4F6FA;
  background-image: radial-gradient(900px 420px at 0% -80px, rgba(58, 105, 226, 0.1), transparent 70%), radial-gradient(700px 360px at 100% -60px, rgba(109, 102, 218, 0.09), transparent 70%);
  background-attachment: fixed;
}

.page-dieu-khoan {
  padding: 32px 24px 48px;
}
.page-dieu-khoan .dk-than {
  padding: 24px 32px 32px;
}

.page-thu-vien-file .tvf-than {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
}
.page-thu-vien-file .tvf-chi-tiet {
  position: sticky;
  top: calc(4rem + var(--cao-dai, 0px) + 16px);
}
.page-thu-vien-file .tvf-chi-tiet__dong,
.page-thu-vien-file .tvf-chi-tiet-nen {
  display: none;
}

.page-chuyen-muc .cm-cot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 250px) 76px 150px 172px;
  align-items: center;
}

.page-bai-viet .bv-dong {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px 150px 96px 160px 136px;
  align-items: center;
}

.page-soan-thao .st-luoi {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.page-soan-thao .st-phu .card + .card {
  margin-top: 24px;
}
.page-soan-thao .st-chon__ten {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-menu .mn-cot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px 216px;
  align-items: center;
}

.page-ho-so-ca-nhan .hs-luoi {
  display: grid;
  grid-template-columns: minmax(340px, 4fr) minmax(0, 8fr);
  gap: 24px;
  align-items: start;
}

.page-ten-mien .tm-hero {
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 32px;
}
.page-ten-mien .tm-luoi {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.page-ten-mien .tm-phu-cot {
  position: sticky;
  top: calc(4rem + var(--cao-dai, 0px) + 16px);
}

.page-bo-cuc-trang .bct-hinh {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-bo-cuc-trang .bct-hang {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.page-bo-cuc-trang .bct-cot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.page-bo-cuc-trang .bct-cot--1 {
  grid-column: span 1;
}
.page-bo-cuc-trang .bct-cot--2 {
  grid-column: span 2;
}
.page-bo-cuc-trang .bct-cot--3 {
  grid-column: span 3;
}
.page-bo-cuc-trang .bct-cot--4 {
  grid-column: span 4;
}
.page-bo-cuc-trang .bct-cot--5 {
  grid-column: span 5;
}
.page-bo-cuc-trang .bct-cot--6 {
  grid-column: span 6;
}
.page-bo-cuc-trang .bct-cot--7 {
  grid-column: span 7;
}
.page-bo-cuc-trang .bct-cot--8 {
  grid-column: span 8;
}
.page-bo-cuc-trang .bct-cot--9 {
  grid-column: span 9;
}
.page-bo-cuc-trang .bct-cot--10 {
  grid-column: span 10;
}
.page-bo-cuc-trang .bct-cot--11 {
  grid-column: span 11;
}
.page-bo-cuc-trang .bct-cot--12 {
  grid-column: span 12;
}
.page-bo-cuc-trang .bct-cot--9 > .bct-co-dinh:not(.bct-co-dinh--ten-chuyen-muc):not(.bct-co-dinh--tieu-de-blog) {
  flex: 1;
  min-height: 110px;
}
.page-bo-cuc-trang .bct-than--keo {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
}
.page-bo-cuc-trang .bct-than--keo .bct-nhom-tin {
  position: sticky;
  top: calc(4rem + var(--cao-dai, 0px) + 16px);
  max-height: calc(100vh - 4rem - var(--cao-dai, 0px) - 32px);
  overflow-y: auto;
}
.page-bo-cuc-trang .bct-than--keo .bct-mau-ve {
  margin: 0 0 8px;
}
.page-bo-cuc-trang .bct-than--keo .bct-hinh {
  margin: 0;
}
.page-bo-cuc-trang .bct-than--keo .bct-chu-giai {
  margin: 12px 0 0;
}

.page-mau-giao-dien .mgd-luoi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-vi-tri .vtri-luoi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-su-kien .sk-cot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 150px 136px;
  align-items: center;
}
.page-su-kien .sk-nut-xoa {
  margin-right: auto;
}
