/* Class duoc gan boi hide-menu.js sau khi match dung rail item can an */
.vh-hidden {
  display: none !important;
}

/* An cac muc menu doi hoi giay phep tra phi (Business/Scale/Enterprise/Tien ich
   bo sung...) - san pham nay CHI chay ban mien phi (CE), khong bao gio nhap
   license key nen cac muc nay chi hien thi nhung bam vao la loi "requires an
   Enterprise license". Dung selector cau truc (class co dinh), khong dua vao
   text nhan (label doi theo ngon ngu) hay ten badge (doi theo plan).
   Da verify that tren production: bat ca workspace sidebar ("Nhom"/Teams) lan
   Bang quan tri (SSO, SCIM, Kiem toan, Gan thuong hieu rieng). */
.nc-sidebar-menu-item:has(.nc-upgrade-badge),
li.nc-menu-item:has(.nc-upgrade-badge) {
  display: none !important;
}

/* Nut "Them cac nhom" (Add Teams) tren man Moi thanh vien - lien quan tinh
   nang Nhom (Teams) da an o tren, ban than nut nay khong gan badge nen khong
   khop rule tren. An rieng bang data-testid on dinh. */
[data-testid="nc-add-teams-btn"] {
  display: none !important;
}

/* Tab "Kiem toan" / "Nhom" trong Cai dat khong gian lam viec - cung la tinh
   nang tra phi nhung nam trong .ant-tabs-tab (Ant Design tabs), khong phai
   sidebar/menu nen 2 rule tren khong khop. Da verify that tren production co
   2 bien the: 1 co .nc-upgrade-badge day du (tab Nhom), 1 chi co icon lap
   lanh nho khong co badge wrapper (tab Kiem toan o vi tri "Cai dat" chinh) -
   nen dung ca selector theo id (rc-tabs-N-tab-audits/teams, id nay theo
   feature key co dinh, khong doi theo ngon ngu/vi tri tab). */
.ant-tabs-tab:has(.nc-upgrade-badge),
.ant-tabs-tab:has([id$="-tab-audits"]),
.ant-tabs-tab:has([id$="-tab-teams"]) {
  display: none !important;
}

/* ===== Round 2 audit (2026-09-15) - xem docs/PLAN.md / TEST_LOG cho chi tiet ===== */

/* Cai dat khong gian lam viec > Bao mat: "Yeu cau xac thuc hai yeu to" (2FA bat
   buoc) gan nhan Scale, toggle da bi disabled san (khong bam duoc) nhung van
   hien badge nang cap - la 1 dang "tinh nang trung bay" khong hoat dong that.
   .nc-settings-item-card la wrapper chung cho tung dong setting dang the trong
   toan bo khu vuc Cai dat (workspace/base), :has(.nc-upgrade-badge) dam bao chi
   an dung the co gan nhan tra phi, khong an nham cac setting mien phi khac. */
.nc-settings-item-card:has(.nc-upgrade-badge) {
  display: none !important;
}

/* Man hinh "Tao moi" (overview) cua 1 co so: the "Tao ra Bang dieu khien"
   (Dashboard) va "Dong bo du lieu" (Sync) gan nhan Business, bam vao se hien
   modal doi nhap khoa giay phep. Ca 2 la con truc tiep cua .nc-overview-actions
   (luoi cac hanh dong), khong co data-testid rieng nen dung selector cau truc
   scoped chat vao container nay (khong anh huong cac the tu do/mien phi khac
   nhu "Tao bang moi", "Nhap khau Du lieu", "Ket noi du lieu ben ngoai"). */
.nc-overview-actions > div:has(.nc-upgrade-badge) {
  display: none !important;
}

/* Dropdown "Tao moi" (bam nut + canh ten bang/co so): muc "Bang dieu khien"
   (Dashboard) va toan bo submenu "Dong bo" (Sync, gom ca "Table sync" va
   "Integration sync" ben trong) chi co 1 icon lap lanh nho, KHONG boc trong
   .nc-upgrade-badge (giong dung mau hinh tab "Kiem toan" da phat hien truoc
   day). Da bam thu ca 2: deu hien modal "Tinh nang Business... Nhap khoa giay
   phep de mo khoa tinh nang nay" / "...to use NocoDB Sync". Dung data-testid
   on dinh (khong doi theo ngon ngu). */
[data-testid="create-new-dashboard"],
[data-testid="create-new-sync"] {
  display: none !important;
}

/* Menu "Tao mot cai nhin" (tao View moi) trong 1 bang: "Danh sach" (List),
   "Dong thoi gian" (Timeline), "Gantt" cung chi co icon lap lanh nho, khong
   badge wrapper. Da bam thu Gantt -> modal "Tinh nang Business... Nhap khoa
   giay phep cua ban to use gantt view". Grid/Mau don/Bo suu tap/Kanban/Lich/
   Ban do va "Thu muc che do xem" (chi la nut tao thu muc, khong tra phi) KHONG
   nam trong danh sach nay nen khong bi anh huong. */
[data-testid="sidebar-view-create-list"],
[data-testid="sidebar-view-create-timeline"],
[data-testid="sidebar-view-create-gantt"] {
  display: none !important;
}

/* Nut "Extensions" (Tien ich mo rong) tren topbar cua man Du lieu - bam vao la
   hien thang modal doi giay phep Business kem nut "Nhap giay phep" (chinh la
   luong nhap license key ma san pham nay cam tuyet doi). Khong co cach nao
   dung duoc trong CE nen an luon nut kich hoat, khong chi an badge. */
[data-testid="nc-topbar-extension-btn"] {
  display: none !important;
}

/* Tab "Migrate" trong Cai dat co so (muc "Chung" > Migrate): toan bo noi dung
   tab chi la 1 form "Migrate Data To NocoDB Cloud" - tuc la dua nguoi dung
   CHUYEN DU LIEU SANG ban NocoDB Cloud tra phi. Day la 1 upsell nguyen tab,
   khong phai 1 tinh nang mien phi bi khoa 1 phan nen tab nay khong gan badge -
   an theo data-testid on dinh cua chinh tab. */
[data-testid="migrate-tab"] {
  display: none !important;
}

/* Cai dat co so > Chung > "Loai co so": lua chon "Rieng tu" (Private) gan nhan
   Enterprise, chon vao khong co hieu luc that trong CE. Scoped vao dung
   .nc-base-access-radio-group (radio group rieng cua man hinh nay) de khong
   an nham cac radio/checkbox Enterprise khac (neu co) o noi khac trong app. */
.nc-base-access-radio-group .ant-radio-wrapper:has(.nc-upgrade-badge) {
  display: none !important;
}

/* Sidebar duoi cung khi mo 1 co so: khoi "Try NocoDB Cloud" moi nguoi dung
   dang ky tai khoan NocoDB Cloud (SaaS tra phi) - la 1 upsell hien dien ro
   rang (khong phai tinh nang bi khoa), nam trong .nc-sidebar-bottom-section.
   Dung selector theo href thuc te cua link (on dinh, khong doi theo ngon ngu
   hay ban dich, khac voi dua vao text "Try NocoDB Cloud"). */
.nc-sidebar-bottom-section:has(a[href*="app.nocodb.com"]) {
  display: none !important;
}
