/* Cổng hethong.akuba.com.vn: thanh trên cùng chung (chèn vào mọi web) + trang chủ, đăng nhập, đổi mật khẩu.
   Mọi lớp có tiền tố ht- để không đụng CSS của các web. Bộ màu "Xanh rêu" như các web. */
:root {
  --ht-bg: #f5f7ec; --ht-surface: #ffffff; --ht-surface-2: #eef1e2; --ht-border: #dde3c8; --ht-text: #232b20; --ht-muted: #5c6a55;
  --ht-accent: #40513b; --ht-accent-soft: #e3ebcf; --ht-mark: #40513b; --ht-ok: #1e7a46; --ht-ok-soft: #e2f1e3;
  --ht-warn: #9a6100; --ht-warn-soft: #fbefd6; --ht-bad: #b42318; --ht-bad-soft: #fde8e6; --ht-pop: 0 10px 30px rgba(35,43,32,.16);
  --ht-font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ht-bg: #11140f; --ht-surface: #181d15; --ht-surface-2: #20271c; --ht-border: #2e3828; --ht-text: #e8eedf; --ht-muted: #a0ad94;
    --ht-accent: #9dc08b; --ht-accent-soft: #26331f; --ht-ok: #5cc98a; --ht-ok-soft: #15301f; --ht-warn: #f0b75a; --ht-warn-soft: #3a2c12;
    --ht-bad: #ff8a7a; --ht-bad-soft: #3d1c19; --ht-pop: 0 10px 30px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --ht-bg: #11140f; --ht-surface: #181d15; --ht-surface-2: #20271c; --ht-border: #2e3828; --ht-text: #e8eedf; --ht-muted: #a0ad94;
  --ht-accent: #9dc08b; --ht-accent-soft: #26331f; --ht-ok: #5cc98a; --ht-ok-soft: #15301f; --ht-warn: #f0b75a; --ht-warn-soft: #3a2c12;
  --ht-bad: #ff8a7a; --ht-bad-soft: #3d1c19; --ht-pop: 0 10px 30px rgba(0,0,0,.5);
}

/* ---------- Thanh trên cùng chung ---------- */
.ht-thanh { background: var(--ht-mark); color: #fff; font: 500 13px/1.4 var(--ht-font); position: relative; z-index: 60; }
.ht-thanh * { box-sizing: border-box; }
.ht-thanh-in { max-width: 1280px; margin: 0 auto; height: 44px; padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.ht-logo { display: flex; align-items: center; color: #fff; }
.ht-logo .logo-akuba { height: 13px; width: auto; display: block; }
/* Hàng tab ứng dụng: máy tính xếp ngang, điện thoại kéo ngang (không xuống dòng) */
.ht-tab { flex: 1; min-width: 0; display: flex; align-items: stretch; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.ht-tab::-webkit-scrollbar { display: none; }
.ht-tab a { display: flex; align-items: center; padding: 0 12px; color: rgba(255,255,255,.78); text-decoration: none; white-space: nowrap;
  font: 600 13.5px/1 var(--ht-font); border-bottom: 2px solid transparent; border-top: 2px solid transparent; flex: none; }
.ht-tab a:hover { color: #fff; background: rgba(255,255,255,.08); }
.ht-tab a.on { color: #fff; border-bottom-color: #9dc08b; background: rgba(255,255,255,.1); }
.ht-thanh details { position: relative; }
.ht-thanh summary { list-style: none; cursor: pointer; padding: 5px 10px; border-radius: 8px; white-space: nowrap; max-width: 46vw;
  overflow: hidden; text-overflow: ellipsis; color: #fff; }
.ht-thanh summary::-webkit-details-marker { display: none; }
.ht-nguoi summary { display: flex; align-items: center; gap: 6px; }
.ht-thanh .ico { width: 18px; height: 18px; flex: none; }
.ht-thanh summary:hover, .ht-thanh details[open] summary { background: rgba(255,255,255,.14); }
.ht-pop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: var(--ht-surface); color: var(--ht-text);
  border: 1px solid var(--ht-border); border-radius: 12px; box-shadow: var(--ht-pop); padding: 6px; display: flex; flex-direction: column; }
.ht-pop-phai { left: auto; right: 0; }
.ht-pop a, .ht-pop button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ht-text);
  text-decoration: none; font: 500 14px/1.3 var(--ht-font); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.ht-pop a:hover, .ht-pop button:hover, .ht-pop a.on { background: var(--ht-accent-soft); color: var(--ht-accent); }
.ht-pop form { margin: 0; }
.ht-ten { padding: 8px 10px 10px; border-bottom: 1px solid var(--ht-border); margin-bottom: 4px; display: flex; flex-direction: column; }
.ht-ten span { color: var(--ht-muted); font-size: 12px; }
.ht-chu { width: 26px; height: 26px; border-radius: 7px; background: var(--ht-mark); color: #fff; display: grid; place-items: center;
  font: 700 10px/1 var(--ht-font); flex: none; letter-spacing: .02em; }
.ht-chu.lon { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }

/* ---------- Trang của cổng ---------- */
body.ht-trang { margin: 0; background: var(--ht-bg); color: var(--ht-text); font: 14px/1.5 var(--ht-font); }
.ht-trang * { box-sizing: border-box; }
.ht-main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 48px; }
.ht-dau { margin-bottom: 18px; }
.ht-dau h1, .ht-the h1 { font-size: 22px; margin: 0 0 4px; letter-spacing: -.01em; }
.ht-mo { color: var(--ht-muted); margin: 0; }
.ht-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ht-o { display: flex; gap: 14px; align-items: flex-start; background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: 14px;
  padding: 16px; color: var(--ht-text); text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.ht-o:hover { border-color: var(--ht-accent); transform: translateY(-1px); }
.ht-o-chu { display: flex; flex-direction: column; min-width: 0; }
.ht-o-chu b { font-size: 16px; }
.ht-o-chu span { color: var(--ht-muted); font-size: 13px; }
.ht-o-chu em { font-style: normal; font-size: 12px; margin-top: 6px; color: var(--ht-accent); font-weight: 600; }
.ht-the { background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: 14px; padding: 20px; }
.ht-form, .ht-login form { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.ht-trang label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ht-muted); }
.ht-trang input { font: inherit; color: var(--ht-text); background: var(--ht-surface); border: 1px solid var(--ht-border); border-radius: 8px;
  padding: 10px 12px; min-height: 44px; width: 100%; }
.ht-trang input:focus { outline: 2px solid var(--ht-accent); outline-offset: -1px; }
.ht-nut { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border-radius: 10px;
  border: 1px solid var(--ht-border); background: var(--ht-surface); color: var(--ht-text); font: 600 14px var(--ht-font); cursor: pointer; text-decoration: none; }
.ht-nut.chinh { background: var(--ht-mark); border-color: var(--ht-mark); color: #fff; }
.ht-flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.ht-flash.ok { background: var(--ht-ok-soft); color: var(--ht-ok); }
.ht-flash.bad { background: var(--ht-bad-soft); color: var(--ht-bad); }
.ht-flash.warn { background: var(--ht-warn-soft); color: var(--ht-warn); }
.ht-flash a { color: inherit; font-weight: 700; }
.ht-login { min-height: 80vh; display: grid; place-items: center; }
.ht-login .ht-the { width: 100%; max-width: 400px; padding: 28px 24px; }
.ht-login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--ht-text); font-weight: 700; }
.ht-login-logo .logo-akuba { height: 18px; width: auto; }
.ht-login .ht-mo { margin-top: 14px; font-size: 12px; }
@media (max-width: 560px) {
  .ht-main { padding: 18px 16px 40px; }
  .ht-luoi { grid-template-columns: 1fr; }
  .ht-pop { position: fixed; left: 8px; right: 8px; top: 48px; min-width: 0; }
  .ht-thanh-in { gap: 8px; padding: 0 0 0 12px; }
  .ht-tab a { padding: 0 10px; font-size: 13px; }
  .ht-logo, .ht-ten-day { display: none; }
  .ht-thanh-in { padding: 0 4px 0 6px; }
  .ht-nguoi summary { padding: 8px 10px; }
}
