﻿/* ===== LAYOUT MOBILE (dÃ¹ng class body.man_hinh_doc thay vÃ¬ @media) ===== */

/* áº¨n sidebar trÃªn mÃ n hÃ¬nh dá»c */
body.man_hinh_doc .thanh_ben {
  display: none;
}

body.man_hinh_doc .vung_noi_dung_chinh {
  margin-left: 0;
}

body.man_hinh_doc .thanh_tren_desktop {
  display: none;
}

/* Header mobile */
body.man_hinh_doc .thanh_tren_mobile {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--cao-header) + var(--safe-top));
  padding-top: var(--safe-top);
  background: var(--nen-header);
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--khoang-md);
  padding-right: var(--khoang-md);
  z-index: var(--z-header);
  box-shadow: var(--bong-nhe);
}

body.man_hinh_doc .vung_logo_mobile {
  display: flex;
  align-items: center;
  gap: var(--khoang-sm);
  min-width: 0;
}

body.man_hinh_doc .logo_mobile {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

body.man_hinh_doc .ten_app_mobile {
  font-size: 16px;
  font-weight: 900;
  color: var(--mau-chinh);
  line-height: 1.15;
  min-width: 0;
}

body.man_hinh_doc .nut_dang_xuat_mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 0;
  background: transparent;
  color: var(--mau-chinh);
  border: 0;
  border-radius: 0;
  font-family: var(--font-chinh);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
  transition: var(--chuyen-tiep);
}

body.man_hinh_doc .nut_dang_xuat_mobile:active {
  opacity: 0.85;
}

/* Ná»™i dung chÃ­nh - Mobile */
body.man_hinh_doc .noi_dung_chinh {
  padding: var(--khoang-md);
  padding-top: calc(var(--cao-header) + var(--safe-top) + var(--khoang-md));
  padding-bottom: calc(var(--cao-bottom-nav) + var(--safe-bottom) + var(--khoang-md));
}

body.man_hinh_doc .khung_cap_nhat_profile {
  padding: 12px;
}

body.man_hinh_doc .tieu_de_cap_nhat_profile {
  font-size: clamp(22px, 6vw, 28px);
}

body.man_hinh_doc .profile_hero {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

body.man_hinh_doc .luoi_profile_goc {
  grid-template-columns: 1fr;
  gap: 12px;
}

body.man_hinh_doc .cot_profile_tieu_chuan,
body.man_hinh_doc .cot_profile_upload {
  padding: 12px;
}

body.man_hinh_doc .khung_iframe_profile {
  height: 400px;
}

/* Section mobile */
body.man_hinh_doc .muc_section {
  margin-bottom: 16px;
  border-radius: var(--goc-vua);
}

body.man_hinh_doc .tieu_de_section {
  font-size: var(--font-co-lon);
  padding: 10px 16px;
}

/* Grid 1 cá»™t trÃªn mobile */
body.man_hinh_doc .luoi_nut {
  grid-template-columns: 1fr;
  gap: var(--khoang-sm);
  padding: var(--khoang-sm);
}

/* NÃºt full width mobile */
body.man_hinh_doc .the_nut {
  min-height: 52px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
}

body.man_hinh_doc .the_nut:active {
  transform: scale(0.98);
  opacity: 0.9;
}

body.man_hinh_doc .bieu_tuong_nut {
  font-size: 24px;
  margin-top: 2px;
}

body.man_hinh_doc .dau_nut {
  margin-bottom: 0;
}

body.man_hinh_doc .noi_dung_nut {
  flex: 1;
}

/* Bottom Navigation */
body.man_hinh_doc .thanh_duoi_mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--cao-bottom-nav) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: white;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: stretch;
  z-index: var(--z-header);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

body.man_hinh_doc .muc_nav_duoi {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-chinh);
  color: var(--mau-chinh);
  font-weight: 800;
  transition: var(--chuyen-tiep);
  padding: 4px 2px;
}

body.man_hinh_doc .muc_nav_duoi:active {
  transform: scale(0.9);
  opacity: 0.7;
}

body.man_hinh_doc .muc_nav_duoi.hoat_dong {
  color: var(--mau-chinh);
}

body.man_hinh_doc .bieu_tuong_nav {
  font-size: 20px;
  line-height: 1;
}

body.man_hinh_doc .ten_nav {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

/* Danh má»¥c mobile */
body.man_hinh_doc .man_hinh_danh_muc {
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 14px;
}

body.man_hinh_doc .dau_danh_muc {
  padding: 0;
  margin-bottom: 12px;
  border-bottom: 0;
}

body.man_hinh_doc .nhan_danh_muc {
  font-size: 11px;
}

body.man_hinh_doc .tieu_de_danh_muc {
  font-size: 20px;
  line-height: 1.15;
}

body.man_hinh_doc .luoi_danh_muc {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

body.man_hinh_doc .the_danh_muc {
  aspect-ratio: auto;
  width: 100%;
  min-height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px 10px;
  border: 1px solid #b9dfd3;
  border-radius: 12px;
  background: #e6f4f1;
  box-shadow: none;
}

body.man_hinh_doc .bieu_tuong_danh_muc {
  display: none;
}

body.man_hinh_doc .ten_danh_muc {
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
}

body.man_hinh_doc .mo_ta_danh_muc {
  display: none;
}

/* áº¨n ná»™i dung desktop trÃªn mÃ n hÃ¬nh dá»c */
body.man_hinh_doc .chi_desktop {
  display: none !important;
}

/* áº¨n header/nav mobile trÃªn mÃ n hÃ¬nh ngang */
body.man_hinh_ngang .thanh_tren_mobile {
  display: none;
}

body.man_hinh_ngang .thanh_duoi_mobile {
  display: none;
}

body.man_hinh_ngang .chi_mobile {
  display: none !important;
}

/* ===== CHáº¾ Äá»˜ MÃ€N HÃŒNH Dá»ŒC (KHÃ”NG DÃ™NG MEDIA QUERY) ===== */

/* Portrait: list-row card hiá»‡n Ä‘áº¡i - chá»‰ cho card thÆ°á»ng, KHÃ”NG Ã¡p vÃ o topic */
body.man_hinh_doc .the_nut:not(.the_nut_topic) {
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
  gap: 0;
  min-height: 62px;
  border-radius: 14px;
  border-left: none;
  position: relative;
}

body.man_hinh_doc .the_nut:not(.the_nut_topic)::after {
  content: 'â€º';
  font-size: 22px;
  color: var(--chu-nhe);
  flex-shrink: 0;
  margin-left: 4px;
  line-height: 1;
}

body.man_hinh_doc .the_nut:not(.the_nut_topic) .dau_nut {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex: 1;
  margin-bottom: 0;
}

body.man_hinh_doc .the_nut:not(.the_nut_topic) .bieu_tuong_nut {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--mau-chinh-nhat);
  border-radius: 12px;
  font-size: 24px;
  flex-shrink: 0;
}

body.man_hinh_doc .the_nut:not(.the_nut_topic) .chu_nut {
  flex: 1;
  gap: 2px;
}

body.man_hinh_doc .the_nut:not(.the_nut_topic) .ten_nut {
  font-size: var(--font-co-lon);
  font-weight: 700;
  line-height: 1.3;
}

body.man_hinh_doc .the_nut:not(.the_nut_topic) .mo_ta_nut {
  font-size: var(--font-co-nho);
  color: var(--chu-nhe);
  line-height: 1.4;
}

/* Topic card: giá»¯ layout gá»‘c (dá»c, áº£nh trÃªn) */
body.man_hinh_doc .the_nut_topic {
  flex-direction: column;
  padding: 0;
  min-height: unset;
  border-radius: var(--goc-lon);
  overflow: hidden;
}

body.man_hinh_doc .the_nut_topic::after {
  display: none;
}

body.man_hinh_doc .the_nut_topic .anh_topic {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

body.man_hinh_doc .the_nut_topic .noi_dung_nut_topic {
  padding: var(--khoang-md);
}

body.man_hinh_doc .the_nut_topic .dau_nut {
  flex-direction: row;
  align-items: center;
  gap: var(--khoang-sm);
  margin-bottom: 4px;
}

body.man_hinh_doc .the_nut_topic .bieu_tuong_nut {
  width: unset;
  height: unset;
  min-width: unset;
  background: none;
  border-radius: 0;
  font-size: 22px;
}

body.man_hinh_doc .the_nut_topic .ten_nut {
  font-size: var(--font-co-lon);
  font-weight: 700;
}

body.man_hinh_doc .the_nut_topic .mo_ta_nut {
  font-size: var(--font-co-nho);
  color: var(--chu-nhe);
}

/* MÃ n hÃ¬nh ngang khÃ´ng hiá»ƒn thá»‹ banner MIT kiá»ƒu poster Ä‘á»ƒ trÃ¡nh vá»¡ bá»‘ cá»¥c */
body.man_hinh_ngang .banner_lich_mit_doc {
  display: none;
}

/* Sub-screen: dá»c dÃ¹ng bottom sheet */
body.man_hinh_doc .hop_popup {
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  border-radius: 0;
  transform: translateY(110%);
}

body.man_hinh_doc .lop_phu_popup.hien .hop_popup {
  transform: translateY(0);
}

body.man_hinh_doc .dau_man_hinh_phu {
  min-height: 50px;
  padding: 12px 52px 12px 14px;
}

body.man_hinh_doc .dau_man_hinh_phu::before {
  display: none;
}

body.man_hinh_doc .noi_dung_man_hinh_phu {
  padding: 8px 10px 14px;
}

/* Banner Ä‘áº§u trang MIT giá»‘ng máº«u */
body.man_hinh_doc .banner_lich_mit_doc {
  background: linear-gradient(155deg, #ffffff 0%, #f7fffc 100%);
  border: 1px solid #d9efe8;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

body.man_hinh_doc .hang_thuong_hieu_lich {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

body.man_hinh_doc .thuong_hieu_chu {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
}

body.man_hinh_doc .logo_vung_lich {
  width: 54px;
  height: 30px;
  object-fit: contain;
}

body.man_hinh_doc .hang_tieu_de_lich {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body.man_hinh_doc .tieu_de_lon_lich {
  font-size: clamp(24px, 5.8vw, 44px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-weight: 900;
  color: #025b48;
}

body.man_hinh_doc .the_thang_lich {
  flex-shrink: 0;
  background: linear-gradient(180deg, #0b8a63, #046a4f);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 8px;
}

/* Card MIT dá»c: layout tá»‘t hÆ¡n */
body.man_hinh_doc .the_lich_mit {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1.5px solid #b9dfd3;
  box-shadow: none;
  overflow: hidden;
}

body.man_hinh_doc .dau_the_lich {
  width: 100%;
  min-width: unset;
  padding: 10px 16px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #025b48 0%, #047a60 100%);
}

body.man_hinh_doc .so_thu_tu_lich {
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

body.man_hinh_doc .van_phong_lich {
  font-size: 13px;
  margin-top: 0;
  letter-spacing: 0.05em;
  font-weight: 700;
}

body.man_hinh_doc .hang_ngay_lich {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-wrap: unset;
}

body.man_hinh_doc .o_ngay_lich {
  min-width: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #dce8e3;
  border-right: 1px solid #dce8e3;
}

body.man_hinh_doc .o_ngay_lich:nth-child(2n) {
  border-right: none;
}

body.man_hinh_doc .o_ngay_lich:nth-last-child(-n+2) {
  border-bottom: none;
}

body.man_hinh_doc .icon_lich {
  font-size: 16px;
  margin-bottom: 1px;
}

body.man_hinh_doc .nhan_lich {
  font-size: 9px;
  line-height: 1.2;
}

body.man_hinh_doc .gia_tri_lich {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  word-break: break-word;
  hyphens: auto;
}

body.man_hinh_doc .hang_meta_lich {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  background: #fbfefe;
  border-top: 1px solid #dce8e3;
  gap: 8px 12px;
  padding: 6px 10px;
}

body.man_hinh_doc .hang_meta_lich span {
  width: auto;
  border-right: none;
  border-bottom: none;
  margin-right: 0;
  padding: 2px 0;
  font-size: 11px;
  line-height: 1.4;
}

body.man_hinh_doc .hang_meta_lich span:last-child {
  border-right: none;
}

/* Profile grid: 1 cá»™t trÃªn portrait */
body.man_hinh_doc .profile_grid {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 12px !important;
}

body.man_hinh_doc .nhan_het_han {
  font-size: 9px;
  padding: 2px 6px;
}

body.man_hinh_doc .the_lich_het_han {
  opacity: 0.55;
  filter: grayscale(25%);
}

body.man_hinh_doc .khung_luu_y_mit {
  margin-top: 10px;
  padding: 10px 12px;
}

body.man_hinh_doc .tieu_de_luu_y_mit {
  font-size: 14px;
}

body.man_hinh_doc .mo_ta_luu_y_mit {
  font-size: 12px;
}

body.man_hinh_doc .danh_sach_luu_y_mit li {
  font-size: 12px;
  line-height: 1.45;
  padding: 9px 10px 9px 38px;
}

body.man_hinh_doc .danh_sach_luu_y_mit li::before {
  width: 20px;
  height: 20px;
  font-size: 11px;
  left: 10px;
}

body.man_hinh_doc .hang_tab_lich {
  margin-bottom: 8px;
}

body.man_hinh_doc .nut_tab_lich {
  font-size: 16px;
  padding: 8px 12px;
}

body.man_hinh_doc .noi_dung_man_hinh_phu,
body.man_hinh_doc .noi_dung_man_hinh_phu * {
  -webkit-text-size-adjust: 100%;
}

/* ===== CHUYEN NGHIEP MODE - MOBILE OVERRIDES ===== */

body.giao_dien_chuyen_nghiep.man_hinh_doc .thanh_tren_mobile {
  height: calc(64px + var(--safe-top));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: var(--safe-top) 10px 0;
  box-shadow: none;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .vung_logo_mobile {
  min-width: 0;
  gap: 8px;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .logo_mobile {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .ten_app_mobile {
  min-width: 0;
  color: #025b48;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .nut_dang_xuat_mobile {
  min-height: 32px;
  padding: 4px 0;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #025b48;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .noi_dung_chinh {
  padding: 12px;
  padding-top: calc(64px + var(--safe-top) + 12px);
  padding-bottom: calc(var(--cao-bottom-nav) + var(--safe-bottom) + 12px);
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .man_hinh_danh_muc {
  margin: 0;
  padding: 14px;
  border: 1px solid #d8ebe4;
  border-radius: 12px;
  background: #ffffff;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .dau_danh_muc {
  margin-bottom: 12px;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .tieu_de_danh_muc {
  color: #025b48;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .luoi_danh_muc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .the_danh_muc {
  min-width: 0;
  min-height: 82px;
  padding: 10px 12px;
  border: 1px solid #b3d9d0;
  border-radius: 8px;
  background: #e6f4f1;
  box-shadow: none;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .noi_dung_the_danh_muc {
  min-width: 0;
  width: 100%;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .ten_danh_muc {
  display: block;
  width: 100%;
  color: #025b48;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: normal;
  word-break: normal;
}

body.giao_dien_chuyen_nghiep .thanh_tren_mobile,
body.giao_dien_chuyen_nghiep .thanh_duoi_mobile {
  background: #e8fff3;
  border-color: #e2e8f0;
}

body.giao_dien_chuyen_nghiep .logo_mobile {
  width: 40px;
  height: 40px;
}

body.giao_dien_chuyen_nghiep .ten_app_mobile {
  color: #025b48;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.giao_dien_chuyen_nghiep .nut_dang_xuat_mobile {
  color: #025b48;
  font-weight: 900;
}

body.giao_dien_chuyen_nghiep .muc_nav_duoi,
body.giao_dien_chuyen_nghiep .nut_dang_xuat_mobile,
body.giao_dien_chuyen_nghiep .nut_dang_xuat_sidebar {
  border-radius: 8px;
}

body.giao_dien_chuyen_nghiep .the_nut,
body.giao_dien_chuyen_nghiep .nut_popup_muc {
  box-shadow: none;
}

body.giao_dien_chuyen_nghiep .the_nut:hover {
  transform: none;
}

body.giao_dien_chuyen_nghiep .nut_dang_nhap:hover {
  background: #014d3c;
  box-shadow: 0 4px 16px rgba(2, 91, 72, 0.40);
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .muc_section,
body.giao_dien_chuyen_nghiep.man_hinh_doc .man_hinh_danh_muc {
  border-radius: 12px;
  box-shadow: none;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .tieu_de_section {
  min-height: 48px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .the_nut:not(.the_nut_topic) {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid #b3d9d0;
  border-radius: 8px;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .the_nut:not(.the_nut_topic)::after {
  display: none;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .the_nut:not(.the_nut_topic) .ten_nut {
  color: #025b48;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .the_nut:not(.the_nut_topic) .mo_ta_nut {
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

body.giao_dien_chuyen_nghiep.man_hinh_doc .luoi_danh_muc {
  gap: 8px;
}

/* Mobile login scaling (matched to Modular) */
body.giao_dien_chuyen_nghiep.man_hinh_doc #man_hinh_dang_nhap {
  padding: 18px;
}
body.giao_dien_chuyen_nghiep.man_hinh_doc .hop_dang_nhap {
  width: min(420px, 100%);
}
body.giao_dien_chuyen_nghiep.man_hinh_doc .dau_hop_dang_nhap {
  padding: 28px 24px 22px;
}
body.giao_dien_chuyen_nghiep.man_hinh_doc .logo_dang_nhap {
  width: 64px;
  height: 64px;
  max-width: 64px;
}
body.giao_dien_chuyen_nghiep.man_hinh_doc .tieu_de_dang_nhap {
  font-size: 18px;
}
body.giao_dien_chuyen_nghiep.man_hinh_doc .dau_hop_dang_nhap .title-top {
  font-size: 12px;
}
body.giao_dien_chuyen_nghiep.man_hinh_doc .than_hop_dang_nhap {
  padding: 24px;
  gap: 14px;
}
body.giao_dien_chuyen_nghiep.man_hinh_doc .nhom_nhap_lieu input,
body.giao_dien_chuyen_nghiep.man_hinh_doc .nut_dang_nhap {
  min-height: 42px;
}

