/* B7B demo skin · navy · gold · pearl (ticket 86a45007 · refs: CTV and Owner mockups of 07/11).
   Presentation only: colours, shape, layout, illustrations. Loaded after vendor/approved-ux.css and app.css; no rule, text of a record or flow is changed here.
   Looked up: typography "Vietnamese Friendly" (Be Vietnam Pro) · colour "Fintech/Crypto" gold-on-navy trust palette. Gold is used for decoration and borders only: text on white is navy. */
:root { --b7-navy: #0a1a3f; --b7-navy2: #12306f; --b7-navy3: #1a4296; --b7-gold: #d6a233; --b7-gold-l: #f3d98a; --b7-pearl: #eef3fb; --b7-card: #ffffff; --b7-ink: #0f2149; --b7-muted: #46567c; --b7-line: #d3dcee; --b7-soft: #e3ebf8; --b7-shadow: 0 8px 22px rgba(10, 26, 63, .12); }
body { background: var(--b7-pearl); }
#sim-suite { --ui-accent: var(--b7-navy3); --ui-bg: var(--b7-pearl); --ui-ink: var(--b7-ink); --ui-line: var(--b7-line); --ui-muted: var(--b7-muted); --ui-paper: var(--b7-card); --ui-soft: var(--b7-soft); color: var(--b7-ink); background: var(--b7-pearl); font-size: 16px; max-width: 1280px; box-shadow: 0 0 0 1px var(--b7-line); }
#sim-suite :focus-visible { outline: 3px solid var(--b7-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { #sim-suite * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* ---- Per-screen palettes of the approved snapshot, re-pointed to the skin ---- */
#sim-suite #sim-shop-demo { --s-bg: var(--b7-pearl); --s-paper: var(--b7-card); --s-ink: var(--b7-ink); --s-muted: var(--b7-muted); --s-line: var(--b7-line); --s-accent: var(--b7-navy2); --s-on: #fff; --s-soft: var(--b7-soft); border-color: transparent; border-radius: 0; background: var(--b7-pearl); }
#sim-suite #sim-content-studio { --sc-bg: var(--b7-pearl); --sc-paper: var(--b7-card); --sc-ink: var(--b7-ink); --sc-muted: var(--b7-muted); --sc-line: var(--b7-line); --sc-accent: var(--b7-navy2); --sc-soft: var(--b7-soft); border-radius: 0; }
#sim-suite #nh-demo { --nh-bg: var(--b7-pearl); --nh-paper: var(--b7-card); --nh-ink: var(--b7-ink); --nh-muted: var(--b7-muted); --nh-line: var(--b7-line); --nh-accent: var(--b7-navy2); --nh-soft: var(--b7-soft); border-radius: 0; border-color: transparent; }
#sim-suite #trung-ledger { --bg: var(--b7-pearl); --paper: var(--b7-card); --ink: var(--b7-ink); --muted: var(--b7-muted); --line: var(--b7-line); --accent: var(--b7-navy2); --soft: var(--b7-soft); }
#sim-suite #ha-period { --hp-bg: var(--b7-pearl); --hp-paper: var(--b7-card); --hp-ink: var(--b7-ink); --hp-soft: var(--b7-muted); --hp-line: var(--b7-line); --hp-brand: var(--b7-navy2); --hp-action-ink: #fff; --hp-tint: var(--b7-soft); }

/* ---- App bar: navy with a gold sweep (mockup header) ---- */
#sim-suite .ui-appbar { position: relative; background: linear-gradient(100deg, var(--b7-navy) 0%, var(--b7-navy2) 100%); border-bottom: 0; padding: 14px 24px 18px; color: #fff; }   /* KHÔNG cắt ở đây: menu "Tài khoản" (Đổi mật khẩu, Đăng xuất) là khối con của thanh, cắt thanh là mất hai nút. Nét trang trí tự cắt lấy ở ::after. */
#sim-suite .ui-appbar::after { content: ''; position: absolute; left: -2%; right: -2%; bottom: -14px; height: 18px; border-radius: 50%; border-top: 2px solid var(--b7-gold); opacity: .9; pointer-events: none; clip-path: inset(0 2% 14px 2%); }   /* cắt đúng phần nét cong thò ra ngoài thanh (14px dưới, 2% hai bên): nhìn y như cũ, nhưng không cắt nhầm menu */
#sim-suite .ui-brand strong { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
#sim-suite .ui-brand small { color: #dbe5fb; font-size: 14px; }
#sim-suite .ui-brand > div:last-child { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 12px; }
#sim-suite .ui-brandmark img { border-radius: 10px; background: #fff; padding: 2px; }
#sim-suite .ui-role, #sim-suite .ui-role-switch > summary { color: #e8eefc; font-size: 14px; }
#sim-suite .ui-role-switch .ui-role-picker { color: var(--b7-ink); border-radius: 14px; box-shadow: var(--b7-shadow); }
#sim-suite .jn-bell { background: #fff; border: 2px solid var(--b7-gold-l); color: var(--b7-navy); border-radius: 999px; font-size: 14px; font-weight: 600; min-height: 44px; padding: 8px 14px; }
#sim-suite .jn-count { background: var(--b7-gold); color: var(--b7-navy); }
#sim-suite .env-banner { background: var(--b7-soft); color: var(--b7-navy); border-bottom: 1px solid var(--b7-line); font-size: 13px; padding: 14px 20px 6px; }

/* ---- Buttons: navy pill with a gold ring (mockup "Bắt đầu") ---- */
#sim-suite .j-card .j-primary, #sim-suite #j-next, #sim-suite .j-nav button[aria-pressed=true], #sim-suite #sim-shop-demo .s-primary, #sim-suite .primary, #sim-suite .nh-primary, #sim-suite .mr-primary,
#sim-suite #sim-content-studio .primary, #sim-suite .j-card .primary, #sim-suite #ha-period .hp-main:not(.hp-secondary), #sim-suite .jn-push button:first-child {
  background: linear-gradient(180deg, var(--b7-navy3), var(--b7-navy)); color: #fff; border: 2px solid var(--b7-gold); border-radius: 999px; font-weight: 700; box-shadow: 0 3px 10px rgba(10, 26, 63, .25); }
#sim-suite .j-card button:not(.j-primary):not(.primary), #sim-suite #sim-shop-demo button:not(.s-primary):not(.s-usp-choice):not(.s-start-guide), #sim-suite .jn-item { border-radius: 12px; }
#sim-suite button:disabled { opacity: .5; }
#sim-suite input, #sim-suite select, #sim-suite textarea { border-color: #aebbd9; }
#sim-suite .j-card, #sim-suite .nh-card, #sim-suite #trung-ledger .card { border-radius: 18px; border-color: var(--b7-line); box-shadow: var(--b7-shadow); }
#sim-suite .j-card .j-amount { color: var(--b7-navy2); }
#sim-suite .tag, #sim-suite .nh-state { border-radius: 999px; }

/* ---- Main menus: web = a navy strip with a gold underline; phone = bottom bar ---- */
#sim-suite #ui-ctv-nav { background: var(--b7-navy2); border-bottom: 0; padding: 18px 16px 4px; gap: 4px; display: flex; justify-content: center; flex-wrap: wrap; }
#sim-suite #ui-ctv-nav button { background: transparent; color: #e8eefc; border-radius: 0; border-bottom: 3px solid transparent; font-size: 15px; font-weight: 500; padding: 8px 18px; min-width: 44px; }
#sim-suite #ui-ctv-nav button[aria-pressed=true] { background: transparent; color: #fff; font-weight: 700; border-bottom-color: var(--b7-gold); }
#sim-suite #ui-ctv-nav button svg { width: 20px; height: 20px; }
#sim-suite #af-nam-nav { background: var(--b7-navy2); border-bottom: 0; padding: 18px 24px 4px; gap: 6px; flex-wrap: wrap; }
#sim-suite #af-nam-nav button { color: #e8eefc; padding: 8px 14px; border-bottom: 3px solid transparent; font-size: 15px; }
#sim-suite #af-nam-nav button[aria-pressed=true] { color: #fff; font-weight: 700; border-bottom-color: var(--b7-gold); background: transparent; }
#sim-suite :is(#uf-nav, #uf-customer-nav) { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 0; margin-top: 14px; }
#sim-suite :is(#uf-nav, #uf-customer-nav) button { border: 1px solid var(--b7-line); border-radius: 999px; background: #fff; color: var(--b7-navy); padding: 8px 16px; min-height: 44px; font-size: 15px; text-align: center; }
#sim-suite :is(#uf-nav, #uf-customer-nav) button[aria-pressed=true] { background: var(--b7-navy2); color: #fff; border-color: var(--b7-gold); font-weight: 700; }
#sim-suite #uf-nav { display: flex; }

/* ---- CTV home (mockup: hero, two big tiles, three-step journey, "Bắt đầu") ---- */
#sim-suite #sim-shop-demo main { padding: 26px 24px 32px; gap: 20px; }
#sim-suite #sim-shop-demo .s-hero { text-align: center; }
#sim-suite #sim-shop-demo .s-hero h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; color: var(--b7-navy); }
#sim-suite #sim-shop-demo .s-hero .b7-gold { color: #a87408; }
#sim-suite #sim-shop-demo .s-hero p { font-size: 18px; color: var(--b7-muted); max-width: 640px; margin: 8px auto 0; }
#sim-suite #sim-shop-demo .s-usp-choices { gap: 24px; max-width: 880px; margin: 0 auto; width: 100%; }
#sim-suite #sim-shop-demo .s-usp-choice { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; padding: 16px 16px 20px; min-height: 0; border-radius: 28px; background: radial-gradient(ellipse at 50% 30%, #fff 0%, var(--b7-soft) 100%); border: 1px solid var(--b7-line); color: var(--b7-navy); box-shadow: var(--b7-shadow); }
#sim-suite #sim-shop-demo .s-usp-ai, #sim-suite #sim-shop-demo .s-usp-three { background: radial-gradient(ellipse at 50% 30%, #fff 0%, var(--b7-soft) 100%); border: 1px solid var(--b7-line); color: var(--b7-navy); }
#sim-suite #sim-shop-demo .s-usp-choice[aria-pressed=true] { border: 2px solid var(--b7-gold); background: radial-gradient(ellipse at 50% 30%, #fff 0%, #f9efd2 100%); color: var(--b7-navy); box-shadow: 0 8px 22px rgba(214, 162, 51, .35); }
#sim-suite #sim-shop-demo .s-usp-choice .b7-art { width: min(100%, 230px); height: 150px; grid-row: auto; margin: 0; }
#sim-suite #sim-shop-demo .s-usp-choice strong { font-size: 24px; font-weight: 800; background: #fff; border: 2px solid var(--b7-gold-l); border-radius: 999px; padding: 6px 22px; box-shadow: 0 2px 8px rgba(10, 26, 63, .1); }
#sim-suite #sim-shop-demo .s-usp-choice small { grid-column: auto; font-size: 15px; line-height: 1.5; color: var(--b7-muted); opacity: 1; margin-top: 6px; }
#sim-suite #sim-shop-demo .b7-journey { display: grid; gap: 14px; justify-items: center; max-width: 880px; margin: 0 auto; width: 100%; }
#sim-suite #sim-shop-demo .b7-journey h3 { margin: 0; width: 100%; display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 800; color: var(--b7-navy); }
#sim-suite #sim-shop-demo .b7-journey h3::before, #sim-suite #sim-shop-demo .b7-journey h3::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--b7-gold)); }
#sim-suite #sim-shop-demo .b7-journey h3::after { background: linear-gradient(90deg, var(--b7-gold), transparent); }
#sim-suite #sim-shop-demo .b7-journey ol { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
#sim-suite #sim-shop-demo .b7-journey ol li { position: relative; }
#sim-suite #sim-shop-demo .b7-journey ol li + li::before { content: '›'; position: absolute; left: -22px; top: 50%; transform: translateY(-52%); font-size: 30px; color: var(--b7-navy); }
#sim-suite #sim-shop-demo .b7-journey ol button { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--b7-line); font-size: 20px; font-weight: 700; color: var(--b7-navy); box-shadow: var(--b7-shadow); }
#sim-suite #sim-shop-demo .b7-journey ol svg { width: 36px; height: 36px; flex: none; }
#sim-suite #sim-shop-demo .b7-start { min-width: min(100%, 420px); min-height: 64px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 26px; font-weight: 800; border-radius: 999px; background: linear-gradient(180deg, var(--b7-navy3), var(--b7-navy)); color: #fff; border: 3px solid var(--b7-gold); box-shadow: 0 6px 18px rgba(10, 26, 63, .3); }
#sim-suite #sim-shop-demo .b7-start svg { width: 28px; height: 28px; }
#sim-suite #sim-shop-demo #s-start-guide { display: none; }
#sim-suite #sim-shop-demo .s-searchbox { border-radius: 20px; box-shadow: var(--b7-shadow); }
#sim-suite #sim-shop-demo .s-search-title { color: var(--b7-navy); font-weight: 800; font-size: 18px; }
#sim-suite #sim-shop-demo .s-ai-orb, #sim-suite .sc-mark { background: linear-gradient(135deg, var(--b7-navy3), var(--b7-navy)); color: #fff; border: 1.5px solid var(--b7-gold); }
#sim-suite #sim-shop-demo .s-basic-filter { border-radius: 14px; }
#sim-suite #sim-shop-demo .s-selection { background: var(--b7-navy); color: #fff; border-top: 2px solid var(--b7-gold); }
#sim-suite #sim-shop-demo .s-selection small { color: #dbe5fb; }
#sim-suite #sim-shop-demo .s-selection button:not(.s-primary) { background: #fff; color: var(--b7-navy); border-color: #fff; }
#sim-suite #sim-shop-demo .s-selection .s-primary { border-color: var(--b7-gold); }
#sim-suite #sim-shop-demo .s-grid label > div { border-radius: 16px; }
#sim-suite #sim-shop-demo .s-grid input:checked + div, #sim-suite #sim-shop-demo .s-grid label:has(input:checked) > div { border-color: var(--b7-gold); box-shadow: 0 0 0 3px var(--b7-gold-l); }

/* ---- Owner home: three big tiles + "Cần xử lý" (mockup; shown on the Owner's first page) ---- */
#sim-suite #uf-workspace { padding: 22px 24px 0; }
#sim-suite .uf-heading h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--b7-navy); letter-spacing: -.8px; }
#sim-suite .uf-heading p { font-size: 16px; color: var(--b7-muted); }
#b7-owner-home { display: grid; gap: 18px; margin: 18px 0 6px; }
#b7-owner-home .b7-oh-head { display: flex; justify-content: flex-end; }
#sim-suite .b7-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--b7-gold-l); font-size: 14px; font-weight: 700; color: var(--b7-navy); }
#b7-owner-home .b7-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#b7-owner-home .b7-tile { display: grid; justify-items: center; gap: 4px; padding: 14px 10px 16px; border-radius: 26px; border: 1px solid var(--b7-line); background: radial-gradient(ellipse at 50% 30%, #fff, var(--b7-soft)); box-shadow: var(--b7-shadow); color: var(--b7-navy); min-height: 44px; }
#b7-owner-home .b7-tile .b7-art { width: min(100%, 190px); height: 120px; }
#b7-owner-home .b7-tile strong { font-size: 24px; font-weight: 800; background: #fff; border: 2px solid var(--b7-gold-l); border-radius: 999px; padding: 4px 26px; }
#b7-owner-home .b7-todo { background: #fff; border: 1px solid var(--b7-line); border-radius: 22px; overflow: hidden; box-shadow: var(--b7-shadow); }
#b7-owner-home .b7-todo h3 { margin: 0; padding: 14px 20px; background: linear-gradient(100deg, var(--b7-navy), var(--b7-navy2)); color: #fff; font-size: 22px; font-weight: 800; }
#b7-owner-home .b7-todo ul { list-style: none; margin: 0; padding: 8px 14px; display: grid; gap: 8px; }
#b7-owner-home .b7-todo ul:empty { display: none; }
#b7-owner-home .b7-todo li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--b7-pearl); font-size: 18px; font-weight: 700; color: var(--b7-navy); }
#b7-owner-home .b7-todo li button { min-height: 44px; min-width: 88px; border-radius: 999px; background: var(--b7-navy2); color: #fff; border: 2px solid var(--b7-gold); font-weight: 700; font-size: 16px; padding: 6px 18px; }
#b7-owner-home #b7-todo-empty { margin: 0; padding: 16px 20px; color: var(--b7-muted); font-size: 16px; }
#b7-owner-home #b7-todo-empty[hidden] { display: none; }

/* ---- Phone ---- */
@media (max-width: 760px) {
  #sim-suite .ui-appbar { padding: 12px 14px 16px; }
  #sim-suite .ui-brand strong { font-size: 20px; }
  #sim-suite .ui-brandmark, #sim-suite .ui-brandmark img { width: 38px; height: 38px; }
  #sim-suite .jn-bell { padding: 8px; min-width: 44px; justify-content: center; }
  #sim-suite #ui-ctv-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--b7-navy); border-top: 2px solid var(--b7-gold); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 20px rgba(10, 26, 63, .3); }
  #sim-suite #ui-ctv-nav button { flex-direction: column; gap: 3px; min-height: 58px; padding: 6px 2px; border-bottom: 0; font-size: 12px; line-height: 1.25; border-radius: 12px; }
  #sim-suite #ui-ctv-nav button[aria-pressed=true] { color: var(--b7-gold-l); background: rgba(255, 255, 255, .08); }
  #sim-suite[data-uf-ctv-page] { padding-bottom: 84px; }
  #sim-suite:not(.uf-ctv) { padding-bottom: 0; }
  #sim-suite #sim-shop-demo main { padding: 18px 14px 28px; gap: 16px; }
  #sim-suite #sim-shop-demo .s-hero h2 { font-size: 30px; }
  #sim-suite #sim-shop-demo .s-hero p { font-size: 16px; }
  #sim-suite #sim-shop-demo .s-usp-choices { grid-template-columns: 1fr; gap: 10px; }
  #sim-suite #sim-shop-demo .s-usp-choice { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; justify-items: start; text-align: left; align-items: center; column-gap: 8px; padding: 10px 14px; border-radius: 22px; }
  #sim-suite #sim-shop-demo .s-usp-choice .b7-art { grid-row: 1 / 3; width: 96px; height: 72px; }
  #sim-suite #sim-shop-demo .s-usp-choice strong { grid-column: 2; font-size: 19px; padding: 4px 4px; border: 0; background: transparent; box-shadow: none; }
  #sim-suite #sim-shop-demo .s-usp-choice small { grid-column: 2; font-size: 14px; margin: 0; }
  #sim-suite #sim-shop-demo .b7-journey h3 { font-size: 17px; justify-content: center; text-align: center; }
  #sim-suite #sim-shop-demo .b7-journey h3::before, #sim-suite #sim-shop-demo .b7-journey h3::after { display: none; }
  #sim-suite #sim-shop-demo .b7-journey ol { grid-template-columns: 1fr; gap: 8px; }
  #sim-suite #sim-shop-demo .b7-journey ol li + li::before { display: none; }
  #sim-suite #sim-shop-demo .b7-journey ol button { justify-content: flex-start; padding: 0 20px; min-height: 56px; font-size: 18px; border-radius: 16px; }
  #sim-suite #sim-shop-demo .b7-start { width: 100%; min-height: 60px; font-size: 24px; }
  #sim-suite #sim-shop-demo .s-selection { bottom: 74px; }
  #sim-suite #uf-workspace { padding: 16px 14px 0; }
  #b7-owner-home .b7-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  #b7-owner-home .b7-tile { padding: 8px 4px 10px; border-radius: 18px; }
  #b7-owner-home .b7-tile .b7-art { height: 66px; }
  #b7-owner-home .b7-tile strong { font-size: 16px; padding: 3px 10px; border-width: 1.5px; }
  #b7-owner-home .b7-todo h3 { font-size: 18px; }
  #b7-owner-home .b7-todo li { font-size: 16px; }
}
@media (max-width: 400px) {
  #sim-suite .ui-brand > div:last-child { padding-left: 8px; }
  #sim-suite .ui-brand small { font-size: 12px; }
  #sim-suite #sim-shop-demo .s-usp-choice { grid-template-columns: 84px 1fr; padding: 8px 10px; }
  #sim-suite #sim-shop-demo .s-usp-choice .b7-art { width: 84px; height: 64px; }
  #sim-suite #sim-shop-demo .s-usp-choice strong { font-size: 18px; }
}
#sim-suite #sim-shop-demo .s-hero { display: block; } #sim-suite #sim-shop-demo .s-hero > div { width: 100%; max-width: none; }
#sim-suite #sim-shop-demo .s-hero h2 { max-width: none; margin: 0 auto; } #sim-suite #sim-shop-demo .s-hero p { text-align: center; }
#sim-suite #sim-shop-demo .s-number b, #sim-suite #sim-shop-demo .s-number strong { color: var(--b7-navy3); }
#sim-suite #uf-workspace { display: flex; flex-direction: column; }
#sim-suite #uf-workspace > * { order: 3; } #sim-suite #uf-workspace > .uf-heading { order: 0; } #sim-suite #uf-workspace > #b7-owner-home { order: 1; } #sim-suite #uf-workspace > #uf-nav { order: 2; }
#sim-suite #uf-workspace > #b7-owner-home[hidden] { display: none; }
@media (max-width: 760px) {
  #sim-suite #af-nam-nav { padding: 12px 10px 2px; gap: 0 4px; }
  #sim-suite #af-nam-nav button { padding: 6px 10px; font-size: 14px; min-height: 44px; }
}
/* keep "Bắt đầu" in the first screen of a laptop (1366×768) */
@media (min-width: 761px) {
  #sim-suite #sim-shop-demo main { padding-top: 14px; gap: 12px; }
  #sim-suite #sim-shop-demo .s-hero h2 { font-size: clamp(30px, 3.6vw, 42px); }
  #sim-suite #sim-shop-demo .s-hero p { font-size: 16px; margin-top: 4px; }
  #sim-suite #sim-shop-demo .s-usp-choice { padding: 8px 16px 12px; }
  #sim-suite #sim-shop-demo .s-usp-choice .b7-art { height: 104px; }
  #sim-suite #sim-shop-demo .s-usp-choice strong { font-size: 22px; padding: 4px 20px; }
  #sim-suite #sim-shop-demo .s-usp-choice small { margin-top: 2px; font-size: 14px; }
  #sim-suite #sim-shop-demo .b7-journey { gap: 10px; }
  #sim-suite #sim-shop-demo .b7-journey ol button { min-height: 52px; font-size: 18px; }
  #sim-suite #sim-shop-demo .b7-start { min-height: 56px; font-size: 24px; }
}

/* D7: the notification panel title row keeps a button that opens the bell list; longer tile name wraps */
#b7-owner-home .b7-todo { position: relative; }
#b7-owner-home #b7-todo-all { position: absolute; top: 9px; right: 12px; min-height: 44px; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--b7-navy); border: 2px solid var(--b7-gold-l); font-weight: 700; font-size: 15px; }
#b7-owner-home .b7-tile strong { text-align: center; line-height: 1.25; }
@media (max-width: 760px) { #b7-owner-home .b7-todo h3 { padding-right: 20px; } #b7-owner-home #b7-todo-all { position: static; margin: 8px 14px 0; width: calc(100% - 28px); } #b7-owner-home .b7-tile strong { font-size: 14px; padding: 3px 8px; border-radius: 16px; } }

/* K1 (ticket f5b1ca43): on a phone the first screen must hold the whole "Bắt đầu" button above the fixed bottom menu (66-80 px).
   Cause: hero + two tiles + three stacked journey rows + button was taller than the screen minus the menu (button top 742/766 vs menu top 764/700 at 390x844 / 360x780).
   Fix: the three journey steps sit in ONE row (icon over label) and the spacing is tightened; nothing is hidden and every control keeps a ≥44 px target. */
@media (max-width: 760px) {
  #sim-suite #sim-shop-demo main { padding: 10px 14px 24px; gap: 10px; }
  #sim-suite #sim-shop-demo .s-hero h2 { font-size: 26px; line-height: 1.2; }
  #sim-suite #sim-shop-demo .s-hero p { font-size: 14px; margin-top: 2px; }
  #sim-suite #sim-shop-demo .s-usp-choices { gap: 8px; }
  #sim-suite #sim-shop-demo .s-usp-choice { padding: 6px 12px; grid-template-columns: 84px 1fr; }
  #sim-suite #sim-shop-demo .s-usp-choice .b7-art { width: 84px; height: 60px; }
  #sim-suite #sim-shop-demo .s-usp-choice strong { font-size: 18px; }
  #sim-suite #sim-shop-demo .s-usp-choice small { font-size: 13px; line-height: 1.35; }
  #sim-suite #sim-shop-demo .b7-journey { gap: 8px; }
  #sim-suite #sim-shop-demo .b7-journey h3 { font-size: 15px; }
  #sim-suite #sim-shop-demo .b7-journey ol { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  #sim-suite #sim-shop-demo .b7-journey ol button { flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; min-height: 66px; font-size: 14px; line-height: 1.2; border-radius: 14px; }
  #sim-suite #sim-shop-demo .b7-journey ol svg { width: 30px; height: 30px; }
  #sim-suite #sim-shop-demo .b7-start { min-height: 52px; font-size: 22px; }
}
/* shorter phones (≈ 640 px high): the two sub-lines under the tiles and the hero sentence give way so the button still shows whole; the tile names and every control stay */
@media (max-width: 760px) and (max-height: 700px) {
  #sim-suite #sim-shop-demo .s-hero p, #sim-suite #sim-shop-demo .s-usp-choice small { display: none; }
  #sim-suite #sim-shop-demo .s-usp-choice .b7-art { height: 48px; width: 70px; }
  #sim-suite #sim-shop-demo .s-usp-choice { grid-template-columns: 70px 1fr; }
}
@media (max-width: 760px) and (max-height: 700px) {
  #sim-suite #sim-shop-demo .s-hero h2 { font-size: 22px; }
  #sim-suite #sim-shop-demo main { padding-top: 6px; gap: 8px; }
  #sim-suite #sim-shop-demo .b7-journey ol button { min-height: 60px; }
  #sim-suite #sim-shop-demo .b7-start { min-height: 48px; font-size: 20px; }
}

/* ---- 81-screen integration (ticket 8cc6ac96): the approved screens share one shell ----
   navy header with a gold line · web: left "CÔNG VIỆC" menu · crumb "role · group" · big title · short line · white blocks · one navy primary button.
   The menus are the app's own buttons (Nam, Owner, Trung / Nam-for-Trung); only their place and look change. CTV keeps its top strip and bottom bar (decision D6). */
#sim-suite .b7-crumb { margin: 0; padding: 18px 24px 0; font-size: 15px; font-weight: 700; color: var(--b7-muted); }
#sim-suite .b7-crumb[hidden] { display: none; }
@media (max-width: 900px) { #sim-suite .b7-crumb { padding: 14px 14px 0; } }
@media (min-width: 901px) {
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) { display: grid; grid-template-columns: 248px minmax(0, 1fr); grid-auto-flow: row dense; align-items: start; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > * { grid-column: 2; min-width: 0; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > :is(.ui-appbar, .env-banner, .practice-bar) { grid-column: 1 / -1; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > #uf-workspace { display: contents; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > #uf-workspace > * { grid-column: 2; min-width: 0; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > #uf-workspace > .uf-heading { padding: 4px 24px 0; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > #uf-workspace > :not(.uf-heading):not(#uf-nav):not(#b7-owner-home) { margin-left: 24px; margin-right: 24px; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > #uf-workspace > #b7-owner-home { margin: 0 24px; }
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > :is(#af-nam-nav, #uf-workspace > #uf-nav),
  #sim-suite:is(.uf-owner, .uf-accounting) > #uf-workspace > #uf-nav:not([hidden]),
  #sim-suite:is(.uf-owner, .uf-accounting, .uf-nam) > #af-nam-nav:not([hidden]) {
    grid-column: 1; grid-row: span 400; align-self: stretch; display: flex; flex-direction: column; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 18px 12px 24px; background: var(--b7-navy2); border: 0; border-bottom: 0; border-radius: 0; }
  #sim-suite :is(#af-nam-nav, #uf-nav):not([hidden])::before { content: 'CÔNG VIỆC'; display: block; padding: 4px 14px 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #c8d4f0; }
  #sim-suite :is(#af-nam-nav, #uf-nav) button { width: 100%; justify-content: flex-start; text-align: left; border: 0; border-left: 4px solid transparent; border-radius: 10px; background: transparent; color: #e8eefc; padding: 10px 14px; min-height: 44px; font-size: 15px; font-weight: 500; }
  #sim-suite :is(#af-nam-nav, #uf-nav) button[aria-pressed=true] { background: rgba(255, 255, 255, .12); color: #fff; border-left-color: var(--b7-gold); font-weight: 700; }
  /* Nam acting for Trung shows two menus: the accounting one goes back to a row of chips in the content column */
  #sim-suite:has(#af-nam-nav:not([hidden])) #uf-workspace > #uf-nav:not([hidden]) { grid-column: 2; grid-row: auto; display: flex; flex-direction: row; flex-wrap: wrap; background: transparent; padding: 0; margin: 14px 24px 0; align-self: auto; }
  #sim-suite:has(#af-nam-nav:not([hidden])) #uf-workspace > #uf-nav:not([hidden])::before { display: none; }
  #sim-suite:has(#af-nam-nav:not([hidden])) #uf-workspace > #uf-nav button { width: auto; border: 1px solid var(--b7-line); border-left-width: 1px; border-radius: 999px; background: #fff; color: var(--b7-navy); }
  #sim-suite:has(#af-nam-nav:not([hidden])) #uf-workspace > #uf-nav button[aria-pressed=true] { background: var(--b7-navy2); color: #fff; border-color: var(--b7-gold); }
  #sim-suite .b7-crumb { padding: 20px 24px 0; }
}

/* ---- Sửa gộp 81 màn (ticket 22897dd6): Nam's waiting list (#19), stock list with Hộp/Ngăn (#22), the CTV's three milestones (OPEN-7) ---- */
#sim-suite .nh-queue { display: grid; gap: 10px; margin: 14px 0; padding: 16px; background: #fff; border: 1px solid var(--b7-line); border-radius: 18px; box-shadow: var(--b7-shadow); }
#sim-suite .nh-queue h3 { margin: 0; font-size: 20px; font-weight: 800; color: var(--b7-navy); }
#sim-suite .nh-queue ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#sim-suite .nh-queue li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--b7-line); border-radius: 14px; background: var(--b7-pearl); }
#sim-suite .nh-queue li > div { display: grid; gap: 2px; min-width: 0; }
#sim-suite .nh-queue li strong { font-size: 17px; color: var(--b7-navy); }
#sim-suite .nh-queue li span { font-size: 14px; color: var(--b7-muted); overflow-wrap: anywhere; }
#sim-suite .nh-queue li button { min-height: 44px; min-width: 120px; padding: 6px 16px; border-radius: 999px; background: var(--b7-navy2); color: #fff; border: 2px solid var(--b7-gold); font-weight: 700; font-size: 15px; }
#sim-suite .nh-queue p { margin: 0; font-size: 15px; }
#sim-suite #stock-list { display: grid; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--b7-line); }
#sim-suite #stock-list h3 { margin: 0; font-size: 20px; color: var(--b7-navy); }
#sim-suite #stock-list table { width: 100%; border-collapse: collapse; font-size: 15px; }
#sim-suite #stock-list th, #sim-suite #stock-list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--b7-line); white-space: nowrap; }
#sim-suite #stock-list td:last-child { white-space: normal; }
#sim-suite #stock-list #stock-list-more { justify-self: start; min-height: 44px; border-radius: 999px; padding: 6px 18px; }
#sim-suite .j-miles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#sim-suite .j-miles li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--b7-line); background: var(--b7-pearl); font-size: 14px; font-weight: 700; color: var(--b7-muted); line-height: 1.3; }
#sim-suite .j-miles li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8a98b8; box-sizing: border-box; }
#sim-suite .j-miles li[data-state="done"] { background: #eaf6ee; border-color: #9fceb0; color: #14502f; }
#sim-suite .j-miles li[data-state="done"]::before { border-color: #1d7a45; background: #1d7a45 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
#sim-suite .j-miles li[data-state="unknown"] { font-weight: 500; }
@media (max-width: 760px) { #sim-suite .j-miles { grid-template-columns: 1fr; } #sim-suite .nh-queue li { flex-wrap: wrap; } #sim-suite .nh-queue li button { width: 100%; } }

/* ---- Thống kê Nam (mẫu nam/man-03): three cream cards with a gold edge, one filter button ---- */
#sim-suite #nam-stats { max-width: 1100px; margin: 16px 24px; }
#sim-suite #nam-stats h2 { margin: 0; font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; color: var(--b7-navy); }
#sim-suite .ns-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
#sim-suite .ns-filter label { display: grid; gap: 6px; font-size: 14px; min-width: 180px; }
#sim-suite .ns-filter button { min-height: 48px; padding: 8px 26px; }
#sim-suite .ns-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#sim-suite .ns-card { display: grid; gap: 6px; align-content: start; min-height: 130px; padding: 16px 18px; background: #fff8e8; border: 1px solid #ecd9a6; border-radius: 18px; }
#sim-suite .ns-card span { font-size: 16px; font-weight: 700; color: var(--b7-navy); }
#sim-suite .ns-card strong { font-size: 40px; line-height: 1.1; font-weight: 800; color: var(--b7-navy); font-variant-numeric: tabular-nums; }
#sim-suite .ns-card small { font-size: 14px; color: var(--b7-muted); line-height: 1.4; }
@media (max-width: 760px) { #sim-suite #nam-stats { margin: 12px 14px; } #sim-suite .ns-cards { grid-template-columns: 1fr; } #sim-suite .ns-filter label, #sim-suite .ns-filter button { width: 100%; } #sim-suite .ns-card { min-height: 0; } }

/* #45 · recorded figures of an order, one per line inside the ledger note cell / mobile card */
#sim-suite .tl-facts { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 12px; font-weight: 600; }
#sim-suite .tl-fact { white-space: nowrap; }

/* Owner report: scroll targets stay clear of the sticky practice bar; the way back to Tổng quan */
#sim-suite #ow-report, #sim-suite #jm-owner, #sim-suite #b7-owner-home { scroll-margin-top: calc(var(--b7-sticky, 0px) + 8px); }
#sim-suite .ow-back { justify-self: start; min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 2px solid var(--b7-gold); background: #fff; color: var(--b7-navy2); font-weight: 700; margin: 0 0 8px; }
#sim-suite #ow-report:not(.x) .ow-back { display: inline-flex; align-items: center; }

/* ---- Gói nhập lịch sử + thống kê ngày Owner (phiếu a5836910) ---- */
/* Ô "Ngày thực nhận" beside the buttons that confirm money. The static ones show only while their button is visible. */
#sim-suite .rcv-day { display: grid; gap: 4px; margin: 10px 0 8px; font-weight: 600; color: var(--b7-ink); max-width: 320px; }
#sim-suite .rcv-day[hidden] { display: none; }
#sim-suite .rcv-day input[type="date"] { min-height: 44px; font: inherit; padding: 8px 10px; border: 1px solid var(--b7-line); border-radius: 12px; background: #fff; color: var(--b7-ink); }
#sim-suite .rcv-day small { font-weight: 400; color: var(--b7-muted); }
/* Thống kê bán SIM on the Owner's Tổng quan */
#b7-owner-home .b7-stats { background: #fff; border: 1px solid var(--b7-line); border-radius: 22px; box-shadow: var(--b7-shadow); padding: 16px 20px 18px; display: grid; gap: 12px; }
#b7-owner-home .b7-stats-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
#b7-owner-home .b7-stats h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--b7-navy); }
#b7-owner-home .b7-stats-day { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--b7-ink); }
#b7-owner-home .b7-stats-daywrap { display: flex; align-items: center; gap: 8px; }
#b7-owner-home .b7-day-pick { position: relative; display: inline-block; }
#b7-owner-home .b7-day-pick input { color: transparent; -webkit-text-fill-color: transparent; }   /* the browser's own writing of the date (mm/dd or dd/mm) is hidden: the day is shown as dd/mm/yyyy below */
#b7-owner-home .b7-day-pick input::-webkit-datetime-edit { opacity: 0; }
#b7-owner-home .b7-day-text { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; font-weight: 600; font-size: 16px; color: var(--b7-ink); white-space: nowrap; }
#b7-owner-home .b7-today { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--b7-navy); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (min-width: 860px) {   /* wide screens: the label sits to the LEFT of "Ngày" without taking room, so the date box stays where it was (cd4a410) whether the label shows or not */
  #b7-owner-home .b7-stats-daywrap { position: relative; }
  #b7-owner-home .b7-today { position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 8px; }
}
#b7-owner-home .b7-stats-day input { min-height: 44px; font: inherit; padding: 6px 10px; border: 1px solid var(--b7-line); border-radius: 12px; background: #fff; color: var(--b7-ink); }
#b7-owner-home .b7-stats-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
#b7-owner-home .b7-stat { display: grid; gap: 2px; padding: 12px 16px; border-radius: 18px; border: 1px solid var(--b7-line); background: radial-gradient(ellipse at 50% 20%, #fff, var(--b7-soft)); }
#b7-owner-home .b7-stat span { font-size: 14px; color: var(--b7-muted); font-weight: 600; }
#b7-owner-home .b7-stat strong { font-size: 30px; line-height: 1.15; font-weight: 800; color: var(--b7-navy); white-space: nowrap; }   /* a sum is never broken inside its digits */
#b7-owner-home .b7-stat em { font-style: normal; font-size: 13px; color: var(--b7-muted); min-height: 1.2em; }
#b7-owner-home .b7-stats-msg, #b7-owner-home .b7-stats-extra { margin: 0; color: var(--b7-ink); }
#b7-owner-home .b7-stats-msg.b7-err { color: #9c1c1c; font-weight: 600; }
#b7-owner-home .b7-stats-rule { margin: 0; font-size: 13px; color: var(--b7-muted); line-height: 1.45; }
#b7-owner-home #b7-stats-retry { justify-self: start; min-height: 44px; }
/* the receipts of the chosen day */
#b7-owner-home .b7-stats-list { display: grid; gap: 10px; border-top: 1px solid var(--b7-line); padding-top: 12px; }
#b7-owner-home .b7-stats-list-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; }
#b7-owner-home .b7-stats-list h4 { margin: 0; font-size: 17px; color: var(--b7-navy); }
#b7-owner-home .b7-stats-find { display: grid; gap: 2px; font-weight: 600; color: var(--b7-ink); font-size: 13px; }
#b7-owner-home .b7-stats-find input { min-height: 44px; font: inherit; font-weight: 400; font-size: 15px; padding: 6px 10px; border: 1px solid var(--b7-line); border-radius: 12px; background: #fff; color: var(--b7-ink); width: 240px; max-width: 100%; box-sizing: border-box; }
#b7-owner-home #b7-stats-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#b7-owner-home #b7-stats-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 14px; border: 1px solid var(--b7-line); border-radius: 14px; background: var(--b7-soft); }
#b7-owner-home #b7-stats-rows .code { display: block; font-size: 16px; color: var(--b7-navy); overflow-wrap: anywhere; }
#b7-owner-home #b7-stats-rows .meta { display: block; font-size: 13px; color: var(--b7-muted); }
#b7-owner-home #b7-stats-rows .amt { font-size: 18px; font-weight: 800; color: var(--b7-navy); white-space: nowrap; }
#b7-owner-home .b7-stats-none { margin: 0; color: var(--b7-ink); }
@media (max-width: 760px) {
  #b7-owner-home .b7-stats { padding: 14px 14px 16px; border-radius: 18px; }
  #b7-owner-home .b7-stats h3 { font-size: 18px; }
  #b7-owner-home .b7-stat { padding: 10px 12px; }
  #b7-owner-home .b7-stat strong { font-size: 26px; }
  #b7-owner-home .b7-stats-nums { grid-template-columns: minmax(0, 1fr); }   /* one number per row on a phone: 10.000.000 đ in one line */
}
/* Trung: Nhập lịch sử */
#hi-card .hi-note { color: var(--b7-muted); line-height: 1.5; margin: 6px 0; }
#hi-card .hi-form { display: grid; gap: 10px; max-width: min(560px, 100%); margin: 12px 0; }
#hi-card .hi-form label { display: grid; gap: 4px; font-weight: 600; color: var(--b7-ink); }
#hi-card .hi-form input { width: 100%; min-width: 0; box-sizing: border-box; min-height: 44px; font: inherit; padding: 8px 10px; border: 1px solid var(--b7-line); border-radius: 12px; background: #fff; color: var(--b7-ink); }
#hi-card .hi-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#hi-card .hi-actions button { min-height: 44px; }
#hi-card .hi-status { min-height: 1.4em; margin: 6px 0; font-weight: 600; color: var(--b7-ink); }
#hi-card .hi-ok-text, #hi-card .hi-status.hi-ok-text { color: #14532d; } #hi-card .hi-bad-text { color: #9c1c1c; }
#hi-card .hi-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0; }
#hi-card .hi-chip { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--b7-line); border-radius: 14px; background: var(--b7-soft); }
#hi-card .hi-chip span { font-size: 13px; color: var(--b7-muted); } #hi-card .hi-chip strong { font-size: 18px; color: var(--b7-navy); white-space: nowrap; }
#hi-card .hi-chip.hi-wait { border-color: var(--b7-gold); background: #fff8e3; }
#hi-card .hi-problems { border: 1px solid #e3b4b4; background: #fff4f4; border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
#hi-card .hi-problems h5 { margin: 0 0 6px; color: #9c1c1c; } #hi-card .hi-problems ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
#hi-card .hi-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 8px; }
#hi-card .hi-tabs button { min-height: 44px; border-radius: 999px; padding: 6px 14px; border: 1px solid var(--b7-line); background: #fff; color: var(--b7-navy); font-weight: 600; }
#hi-card .hi-tabs button[aria-pressed="true"] { background: var(--b7-navy); color: #fff; border-color: var(--b7-navy); }
#hi-card .hi-table-wrap { max-width: calc(100vw - 60px); overflow-x: auto; border: 1px solid var(--b7-line); border-radius: 14px; -webkit-overflow-scrolling: touch; }
#hi-card .hi-table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; }
#hi-card .hi-table th, #hi-card .hi-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--b7-line); vertical-align: top; }
#hi-card .hi-table th { background: var(--b7-soft); color: var(--b7-navy); white-space: nowrap; }
#hi-card .hi-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 1px solid var(--b7-line); background: #fff; color: var(--b7-navy); }
#hi-card .hi-tag.hi-new { background: #e7f6ec; border-color: #9bd2ae; color: #14532d; } #hi-card .hi-tag.hi-wait { background: #fff8e3; border-color: var(--b7-gold); color: #6b4a00; } #hi-card .hi-tag.hi-bad { background: #fff0f0; border-color: #e3b4b4; color: #9c1c1c; }
#hi-card .hi-rownote { color: var(--b7-muted); }
#hi-card .hi-over { margin-top: 18px; }
@media (max-width: 760px) {   /* the tables of the import screen are cards on a phone: Kết quả and Còn thiếu come first */
  #hi-card .hi-table-wrap { border: 0; overflow: visible; max-width: none; }
  #hi-card .hi-table { min-width: 0; display: block; }
  #hi-card .hi-table thead { display: none; }
  #hi-card .hi-table tbody { display: grid; gap: 10px; }
  #hi-card .hi-table tr { display: grid; gap: 4px; border: 1px solid var(--b7-line); border-radius: 14px; padding: 10px 12px; background: #fff; }
  #hi-card .hi-table td { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 8px; border: 0; padding: 2px 0; overflow-wrap: anywhere; }
  #hi-card .hi-table td::before { content: attr(data-label); color: var(--b7-muted); font-weight: 600; }
  #hi-card .hi-table td[data-label="Kết quả"], #hi-card .hi-table td[data-label="Còn thiếu"] { order: -1; font-weight: 700; }
  #hi-card .hi-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tổng quan (Owner): no description line under the heading */
#sim-suite #uf-hint:empty { display: none; }

/* ---- 81-screen v2 (ticket 6793a047, base c81a5fe): shared fixes ----
   #1: the progress card is one short block (title + SIM on one line, status, history toggle) so the main button comes back into view;
   #19/#21/#22: Nam's screens use the approved crumb/title/line, filter under the three cards, three entries on top of Kho số. */
#sim-suite .b7-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sim-suite #ctv-progress { margin: 10px 24px; padding: 8px 0 10px; gap: 2px 12px; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; }
#sim-suite #ctv-progress h3 { margin: 0; font-size: 16px; line-height: 1.3; }
#sim-suite #ctv-progress-number { font-size: 14px; }
#sim-suite #ctv-progress-current, #sim-suite #ctv-progress details { grid-column: 1 / -1; }
#sim-suite #ctv-progress-current { font-size: 15px; line-height: 1.35; }
#sim-suite #ctv-progress summary { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
@media (max-width: 540px) {
  #sim-suite #ctv-progress { margin: 6px 14px; padding: 6px 0 4px; }
  #sim-suite .env-banner { padding: 6px 14px; font-size: 13px; line-height: 1.3; }
}
#sim-suite .ns-cards + .ns-filter { margin-top: 14px; }
#sim-suite .ns-cards ~ #ns-range-text { margin: 8px 0 0; }
#sim-suite .sk-entry { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
#sim-suite .sk-go { display: grid; gap: 2px; align-content: center; text-align: left; min-height: 64px; padding: 10px 16px; border: 1px solid var(--b7-line); border-radius: 14px; background: #fff; color: var(--b7-navy); font-size: 17px; font-weight: 800; }
#sim-suite .sk-go small { font-size: 14px; font-weight: 700; color: var(--b7-muted); }
#sim-suite .sk-go-main { background: var(--b7-navy); color: #fff; border: 2px solid var(--b7-gold); justify-content: center; text-align: center; }
@media (max-width: 760px) { #sim-suite .sk-entry { grid-template-columns: 1fr; gap: 8px; } }
/* web: the progress card is a single row while the history is closed (title · SIM · status · toggle); open, the history takes the next row */
@media (min-width: 901px) {
  #sim-suite #ctv-progress { grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; padding: 6px 0; }
  #sim-suite #ctv-progress-current { grid-column: auto; }
  #sim-suite #ctv-progress details { grid-column: auto; }
  #sim-suite #ctv-progress details[open] { grid-column: 1 / -1; }
}
/* narrow phones with the progress card: the two sub-lines under the tiles give way (same precedent as the short-phone rule) so the main button clears the bottom bar at scroll 0 */
@media (max-width: 380px) {
  #sim-suite:has(#ctv-progress:not([hidden])) #sim-shop-demo .s-usp-choice small { display: none; }
}
@media (max-width: 380px) {
  #sim-suite:has(#ctv-progress:not([hidden])) #sim-shop-demo .s-hero h2 { font-size: 22px; line-height: 1.15; }
  #sim-suite:has(#ctv-progress:not([hidden])) #sim-shop-demo main { padding-top: 4px; gap: 6px; }
  #sim-suite:has(#ctv-progress:not([hidden])) #sim-shop-demo .s-usp-choices { gap: 6px; }
  #sim-suite:has(#ctv-progress:not([hidden])) #sim-shop-demo .s-usp-choice { padding-top: 2px; padding-bottom: 2px; }
}
/* Kho số entries: beat the section's generic button rule */
#sim-suite #nam-stock #stock-entry .sk-go { display: grid; gap: 2px; align-content: center; justify-items: start; text-align: left; width: 100%; min-height: 64px; padding: 10px 16px; border: 1px solid var(--b7-line); border-radius: 14px; background: #fff; color: var(--b7-navy); font-size: 17px; font-weight: 800; }
#sim-suite #nam-stock #stock-entry .sk-go small { display: block; font-size: 14px; font-weight: 700; color: var(--b7-muted); }
#sim-suite #nam-stock #stock-entry .sk-go.sk-go-main { justify-items: center; text-align: center; background: var(--b7-navy); color: #fff; border: 2px solid var(--b7-gold); }

/* 81-screen v3 · notification list at 323 px: the generic ".j-card button" rule (inline-flex, more specific than .jn-item) had put title, text and time side by side in a row, so the title column was narrow and wrapped word by word; keep the item as a column */
#sim-suite #jn-list .jn-item { display: grid; justify-items: start; justify-content: stretch; text-align: left; gap: 6px; }
#sim-suite #jn-list .jn-item strong, #sim-suite #jn-list .jn-item span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* ---- 81-screen v3.1 · A · CTV "Quầy SIM": both main buttons ("Bắt đầu", "Tìm SIM") reach the first screen ----
   Same blocks, same order, same words; only spacing, type size and arrangement change (the sub-lines under the two tiles are hidden at 380 px and below, as in v2).
   Phone (≤540 px): tighter bars, tiles and steps; the search box is one compact block. Computer (≥901 px): tiles and steps side by side, search button beside the box. */
html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-hero p:empty { display: none; }
@media (max-width: 540px) {
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] .ui-appbar { padding: 8px 12px 12px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] .ui-brandmark, html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] .ui-brandmark img { width: 32px; height: 32px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] .env-banner { padding: 3px 12px; font-size: 11px; line-height: 1.25; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo main { padding: 6px 12px 12px; gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-hero { padding: 2px 0 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-hero h2 { font-size: 20px; line-height: 1.15; margin: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-hero p { font-size: 12px; line-height: 1.3; margin: 2px 0 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choices { gap: 8px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice { padding: 4px 6px 6px; gap: 0; min-height: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice .b7-art { height: 40px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice strong { font-size: 14px; line-height: 1.2; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice small { font-size: 11px; line-height: 1.2; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey h3 { font-size: 12px; margin: 0 0 4px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey ol { gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey ol button { min-height: 44px; padding: 4px 6px; font-size: 12px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #b7-start { min-height: 44px; padding: 6px 12px; font-size: 15px; margin-top: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchbox { padding: 8px 10px; gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-search-title { font-size: 14px; line-height: 1.2; margin: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-ai-label { margin: 0; line-height: 1.2; font-size: 12px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #s-query { min-height: 44px; height: 44px; padding: 6px 8px; font-size: 14px; }
}
@media (min-width: 901px) {
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-top: 8px; padding-bottom: 16px; gap: 10px 24px; align-items: start; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo main > * { grid-column: 1 / -1; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo main > .s-usp-choices { grid-column: 1; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo main > .b7-journey { grid-column: 2; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-hero { padding: 4px 0 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-hero h2 { font-size: 28px; line-height: 1.2; margin: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-hero p { font-size: 14px; line-height: 1.4; margin: 2px 0 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choices { gap: 12px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice { padding: 6px 10px 8px; gap: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice .b7-art { height: 56px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey h3 { font-size: 14px; margin: 0 0 4px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey ol { gap: 10px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey ol button { min-height: 44px; padding: 6px 10px; font-size: 15px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #b7-start { min-height: 48px; margin-top: 8px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchbox { padding: 10px 18px 12px; gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-search-title { margin: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #s-query { min-height: 52px; height: 52px; }
}
@media (max-width: 380px) {
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice { grid-template-columns: 38px minmax(0, 1fr); align-items: center; column-gap: 6px; min-height: 52px; text-align: left; padding: 4px 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice .b7-art { grid-row: 1; grid-column: 1; width: 38px; height: 38px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice strong { grid-row: 1; grid-column: 2; font-size: 13px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice small { display: none; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey h3, html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-ai-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchbox { padding: 4px 10px 6px; gap: 4px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchrow { gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-commandrow { margin: 0; padding-top: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
/* progress card on a phone: title, SIM and the history toggle share the first row; the status line is the second row; the open history takes a third row of full width */
@media (max-width: 540px) {
  html #sim-suite #ctv-progress { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "t n d" "c c c"; align-items: center; padding: 2px 0 6px; }
  html #sim-suite #ctv-progress h3 { grid-area: t; }
  html #sim-suite #ctv-progress #ctv-progress-number { grid-area: n; }
  html #sim-suite #ctv-progress #ctv-progress-current { grid-area: c; grid-column: 1 / -1; }
  html #sim-suite #ctv-progress details { grid-area: d; grid-column: auto; }
  html #sim-suite #ctv-progress details[open] { grid-area: auto; grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 380px) {
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey ol button { min-height: 44px; padding: 2px 4px; gap: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #b7-start { min-height: 44px; margin-top: 4px; padding-top: 4px; padding-bottom: 4px; }
}

/* ---- 81-screen v3.2 · A · the bell keeps one fixed size whatever its unread number, so the top bar never grows ----
   A bell with a number was 71–77 px wide, pushed the brand name onto three lines and made the bar 112 px instead of 66 px (the usual case of a working CTV).
   Now the bell is a 44 px circle and the number is a badge on its corner: the bar is the same height with 0, 1, 80 or 120 unread. */
@media (max-width: 540px) {
  html #sim-suite .jn-bell { position: relative; box-sizing: border-box; width: 44px; min-width: 44px; max-width: 44px; padding: 0; justify-content: center; }
  html #sim-suite .jn-bell .jn-count:not([hidden]) { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; box-sizing: border-box; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; font-size: 11px; line-height: 1; }
}
/* ---- v3.2 · B · phones up to 380 px: smaller bars and a collapsed progress card, same words, same journey ---- */
@media (max-width: 380px) {
  html #sim-suite.uf-ctv .ui-appbar { padding: 6px 10px 10px; }
  html #sim-suite.uf-ctv .ui-brand strong { font-size: 18px; line-height: 1.1; }
  html #sim-suite.uf-ctv .ui-brand small { font-size: 11px; line-height: 1.1; }
  html #sim-suite.uf-ctv .ui-brandmark, html #sim-suite.uf-ctv .ui-brandmark img { width: 30px; height: 30px; }
  html #sim-suite.uf-ctv .env-banner { padding: 2px 10px; font-size: 10.5px; line-height: 1.2; }
  html #sim-suite #ui-ctv-nav { padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  html #sim-suite #ui-ctv-nav button { min-height: 46px; padding: 3px 2px; gap: 1px; font-size: 11px; line-height: 1.15; }
  html #sim-suite #ui-ctv-nav button svg { width: 18px; height: 18px; }
  html #sim-suite #ctv-progress { margin: 4px 10px; padding: 0 0 4px; }
  html #sim-suite #ctv-progress #ctv-progress-current { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
  html #sim-suite #ctv-progress:has(details[open]) #ctv-progress-current { display: block; overflow: visible; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo main { gap: 4px; padding-top: 4px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice { min-height: 46px; padding: 2px 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choice .b7-art { width: 34px; height: 34px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-usp-choices { gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .b7-journey ol { gap: 4px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #b7-start { margin-top: 2px; }
}
@media (max-width: 380px) {
  /* progress card: title and SIM on the first row, the status line and the history toggle share the second row */
  html #sim-suite #ctv-progress { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t n" "c d"; column-gap: 8px; row-gap: 0; align-items: center; }
  html #sim-suite #ctv-progress h3 { grid-area: t; font-size: 14px; line-height: 1.2; }
  html #sim-suite #ctv-progress #ctv-progress-number { grid-area: n; font-size: 12px; white-space: nowrap; justify-self: end; }
  html #sim-suite #ctv-progress #ctv-progress-current { grid-area: c; grid-column: auto; }
  html #sim-suite #ctv-progress details { grid-area: d; grid-column: auto; }
  html #sim-suite #ctv-progress details[open] { grid-area: auto; grid-column: 1 / -1; grid-row: 3; }
}
@media (max-width: 380px) {
  /* search box: the text box and "Tìm SIM" share one row (the box is narrower, still two lines high) */
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchrow { display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #s-query { flex: 1 1 0; min-width: 0; width: auto; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo main { grid-template-columns: minmax(0, 1fr); }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchbox, html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchrow, html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo #s-ai-controls { min-width: 0; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-searchbox { grid-template-columns: minmax(0, 1fr); }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-commandrow { flex: 0 0 auto; width: auto; align-self: flex-start; gap: 6px; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-commandrow .s-primary { width: auto; padding-left: 12px; padding-right: 12px; white-space: nowrap; }
  html #sim-suite.uf-ctv[data-uf-ctv-page="shop"] #sim-shop-demo .s-commandrow .s-voice { flex: 0 0 40px; width: 40px; min-width: 40px; }
}
