/* Khung chung “ABC Digital Workplace” cho MỌI trang (cập nhật 10/11/2026) — sidebar xanh đậm + header; lớp .shell.dw (luôn bật).
   .shell.cc chỉ còn nghĩa “trang dashboard một màn hình” (nền, lề nội dung — bgd-cc.css). Nội dung các trang nghiệp vụ cũ giữ nguyên kiểu chữ & bố cục. */
.shell.dw { --side: 248px; --nv: #0b2a5b; --bl: #1f6fe0; --dwf: 'CC Condensed', 'Roboto Condensed', 'Arial Narrow', var(--font); }

/* ---------- sidebar ---------- */
.shell.dw .side { background: linear-gradient(180deg, #0b2d72 0%, #0a2862 48%, #0c3584 100%); color: #e8f0ff; overflow: hidden; overflow: clip; display: flex; flex-direction: column; font-family: var(--dwf); z-index: 40; }
.shell.dw .side button, .shell.dw .side input, .shell.dw .side select { font-family: inherit; }
.shell.dw .side a { box-shadow: none; }
.dw-top { flex: none; }
.dw-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; padding-bottom: 6px; }
.shell.dw .cc-logo { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; color: #fff; border-radius: 0; font-size: inherit; }
.shell.dw .cc-logo:hover { background: none; }
.shell.dw .cc-logo img { width: 42px; }
.cc-mark { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 2px 6px rgba(0, 40, 120, .5)); }
.shell.dw .cc-logo b { display: block; font-size: 26px; font-weight: 800; letter-spacing: .01em; line-height: 1; color: #fff; }
.shell.dw .cc-logo sup { font-size: 9px; font-weight: 600; vertical-align: top; margin-left: 1px; }
.shell.dw .cc-logo i { display: block; font-style: normal; font-size: 11.5px; letter-spacing: .1em; font-weight: 600; color: #dbe8ff; margin-top: 4px; white-space: nowrap; }

/* ô “Tìm chức năng…” */
.dw-find { position: relative; z-index: 20; margin: 4px 12px 6px; }
.dw-find input { width: 100%; height: 36px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; padding: 0 8px 0 34px; font-size: 14px; outline: none; transition: background .15s; }
.dw-find input::placeholder { color: #b8cdf0; }
.dw-find input:focus { background: #fff; color: #0b1f4b; border-color: #8ec5ff; }
.dw-fi { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border: 0; background: none; color: #cfe0ff; display: grid; place-items: center; padding: 0; z-index: 1; cursor: pointer; }
.dw-find:focus-within .dw-fi { color: var(--bl); }
.dw-fi .ico { width: 17px; height: 17px; }
.dw-fres { position: absolute; left: 0; right: 0; top: 40px; max-height: calc(100vh - 150px); overflow: auto; background: #fff; color: #0b1f4b; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 20, 60, .4); padding: 4px; display: grid; gap: 1px; }
.dw-fres[hidden] { display: none; }
.dw-fh { font-size: 11px; color: #64748b; padding: 4px 8px 2px; text-transform: uppercase; letter-spacing: .06em; }
.dw-fe { font-size: 13px; color: #64748b; padding: 10px; }
.shell.dw .dw-fres a { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 7px; color: #0b1f4b; font-size: 13.5px; line-height: 1.25; }
.shell.dw .dw-fres a .ico { width: 17px; height: 17px; color: var(--bl); flex: none; margin-top: 1px; }
.shell.dw .dw-fres a span { flex: 1; min-width: 0; display: grid; }
.shell.dw .dw-fres a b { font-weight: 600; }
.shell.dw .dw-fres a small { font-size: 11.5px; color: #64748b; }
.shell.dw .dw-fres a:hover, .shell.dw .dw-fres a.sel { background: #e8f1ff; }

/* tiêu đề phần */
.dw-sec { padding: 0 10px 4px; }
.dw-h2 { display: flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #9fc0ef; font-weight: 700; padding: 6px 6px 4px; }
.dw-h2 .ico { width: 15px; height: 15px; flex: none; }
.dw-pos { display: block; margin: 0 2px 4px; }
.dw-pos .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dw-pos select { width: 100%; height: 32px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .22); color: #fff; padding: 0 28px 0 10px; font-size: 13.5px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 9px center / 13px; }
.dw-pos select option { color: #0b1f4b; background: #fff; }
.dw-one { display: block; padding: 0 6px 4px; font-size: 12.5px; color: #cfe0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-view { display: flex; align-items: center; gap: 6px; margin: 2px 2px 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 200, 80, .14); border: 1px solid rgba(255, 200, 80, .35); font-size: 12.5px; color: #ffe9b8; line-height: 1.25; }
.dw-view > .ico { width: 15px; height: 15px; flex: none; }
.dw-view b { color: #fff; }
.shell.dw .dw-view a { margin-left: auto; display: inline-flex; gap: 3px; align-items: center; color: #fff; font-weight: 600; padding: 2px 6px; font-size: 12.5px; white-space: nowrap; border-radius: 6px; flex: none; }
.dw-view a .ico { width: 14px; height: 14px; }

/* menu vai trò (định dạng ceoMenu — khối .cc-nav dùng chung với các dashboard) */
.shell.dw .cc-nav { padding: 2px 0 4px; display: grid; align-content: start; gap: 2px; }
.shell.dw .cc-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 10px; color: #eaf2ff; font-size: 15.5px; background: none; border: 0; text-align: left; letter-spacing: -.01em; line-height: 1.25; position: relative; transition: background .15s; cursor: pointer; }
.shell.dw .cc-i > .ico { width: 22px; height: 22px; stroke-width: 1.6; flex: none; }
.shell.dw .cc-i > span { flex: 1; min-width: 0; }
.shell.dw .cc-i span small { display: block; font-size: 12.5px; opacity: .92; letter-spacing: 0; }
.shell.dw .cc-i:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.shell.dw .cc-i.on { background: linear-gradient(90deg, #2b7bf3, #1d63dc); box-shadow: 0 4px 14px rgba(20, 90, 220, .45); color: #fff; }
.shell.dw .cc-i.big { padding: 9px 10px; }
.shell.dw .cc-chev { width: 16px !important; height: 16px !important; transition: transform .2s; opacity: .85; flex: none; }
.shell.dw .cc-g.open > .cc-i .cc-chev { transform: rotate(180deg); }
.shell.dw .cc-sub { display: none; padding: 1px 0 6px 42px; gap: 1px; }
.shell.dw .cc-g.open > .cc-sub { display: grid; }
.shell.dw .cc-sub a { display: flex; gap: 9px; align-items: center; font-size: 14px; color: #d6e5ff; padding: 4px 8px; border-radius: 6px; line-height: 1.3; }
.shell.dw .cc-sub a i { width: 6px; height: 6px; border-radius: 50%; background: #cfe0ff; flex: none; }
.shell.dw .cc-sub a .cc-ext { width: 12px; height: 12px; flex: none; opacity: .75; margin-left: auto; }
.shell.dw .cc-sub a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.shell.dw .cc-sub a.on { background: rgba(255, 255, 255, .16); color: #fff; font-weight: 600; }
.shell.dw .cc-sub a span { flex: 1; min-width: 0; }
.shell.dw .cc-sep { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8fb0e6; padding: 8px 8px 2px; }
.shell.dw .cc-b { margin-left: auto; background: #e11d2e; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 7px; line-height: 16px; }
.shell.dw .cc-i > .cc-b { position: absolute; left: 26px; top: 1px; font-size: 10px; padding: 0 5px; line-height: 15px; margin: 0; box-shadow: 0 0 0 2px #0b2d72; }
.shell.dw .cc-all { margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0 0 10px 10px; font-size: 13.5px; color: #cfe0ff; }

/* phân hệ nghiệp vụ (menu NAV_* cũ) */
.dw-mods { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 4px; padding-top: 2px; }
.shell.dw .side .brand.dw-h { display: flex; align-items: center; gap: 2px; padding: 8px 4px 6px 6px; font-weight: 700; color: #9fc0ef; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; }
.dw-ht { flex: 1; min-width: 0; display: flex; gap: 7px; align-items: flex-start; }
.dw-ht > .ico { width: 15px; height: 15px; margin-top: 1px; flex: none; }
.dw-ht > span { min-width: 0; }
.shell.dw .side .brand small { display: block; font-family: inherit; font-size: 13px; letter-spacing: .02em; color: #fff; font-weight: 700; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell.dw .dw-hb { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #cfe0ff; border: 0; background: none; padding: 0; flex: none; cursor: pointer; }
.shell.dw .dw-hb:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.shell.dw .dw-hb .ico { width: 16px; height: 16px; }
.shell.dw .ws { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 2px 6px; padding: 0; background: none; }
.shell.dw .ws button { flex: 1 1 auto; min-width: 0; padding: 4px 9px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #dbe8ff; font-size: 12.5px; font-weight: 600; text-align: center; white-space: nowrap; line-height: 1.3; cursor: pointer; }
.shell.dw .ws button small { display: none; }
.shell.dw .ws button:hover:not(.on) { background: rgba(255, 255, 255, .15); color: #fff; }
.shell.dw .ws button.on { background: #fff; color: #0b2a5b; border-color: #fff; box-shadow: 0 2px 8px rgba(0, 20, 70, .35); }
.shell.dw .side nav { padding: 0 0 4px; flex: none; }
.dw-g { margin: 1px 0; }
.shell.dw .side nav .grp { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 7px 6px 4px; font-family: inherit; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #8fb0e6; font-weight: 700; text-align: left; border-radius: 6px; cursor: pointer; }
.shell.dw .side nav .grp:hover { color: #fff; }
.dw-chev { width: 14px; height: 14px; margin-left: auto; transition: transform .2s; flex: none; }
.dw-g:not(.open) .dw-chev { transform: rotate(-90deg); }
.dw-gi { display: none; }
.dw-g.open > .dw-gi { display: grid; gap: 1px; }
.shell.dw .side nav a { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 10px; border-radius: 8px; color: #d6e5ff; font-size: 14px; line-height: 1.25; }
.shell.dw .side nav a .ico { width: 18px; height: 18px; flex: none; opacity: .92; stroke-width: 1.7; }
.shell.dw .side nav a > span:not(.badge) { flex: 1; min-width: 0; }
.shell.dw .side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.shell.dw .side nav a.on { background: linear-gradient(90deg, #2b7bf3, #1d63dc); color: #fff; box-shadow: 0 3px 10px rgba(20, 90, 220, .4); }
.shell.dw .side nav a .badge { margin-left: auto; background: #e11d2e; color: #fff; font-size: 11px; border-radius: 10px; padding: 0 7px; line-height: 17px; font-weight: 700; flex: none; }

/* người dùng trong ngăn kéo (điện thoại) */
.shell.dw .side .me { display: none; }
.me-n { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.me-r { font-size: 11.5px; color: #a9c1e6; }
.shell.dw .me-r a { color: #dbe8ff; padding: 0; display: inline; font-size: inherit; }
.me-t { color: #f5b84b; }
.shell.dw #btn-logout { background: transparent; border-color: rgba(255, 255, 255, .2); color: #dbe8ff; }

/* chân trang toà nhà + khẩu hiệu */
.shell.dw .cc-foot { position: relative; height: 150px; flex: none; overflow: hidden; text-align: center; color: #fff; }
.cc-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.shell.dw .cc-foot > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 12px; background: linear-gradient(180deg, rgba(8, 32, 84, 0), rgba(8, 32, 84, .88) 34%); }
.shell.dw .cc-foot b { display: block; font-size: 25px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.shell.dw .cc-foot small { display: block; font-size: 12px; line-height: 1.5; color: #e3edff; }
@media (max-height: 820px) { .shell.dw .cc-foot { height: 104px; } .shell.dw .cc-foot > div { padding: 12px 6px 8px; } .shell.dw .cc-foot b { font-size: 20px; } .shell.dw .cc-foot small { font-size: 11px; line-height: 1.35; } }
@media (max-height: 640px) { .shell.dw .cc-foot { height: 64px; } .shell.dw .cc-foot small { display: none; } }

/* ---------- sidebar thu gọn (☰ trên máy tính): chỉ còn biểu tượng ---------- */
@media (min-width: 901px) {
  .shell.dw.dw-mini { --side: 74px; }
  .shell.dw.dw-mini .cc-logo span, .shell.dw.dw-mini .dw-find input, .shell.dw.dw-mini .dw-fres, .shell.dw.dw-mini .dw-h2, .shell.dw.dw-mini .dw-pos, .shell.dw.dw-mini .dw-one, .shell.dw.dw-mini .dw-view span,
  .shell.dw.dw-mini .cc-i > span, .shell.dw.dw-mini .cc-chev, .shell.dw.dw-mini .cc-sub, .shell.dw.dw-mini .cc-i > .cc-b, .shell.dw.dw-mini .ws, .shell.dw.dw-mini .side nav .grp, .shell.dw.dw-mini .dw-ht > span,
  .shell.dw.dw-mini .side nav a > span, .shell.dw.dw-mini .cc-foot > div, .shell.dw.dw-mini .dw-hb[data-dwfold] { display: none; }
  .shell.dw.dw-mini .cc-logo { justify-content: center; padding: 14px 0 8px; }
  .shell.dw.dw-mini .dw-find { margin: 2px 14px 6px; }
  .shell.dw.dw-mini .dw-fi { position: static; width: 100%; height: 36px; border-radius: 9px; background: rgba(255, 255, 255, .1); }
  .shell.dw.dw-mini .dw-sec { padding: 0 8px 4px; }
  .shell.dw.dw-mini .cc-i { justify-content: center; padding: 9px 0; }
  .shell.dw.dw-mini .dw-view { justify-content: center; padding: 6px 0; }
  .shell.dw.dw-mini .dw-view a { margin: 0; }
  .shell.dw.dw-mini .side .brand.dw-h { justify-content: center; flex-direction: column; gap: 2px; padding: 8px 0 4px; }
  .shell.dw.dw-mini .dw-ht { flex: none; }
  .shell.dw.dw-mini .dw-g > .dw-gi { display: grid; }
  .shell.dw.dw-mini .side nav a { justify-content: center; padding: 8px 0; }
  .shell.dw.dw-mini .side nav a .ico { width: 20px; height: 20px; }
}

/* ---------- header ---------- */
.shell.dw .topbar { background: #fff; padding: 7px 16px 7px 10px; gap: 12px; border-bottom: 1px solid #dce6f5; box-shadow: 0 2px 8px rgba(20, 60, 140, .06); backdrop-filter: none; min-height: 56px; }
.shell.dw .burger { display: inline-flex; border: 0; background: none; color: var(--nv); width: 38px; height: 38px; flex: none; }
.shell.dw .burger .ico { width: 26px; height: 26px; }
.shell.dw .dw-ttl { min-width: 0; flex: 0 1 auto; }
.shell.dw .topbar h1 { font-family: var(--dwf); font-size: 21px; font-weight: 800; text-transform: uppercase; color: #0b1f4b; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.shell.dw .topbar > .sp { flex: 1 1 8px; min-width: 8px; }
.shell.dw #topbar-extra:empty { display: none; }
.shell.dw .gsearch .in { width: 310px; height: 38px; border-radius: 8px; border: 1px solid #b9cdea; padding-left: 36px; font-size: 13.5px; font-family: var(--dwf);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a5b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 11px 50% / 17px; }
.shell.dw #g-bell, .shell.dw .cc-help { border: 0; background: none; color: var(--nv); width: 38px; height: 38px; flex: none; }
.shell.dw #g-bell .ico, .shell.dw .cc-help .ico { width: 24px; height: 24px; }
.shell.dw .bdot { top: 0; right: 0; background: #e11d2e; }
.shell.dw .cc-tools { display: flex; align-items: center; gap: 4px; flex: none; }
.dw-me { display: flex; align-items: center; gap: 8px; border: 0; background: none; text-align: left; padding: 2px 4px; border-radius: 8px; color: var(--nv); cursor: pointer; font-family: var(--dwf); min-width: 0; }
.dw-me:hover { background: #f1f6ff; }
.dw-me .cc-ava { border-radius: 50%; object-fit: cover; border: 2px solid #dbe7fb; flex: none; }
.dw-me .cc-ava.ini { display: grid; place-items: center; background: linear-gradient(135deg, #1d4ed8, #60a5fa); color: #fff; font-weight: 700; font-size: 13px; }
.dw-mn { display: grid; line-height: 1.2; max-width: 180px; min-width: 0; }
.dw-mn b { font-size: 14px; color: #0b1f4b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-mn small { font-size: 12.5px; color: var(--nv); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-mchev { width: 16px; height: 16px; flex: none; }
.dw-um { display: contents; }
.dw-um em { font-style: normal; color: var(--muted); font-size: 12px; }
.cc-helpb ul { padding-left: 18px; display: grid; gap: 6px; } .cc-helpb .row { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-helpb kbd { font-family: var(--mono); font-size: 11.5px; background: #eef2f7; border: 1px solid #d5dde8; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
.cc-helpb .ico { width: 15px; height: 15px; vertical-align: -2px; }

@media (max-width: 1560px) {
  .shell.dw .gsearch .in { width: 240px; }
  .shell.dw .topbar h1 { font-size: 19px; }
  .dw-mn { max-width: 140px; }
}
@media (max-width: 1360px) {
  .shell.dw .gsearch .in { width: 200px; }
  .dw-mn { display: none; }
  .shell.dw .topbar { gap: 8px; }
}
@media (max-width: 1180px) {
  .shell.dw .topbar { flex-wrap: wrap; }
  .shell.dw .gsearch .in { width: 180px; }
}
/* ---------- điện thoại / máy tính bảng: sidebar thành ngăn kéo ---------- */
@media (max-width: 900px) {
  .shell.dw .side { width: min(86vw, 300px); height: 100%; z-index: 90; }
  .shell.dw .side.open + .main::before { content: ''; position: fixed; inset: 0; background: rgba(4, 18, 48, .45); z-index: 85; }
  .shell.dw .side .me { display: flex; align-items: center; gap: 10px; margin: 8px 10px 0; padding: 10px 6px 4px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12.5px; }
  .shell.dw .topbar { padding: 6px 10px; gap: 4px 6px; flex-wrap: wrap; min-height: 52px; }
  .shell.dw .topbar > div.dw-ttl:nth-child(2) { flex: 1 1 0; min-width: 0; }
  .shell.dw .topbar h1 { font-size: 15px; white-space: normal; line-height: 1.25; }
  .shell.dw .topbar > .sp { display: none; }
  .shell.dw #topbar-extra { width: 100%; order: 5; }
  .shell.dw .gsearch { order: 6; width: 100%; }
  .shell.dw .gsearch .in { width: 100%; }
  .shell.dw.cc .topbar { position: relative; top: auto; }
  /* nội dung rộng hơn màn hình (bảng, thẻ có dòng tiêu đề dài…) cuộn ngang trong vùng nội dung — không làm cả trang (và khung) bị thu nhỏ trên điện thoại */
  .shell.dw .content { overflow-x: auto; max-width: 100vw; }
  .shell.dw .cc-tools { gap: 0; }
  .shell.dw #g-bell, .shell.dw .cc-help { width: 34px; height: 34px; }
}

/* tiêu đề dài trên header (vd “ABC – ĐIỀU ĐỘ SẢN XUẤT & GIA CÔNG DÂY PHỤ TRỢ”): co chữ theo bề rộng, tối đa 2 dòng — không cắt “…” ở khổ 1280–1680 (cập nhật 10/11/2026) */
@media (min-width: 901px) {
  .shell.dw .topbar h1 { font-size: clamp(16px, calc(.62vw + 9px), 21px); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.12; text-overflow: clip; }
}

/* ======================= u1611-mn: “Phân hệ nghiệp vụ” ghim đáy + menu bay ra khi rê chuột ======================= */
/* --- tiêu đề vùng menu phân hệ (trong vùng cuộn) + nút chuyển kiểu Bay ra / Xổ xuống --- */
.dw-mh { display: flex; align-items: center; gap: 6px; padding: 8px 2px 5px 6px; }
.dw-mt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9fc0ef; font-weight: 700; }
.dw-mt > .ico { width: 15px; height: 15px; flex: none; }
.dw-mt > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dw-mt b { color: #fff; letter-spacing: .02em; }
.dw-mode { display: inline-flex; flex: none; border: 1px solid rgba(255, 255, 255, .24); border-radius: 8px; overflow: hidden; }
.shell.dw .dw-mode button { border: 0; background: none; color: #cfe0ff; font-size: 11.5px; font-weight: 600; padding: 2px 7px; line-height: 17px; cursor: pointer; white-space: nowrap; }
.shell.dw .dw-mode button:hover:not(.on) { background: rgba(255, 255, 255, .12); color: #fff; }
.shell.dw .dw-mode button.on { background: #fff; color: #0b2a5b; }
.shell.dw:not(.dw-flyable) .dw-mode, .shell.dw.dw-fly [data-dwfold] { display: none; }
.dw-mods { margin-top: 4px; }

/* --- dock cố định ở đáy menu trái (thay khối chữ ABC trôi) --- */
.shell.dw .dw-dock { flex: none; position: relative; overflow: hidden; padding: 2px 10px 6px; border-top: 1px solid rgba(255, 255, 255, .2); background: linear-gradient(180deg, #0b2f78 0%, #082256 100%); box-shadow: 0 -8px 18px rgba(2, 14, 44, .38); }
.shell.dw .dw-dock > :not(.cc-foot) { position: relative; z-index: 1; }
.shell.dw .dw-dock .brand.dw-h { padding: 7px 0 5px 2px; }
.shell.dw .dw-dock .ws { margin: 0 0 4px; }
.shell.dw .dw-dock.one .brand.dw-h { padding-bottom: 6px; }
.shell.dw .dw-dock .cc-foot { position: static; height: auto; overflow: visible; }
.shell.dw .dw-dock .cc-sky { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .42; z-index: 0; pointer-events: none; }
.shell.dw .dw-dock .cc-foot > div { position: relative; z-index: 1; padding: 3px 0 0; background: none; display: flex; align-items: baseline; justify-content: center; gap: 7px; min-width: 0; }
.shell.dw .dw-dock .cc-foot b { display: inline; font-size: 13px; letter-spacing: .14em; flex: none; }
.shell.dw .dw-dock .cc-foot small { display: block; min-width: 0; font-size: 10.5px; line-height: 1.35; color: #cfe0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell.dw .dw-dock .cc-foot small span + span { display: none; }
@media (min-height: 980px) {
  .shell.dw .dw-dock .cc-foot > div { flex-direction: column; align-items: center; gap: 0; padding-top: 4px; }
  .shell.dw .dw-dock .cc-foot b { font-size: 16px; }
  .shell.dw .dw-dock .cc-foot small span { display: block; }
}
/* màn thấp: dock gọn — một dòng tiêu đề + một hàng ô phân hệ cuộn ngang (lăn chuột cuộn ngang), không che menu */
@media (max-height: 640px) {
  .shell.dw .dw-dock { padding: 0 8px 4px; }
  .shell.dw .dw-dock .brand.dw-h { padding: 4px 0 3px 2px; }
  .shell.dw .dw-dock .dw-ht > span { font-size: 0; letter-spacing: 0; }
  .shell.dw .dw-dock .brand small { margin-top: 0; font-size: 12px; }
  .shell.dw .dw-dock .ws { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 14px), transparent); padding: 0 4px; }
  .shell.dw .dw-dock .ws::-webkit-scrollbar { display: none; }
  .shell.dw .dw-dock .ws button { flex: none; padding: 3px 9px; }
  .shell.dw .dw-dock .cc-foot > div { display: none; }
}

/* --- kiểu “bay ra”: nhóm menu = mục cha (biểu tượng · tên · số mục · huy hiệu · ›); kiểu xổ xuống giữ y như cũ --- */
.dw-gic, .dw-gc, .dw-gar, .dw-gt, .shell.dw .side nav .grp .dw-gb { display: none; }
.shell.dw.dw-fly .side nav { display: grid; gap: 1px; }
.shell.dw.dw-fly .dw-g { margin: 0; }
.shell.dw.dw-fly .side nav .grp { gap: 10px; padding: 7px 8px 7px 10px; font-size: 14px; letter-spacing: -.005em; text-transform: none; color: #d6e5ff; font-weight: 500; border-radius: 8px; line-height: 1.25; }
.shell.dw.dw-fly .side nav .grp:hover, .shell.dw.dw-fly .side nav .grp:focus-visible { background: rgba(255, 255, 255, .1); color: #fff; outline: none; }
.shell.dw.dw-fly .dw-g.cur > .grp, .shell.dw.dw-fly .cc-g.cur > .cc-i { color: #fff; font-weight: 700; background: linear-gradient(90deg, rgba(43, 123, 243, .62), rgba(29, 99, 220, .22)); box-shadow: inset 3px 0 0 #8cc8ff; }
.shell.dw.dw-fly .dw-g.open > .grp, .shell.dw.dw-fly .cc-g.open > .cc-i { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.shell.dw.dw-fly .dw-gic { display: block; width: 18px; height: 18px; flex: none; opacity: .95; stroke-width: 1.7; }
.shell.dw.dw-fly .dw-gn { flex: 1; min-width: 0; }
.shell.dw.dw-fly .dw-gc { display: inline-block; flex: none; font-style: normal; font-size: 11px; font-weight: 600; color: #bcd2f5; background: rgba(255, 255, 255, .1); border-radius: 9px; padding: 0 6px; line-height: 17px; letter-spacing: 0; }
.shell.dw.dw-fly .side nav .grp .dw-gb { display: inline-block; flex: none; margin: 0; background: #e11d2e; color: #fff; font-size: 11px; font-style: normal; border-radius: 10px; padding: 0 7px; line-height: 17px; font-weight: 700; letter-spacing: 0; }
.shell.dw.dw-fly .side nav .grp .dw-chev { display: none; }
.shell.dw.dw-fly .dw-gar { display: block; width: 15px; height: 15px; flex: none; opacity: .7; transition: transform .15s, opacity .15s; }
.shell.dw.dw-fly .dw-g.open > .grp .dw-gar { transform: translateX(2px); opacity: 1; }
.shell.dw.dw-fly .cc-g > .cc-i .cc-chev { transform: rotate(-90deg); }
.shell.dw.dw-fly .cc-g.open > .cc-i .cc-chev { transform: rotate(-90deg) translateY(2px); opacity: 1; }
/* bảng con bay ra bên phải, sát menu, căn theo dòng (navfly.js đặt left/top/max-height) */
.shell.dw.dw-fly .dw-gi, .shell.dw.dw-fly .cc-g > .cc-sub { display: none; }
.shell.dw.dw-fly .dw-g.open > .dw-gi, .shell.dw.dw-fly .cc-g.open > .cc-sub {
  display: grid; align-content: start; gap: 1px; position: fixed; z-index: 70; left: var(--side); top: 8px; width: 300px; max-height: calc(100vh - 16px); overflow: auto; overscroll-behavior: contain;
  margin: 0 0 0 3px; padding: 0 6px 8px; background: #fff; color: #0b1f4b; border: 1px solid #d3e0f4; border-radius: 12px; box-shadow: 0 20px 50px rgba(4, 24, 70, .34), 0 2px 8px rgba(4, 24, 70, .16);
  animation: dwfly .13s ease-out; scrollbar-width: thin; }
@keyframes dwfly { from { opacity: 0; translate: -6px 0; } }
.shell.dw.dw-fly .dw-g.open > .dw-gi.cols2, .shell.dw.dw-fly .cc-g.open > .cc-sub.cols2 { display: block; width: 580px; column-count: 2; column-gap: 8px; }
.shell.dw.dw-fly .cols2 > a, .shell.dw.dw-fly .cols2 > .cc-sep { break-inside: avoid; }
.shell.dw.dw-fly .cols2 > .dw-gt { column-span: all; }
.shell.dw.dw-fly .dw-gt { display: flex; align-items: center; gap: 8px; padding: 10px 6px 8px; margin: 0 0 4px; border-bottom: 1px solid #e3ebf7; color: #0b2a5b; position: sticky; top: 0; z-index: 1; background: #fff; }
.shell.dw.dw-fly .cols2 > .dw-gt { position: static; }
.shell.dw.dw-fly .dw-gt .ico { width: 18px; height: 18px; color: var(--bl); flex: none; }
.shell.dw.dw-fly .dw-gt b { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.shell.dw.dw-fly .dw-gt small { font-size: 11.5px; color: #64748b; white-space: nowrap; }
.shell.dw.dw-fly .side nav .dw-gi a, .shell.dw.dw-fly .cc-g > .cc-sub a { display: flex; color: #0b1f4b; font-size: 14px; padding: 7px 10px; border-radius: 8px; gap: 10px; line-height: 1.3; }
.shell.dw.dw-fly .side nav .dw-gi a .ico { color: var(--bl); opacity: 1; }
.shell.dw.dw-fly .cc-g > .cc-sub a i { background: var(--bl); }
.shell.dw.dw-fly .side nav .dw-gi a:hover, .shell.dw.dw-fly .side nav .dw-gi a:focus-visible, .shell.dw.dw-fly .cc-g > .cc-sub a:hover, .shell.dw.dw-fly .cc-g > .cc-sub a:focus-visible { background: #e8f1ff; color: #0b2a5b; outline: none; }
.shell.dw.dw-fly .side nav .dw-gi a.on, .shell.dw.dw-fly .cc-g > .cc-sub a.on { background: linear-gradient(90deg, #2b7bf3, #1d63dc); color: #fff; font-weight: 600; box-shadow: 0 3px 10px rgba(20, 90, 220, .3); }
.shell.dw.dw-fly .side nav .dw-gi a.on .ico { color: #fff; }
.shell.dw.dw-fly .cc-g > .cc-sub a.on i { background: #fff; }
.shell.dw.dw-fly .cc-g > .cc-sub .cc-sep { color: #64748b; padding: 8px 10px 2px; }
.shell.dw.dw-fly .cc-g > .cc-sub .cc-b { position: static; box-shadow: none; }
/* “Toàn bộ menu hệ thống” ở kiểu bay ra: bảng lớn mọi nhóm của phân hệ đang chọn */
.dw-mega { position: fixed; z-index: 75; top: 8px; bottom: 8px; margin-left: 3px; display: flex; flex-direction: column; background: #fff; color: #0b1f4b; border: 1px solid #d3e0f4; border-radius: 14px; box-shadow: 0 24px 60px rgba(4, 24, 70, .38); animation: dwfly .14s ease-out; font-family: var(--dwf); }
.dw-mgh { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 16px; border-bottom: 1px solid #e3ebf7; flex: none; }
.dw-mgh > .ico { width: 22px; height: 22px; color: var(--bl); flex: none; }
.dw-mgh > span { flex: 1; min-width: 0; display: grid; }
.dw-mgh b { font-size: 16px; font-weight: 800; text-transform: uppercase; color: #0b2a5b; }
.dw-mgh small { font-size: 12px; color: #64748b; }
.shell.dw .dw-mgx { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #f1f6ff; color: #0b2a5b; display: grid; place-items: center; cursor: pointer; flex: none; }
.shell.dw .dw-mgx:hover { background: #dce9ff; }
.dw-mgx .ico { width: 18px; height: 18px; }
.dw-mgc { flex: 1; min-height: 0; overflow: auto; padding: 10px 14px 14px; column-width: 230px; column-gap: 18px; overscroll-behavior: contain; }
.dw-mgc section { break-inside: avoid; margin-bottom: 12px; }
.dw-mgc h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; padding: 4px 4px 5px; border-bottom: 1px solid #e3ebf7; font-size: 12.5px; color: #0b2a5b; text-transform: uppercase; letter-spacing: .03em; }
.dw-mgc h4 .ico { width: 16px; height: 16px; color: var(--bl); flex: none; }
.dw-mgc h4 b { flex: 1; min-width: 0; font-weight: 800; }
.dw-mgc h4 small { font-size: 11px; color: #64748b; text-transform: none; letter-spacing: 0; font-weight: 500; }
.shell.dw .dw-mega a { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; color: #0b1f4b; font-size: 13.5px; line-height: 1.3; }
.shell.dw .dw-mega a .ico { width: 16px; height: 16px; color: var(--bl); flex: none; }
.shell.dw .dw-mega a > span:not(.badge) { flex: 1; min-width: 0; }
.shell.dw .dw-mega a .badge { background: #e11d2e; color: #fff; font-size: 11px; border-radius: 10px; padding: 0 7px; line-height: 17px; font-weight: 700; flex: none; }
.shell.dw .dw-mega a:hover, .shell.dw .dw-mega a:focus-visible { background: #e8f1ff; outline: none; }
.shell.dw .dw-mega a.on { background: linear-gradient(90deg, #2b7bf3, #1d63dc); color: #fff; }
.shell.dw .dw-mega a.on .ico { color: #fff; }
/* menu thu gọn (☰) + kiểu bay ra: nhóm hiện bằng biểu tượng, rê chuột ra bảng con */
@media (min-width: 901px) {
  .shell.dw.dw-mini .dw-mh { display: none; }
  .shell.dw.dw-mini .dw-dock { padding: 2px 6px 6px; }
  .shell.dw.dw-mini .dw-dock .brand.dw-h { justify-content: center; }
  .shell.dw.dw-mini .dw-dock .cc-foot > div { display: none; }
  .shell.dw.dw-mini.dw-fly .side nav .grp { display: flex; justify-content: center; padding: 9px 0; position: relative; }
  .shell.dw.dw-mini.dw-fly .side nav .grp > :not(.dw-gic):not(.dw-gb) { display: none; }
  .shell.dw.dw-mini.dw-fly .side nav .grp .dw-gb { position: absolute; top: 1px; left: 38px; font-size: 10px; padding: 0 5px; line-height: 15px; box-shadow: 0 0 0 2px #0b2d72; }
  .shell.dw.dw-mini.dw-fly .dw-gic { width: 20px; height: 20px; }
  .shell.dw.dw-mini.dw-fly .dw-g > .dw-gi { display: none; }
  .shell.dw.dw-mini.dw-fly .dw-g.open > .dw-gi { display: grid; }
  .shell.dw.dw-mini.dw-fly .dw-g.open > .dw-gi.cols2 { display: block; }
  .shell.dw.dw-mini.dw-fly .side nav .dw-gi a { justify-content: flex-start; padding: 7px 10px; }
  .shell.dw.dw-mini.dw-fly .side nav .dw-gi a > span { display: block; }
  .shell.dw.dw-mini.dw-fly .cc-g.open > .cc-sub { display: grid; }
  .shell.dw.dw-mini.dw-fly .cc-g.open > .cc-sub.cols2 { display: block; }
}
