/* === academy.hn6.vn: bản sao styles.css của banlt (cloudflare-dashboard/vung, 2026-10-20) + phần riêng ở cuối file === */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #17202b;
  --muted: #687386;
  --line: #dce2ea;
  --brand: #a51c30;
  --brand-dark: #851626;
  --ok: #14743f;
  --warn: #aa6200;
  --bad: #b42318;
  --missing: #7a828e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
}

button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  padding: 8px 13px;
  font: inherit;
  cursor: pointer;
}

button:hover {
  background: var(--brand-dark);
}

.app {
  width: min(1360px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 8px;
  position: sticky;
  top: 0;
  z-index: 15;
  background: var(--bg);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 4px;
  font-size: 20px;
}

.note,
.panel-head p {
  color: var(--muted);
  line-height: 1.45;
}

.kpis {
  display: none;
  grid-template-columns: repeat(6, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.kpi {
  padding: 14px;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.course-list-panel {
  margin-top: 16px;
}

.course-list-head {
  padding: 14px 16px;
}

.course-list-title {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.scope-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin-bottom: 16px;
  padding: 8px 14px;
}

.scope-panel strong {
  white-space: nowrap;
  font-weight: 800;
}

.scope-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chapter-pills {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 5px;
}

.scope-row {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 8px;
}

.area-row {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

.area-row .chapter-pill {
  min-height: 0;
  padding-top: 3px;
  padding-bottom: 3px;
  font-size: 15px;
  border: 1px solid var(--brand);
}

.chapter-row {
  padding-top: 2px;
}

.chapter-pill,
.chapter-link {
  border: 0;
  background: #f1f3f6;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
}

.chapter-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.chapter-pill:hover,
.chapter-pill.active,
.chapter-link:hover {
  background: var(--brand);
  color: #ffffff;
}

.chapter-link {
  min-height: 0;
  padding: 0;
  text-align: left;
  font-weight: 800;
}

.chapter-link:hover {
  border-radius: 6px;
  padding: 4px 6px;
}


.panel {
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head.empty {
  display: none;
}

.panel-head p {
  margin-bottom: 0;
}

.bars {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.region-panel,
.chapter-focus-panel {
  margin-bottom: 16px;
}

.region-progress {
  padding: 16px;
}

.region-stack {
  display: flex;
  min-height: 72px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf0f4;
}

.region-segment {
  display: grid;
  min-width: 0;
  place-content: center;
  padding: 8px;
  color: #ffffff;
  text-align: center;
}

.region-segment strong,
.region-segment span {
  display: block;
  line-height: 1.1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.region-segment strong {
  font-size: 22px;
  font-weight: 800;
}

.region-segment span {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
}

.region-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.region-legend-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 4px 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.region-legend-item i {
  grid-row: 1 / span 2;
  width: 10px;
  height: 100%;
  min-height: 34px;
  border-radius: 999px;
}

.region-legend-item strong {
  font-size: 14px;
}

.region-legend-item span {
  color: var(--muted);
  font-size: 13px;
}

.chapter-focus {
  padding: 16px;
}

.chapter-focus-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 12px 14px;
}

.chapter-focus-summary strong {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.chapter-focus-summary span {
  font-weight: 700;
}

.traffic-green {
  background: #e8f5ec;
  color: var(--ok);
}

.traffic-yellow {
  background: #fff3df;
  color: var(--warn);
}

.traffic-red {
  background: #fff0ee;
  color: var(--bad);
}

.traffic-zero {
  background: #eef1f5;
  color: var(--missing);
}

.bar-row {
  display: grid;
  grid-template-columns: 210px minmax(180px, 1fr) 70px;
  align-items: center;
  gap: 12px;
}

.role-dashboard-row {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(560px, 1.6fr);
  align-items: center;
  gap: 14px;
}

.bar-label strong,
.bar-label span {
  display: block;
}

.bar-label strong {
  font-size: 20px;
}

.bar-label span {
  color: var(--muted);
  font-size: 13px;
}

.role-meta {
  display: grid;
  gap: 3px;
  margin-top: 5px;
}

.role-dashboard-row.detail-mode .role-meta {
  margin-top: 1px;
}

.role-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.role-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
}

.role-meta-grid span {
  flex: 1 1 45%;
  min-width: 160px;
}

.role-stack {
  display: flex;
  min-height: 64px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf0f4;
}

.role-segment {
  display: grid;
  min-width: 0;
  place-content: center;
  padding: 6px 8px;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
}

.role-segment.role-segment-open {
  outline: 2px solid #ffffff;
  outline-offset: -3px;
}

.role-segment strong,
.role-segment span {
  display: block;
  line-height: 1.05;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.role-segment strong {
  font-size: 13px;
  font-weight: 700;
}

.role-segment span {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.role-dashboard-row.detail-mode {
  display: contents;
}

@media (min-width: 921px) {
  .bars.chapter-detail {
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: 20px;
  }
}

.bar-track {
  position: relative;
  height: 24px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--brand);
}

.bar-value {
  font-weight: 700;
  text-align: right;
}

.donut-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 16px 20px;
}

.donut {
  width: 180px;
  height: 180px;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  top: 18px;
  left: 16px;
  width: 180px;
  height: 180px;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-center strong,
.donut-center span,
.legend span {
  display: block;
}

.donut-center strong {
  font-size: 30px;
}

.donut-center span,
.legend {
  color: var(--muted);
}

.legend {
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.35;
}

th {
  position: sticky;
  top: 0;
  background: var(--brand);
  color: #ffffff;
}

th .sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 0;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  text-align: left;
  font-weight: 700;
  font-size: 15px;
}

th .sort-button:hover {
  background: transparent;
}

th .sort-button::after {
  content: "↕";
  opacity: 0.65;
  font-size: 12px;
}

th .sort-button.active[data-dir="desc"]::after {
  content: "↓";
  opacity: 1;
}

th .sort-button.active[data-dir="asc"]::after {
  content: "↑";
  opacity: 1;
}

.mini-progress {
  height: 8px;
  min-width: 90px;
  margin-bottom: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f4;
}

.mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}

.num-cell {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
}

.num-cell.good {
  color: var(--ok);
}

.num-cell.warn {
  color: var(--warn);
}

.num-cell.bad {
  color: var(--bad);
}

.num-cell.muted {
  color: var(--missing);
}

.rate-cell {
  min-width: 120px;
}

.rate-cell strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.small {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.detail-row td {
  background: #fafbfc;
}

.people-stack {
  display: grid;
  gap: 12px;
}

.person-card {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) auto minmax(520px, 1.8fr);
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.person-card:has(.status.complete) {
  border-top: 5px solid var(--ok);
}

.person-card:has(.status.learning) {
  border-top: 5px solid var(--warn);
}

.person-card:has(.status.not-started),
.person-card:has(.status.vacant) {
  border-top: 5px solid var(--bad);
}

.person-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.person-main strong {
  display: block;
  font-size: 17px;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 700;
  white-space: nowrap;
}

.complete {
  background: #e8f5ec;
  color: var(--ok);
}

.learning {
  background: #fff3df;
  color: var(--warn);
}

.missing,
.vacant,
.not-started,
.not-complete {
  background: #fff0ee;
  color: var(--bad);
}

.course-grid,
.course-bar {
  display: grid;
  gap: 10px;
}

.course-bar {
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf0f4;
}

.course-card {
  position: relative;
  border: 1px solid var(--line);
  border-left: 5px solid var(--bad);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 10px 10px 30px;
}

.traffic-dot {
  position: absolute;
  top: 12px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.course-card.done {
  border-left-color: var(--ok);
}

.course-card.learning {
  border-left-color: var(--warn);
}

.course-card.missing {
  border-left-color: var(--missing);
}

.course-card.not-started {
  border-left-color: var(--bad);
}

.course-segment {
  display: grid;
  align-content: center;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.72);
  padding: 0 8px;
}

.course-bar {
  height: 51px;
}

.course-segment:last-child {
  border-right: 0;
}

.course-segment.done {
  background: #e8f5ec;
  color: var(--ok);
}

.course-segment.learning {
  background: #fff3df;
  color: var(--warn);
}

.course-segment.not-started {
  background: #fff0ee;
  color: var(--bad);
}

.course-segment.missing {
  background: #eef1f5;
  color: var(--missing);
}

.course-segment strong,
.course-segment span,
.course-segment small {
  display: block;
}

.course-segment a {
  display: inline-block;
  color: inherit;
  text-decoration: underline;
}

.course-segment a:hover {
  text-decoration: underline;
}

.course-name-link {
  display: block;
  color: inherit;
  text-decoration: underline;
}

.course-code-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.course-segment strong {
  font-size: clamp(10px, 2.8vw, 15px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.course-segment span {
  margin-top: 2px;
  color: inherit;
  font-size: clamp(10px, 2.8vw, 15px);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.course-segment small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: inherit;
  font-size: clamp(9px, 2.2vw, 11px);
  line-height: 1.25;
  opacity: 0.92;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-course-bar .course-segment {
  display: grid;
  place-content: center;
  text-align: center;
}

.compact-course-bar .course-segment strong {
  font-size: clamp(10px, 2.8vw, 14px);
}

.compact-course-bar .course-segment span {
  font-size: clamp(10px, 2.8vw, 14px);
}

.course-links {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.course-link-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
}

.course-link-item:hover {
  border-color: var(--brand);
  background: #fff7f8;
}

.course-link-item strong {
  display: grid;
  place-content: center;
  min-height: 36px;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  font-size: 14px;
}

.course-link-item span {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
  word-break: break-word;
}

.course-link-item em {
  color: var(--brand);
  font-style: normal;
}

.course-card strong,
.course-card span,
.course-card small {
  display: block;
}

.course-card span {
  margin: 4px 0;
  font-weight: 700;
}

.course-card small {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 920px) {
  .app {
    width: min(100% - 20px, 1360px);
    padding-top: 16px;
  }

  .topbar,
  .scope-panel,
  .grid {
    display: block;
  }

  .chapter-pills,
  .scope-row {
    margin-top: 10px;
  }

  .panel,
  .grid {
    margin-bottom: 16px;
  }

  .kpis {
    grid-template-columns: 1fr 1fr;
  }

  .bar-row,
  .role-dashboard-row,
  .person-card {
    grid-template-columns: 1fr;
  }

  .region-legend {
    grid-template-columns: 1fr;
  }

  .chapter-focus-summary {
    display: block;
  }

  .bar-value {
    text-align: left;
  }
}

.top-button { position: fixed; right: 16px; bottom: 16px; z-index: 20; min-height: 30px; padding: 5px 9px; border: 0; border-radius: 999px; background: #ffffff; color: var(--muted); font-weight: 700; font-size: 10px; box-shadow: 0 2px 8px #0002; }
.mobile-landscape-note { display: none; margin: 8px 0 16px; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
@media (max-width: 700px) { .mobile-landscape-note { display: block; } .app { width: min(100% - 16px, 1360px); padding-top: 14px; } .role-stack { overflow-x: auto; } }

/* LT Academy BNI theme */
:root {
  --bg: #f3f4f6;
  --panel: #ffffff;
  --ink: #222222;
  --muted: #5f6670;
  --line: #d7dbe0;
  --brand: #cf2030;
  --brand-dark: #a51c30;
  --ok: #14743f;
  --warn: #aa6200;
  --bad: #cf2030;
  --missing: #6f7782;
}

.install-guide {
  border: 1px solid var(--line);
  border-left: 6px solid var(--brand);
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 16px;
  padding: 14px 16px;
  color: var(--ink);
  line-height: 1.5;
}

.install-guide strong,
.install-guide b {
  color: var(--brand);
}

.person-title {
  line-height: 1.25;
}

.person-role-name {
  font-size: 12px;
  font-weight: 800;
}

.member-expiry {
  display: inline;
  font-size: 12px;
  font-weight: 800;
}

.expiry-valid {
  color: var(--ok);
}

.expiry-renew,
.renewal-alert {
  color: var(--bad) !important;
  font-weight: 900;
}

.expiry-unknown {
  color: var(--muted);
}

.renewal-line {
  display: inline;
  margin-left: 4px;
  color: var(--bad) !important;
  font-size: 1em;
  font-weight: 900;
}

.role-segment.full {
  background: #14743f !important;
  color: #ffffff;
}

.role-segment.over50 {
  background: #f0b429 !important;
  color: #ffffff;
}

.role-segment.under50 {
  background: #b42318 !important;
  color: #ffffff;
}

.role-segment.zero {
  background: #7a828e !important;
  color: #ffffff;
}

.course-segment.done {
  background: #e8f5ec !important;
  color: #14743f;
}

.course-segment.learning {
  background: #fff3df !important;
  color: #aa6200;
}

.course-segment.not-started {
  background: #fff0ee !important;
  color: #b42318;
}

.course-segment.missing {
  background: #eef1f5 !important;
  color: #7a828e;
}

.renewal-main {
  background: #f1f3f6;
  color: var(--ink);
  font-weight: 800;
}

.renewal-main:hover,
.renewal-main.active {
  background: var(--brand);
  color: #ffffff;
}

.renewal-list {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: start;
  column-gap: 14px;
  row-gap: 3px;
  align-content: start;
}

.renewal-blocks {
  display: grid;
  gap: 8px 24px;
}

.renewal-blocks-2 {
  grid-template-columns: 1fr 1fr;
}

.renewal-blocks-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

#roleDetailBody {
  padding: 16px;
}

.role-detail-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.role-detail-list {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  justify-content: start;
  column-gap: 14px;
  row-gap: 3px;
  align-content: start;
}

.role-detail-item {
  display: contents;
}

.role-detail-item strong,
.role-detail-item span,
.role-detail-item em {
  text-align: left;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 920px) {
  .role-detail-blocks {
    grid-template-columns: 1fr;
  }
}

.renewal-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sort-button {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f3f6;
  color: var(--ink);
  font-size: 13px;
}

.sort-button.active,
.sort-button:hover {
  background: var(--brand);
  color: #ffffff;
}

.renewal-item {
  display: contents;
}

.renewal-item strong,
.renewal-item span,
.renewal-item em {
  text-align: left;
  color: var(--ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  padding: 2px 0;
  border-bottom: 1px solid var(--line);
}

.renewal-item strong {
  font-weight: 800;
}

.renewal-item .role-red-1 {
  color: #7a0f1c;
  font-weight: 800;
}

.renewal-item .role-red-2 {
  color: #b42318;
  font-weight: 700;
}

.renewal-item .role-red-3 {
  color: #c25c4f;
  font-weight: 700;
}


.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 920px) {
  .renewal-item {
    grid-template-columns: 1fr;
  }
}

#scopeTitle { display: none; }

#pullRefreshIndicator {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
}

/* NO-MSP (2026-10-11): mức <=20 ngày nền trắng, chữ tối */
.role-segment.d0 {
  background: #ffffff !important;
  color: #000000;
  box-shadow: inset 0 0 0 1px #c9d1db;
}
.role-segment.d0 strong,
.role-segment.d0 span {
  text-shadow: none;
}
.role-segment.d0.role-segment-open {
  outline-color: #000000;
}
.role-segment.d30 {
  background: #8b1a1a !important;
}

/* NO-MSP DS (2026-10-12): thêm cột Induction date trước cột Ngày */
.role-detail-list.nomsp-cols-4 {
  grid-template-columns: max-content max-content max-content max-content;
}
.role-detail-item.nomsp-head strong,
.role-detail-item.nomsp-head span,
.role-detail-item.nomsp-head em {
  color: var(--muted);
  font-weight: 500;
  font-size: 11px;
}

/* NO-MSP DS (2026-10-12): cột KV (trang Vùng) + dòng thống kê SL theo KV / Chapter */
.role-detail-list.nomsp-cols-5 {
  grid-template-columns: max-content max-content max-content max-content max-content;
}
.nomsp-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.nomsp-stats-label {
  color: var(--muted);
  font-weight: 700;
}
.nomsp-stat {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f3f6;
  color: var(--ink);
  font-weight: 500;
}
.nomsp-stat strong {
  font-weight: 700;
}

/* Số lượng trong dòng "Thống kê theo KV/Chapter": đậm, đỏ, to hơn chữ chip 2pt (user 2026-10-12) */
.nomsp-stat .nomsp-stat-n {
  color: #cf2030;
  font-weight: 800;
  font-size: calc(13px + 2pt);
}

/* DS chi tiết nằm ngay dưới hàng tiến độ vừa bấm (2026-10-12) */
#dashboardRows > .role-detail-section.inline-detail {
  grid-column: 1 / -1;
  margin: 0 0 6px;
  border: 1px solid #cf2030;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08);
}

/* ===== Riêng academy.hn6.vn (2026-10-20) ===== */
[hidden] { display: none !important; }
.acad-draft { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #fff3cd; color: #7a5200; font-weight: 700; text-align: center; }
.acad-title { margin: 0; font-size: 13pt; font-weight: 900; color: #a51c30; text-transform: uppercase; }
.acad-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.acad-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: 6px; vertical-align: middle; }
.acad-legend span { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
.acad-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
#nomspPanel, #mspPanel { margin-bottom: 14px; }
/* NO-MSP 4 mức: Xanh ≤9%, Vàng ≤15%, Đỏ ≤20%, Xám đen >20% */
.role-segment.nm9 { background: #14743f !important; }
.role-segment.nm15 { background: #f0b429 !important; }
.role-segment.nm20 { background: #b42318 !important; }
.role-segment.nmx { background: #3d434c !important; }
.acad-empty-bar { display: grid; place-content: center; width: 100%; color: var(--muted); font-size: 12px; font-weight: 700; }
/* DS chi tiết bung ngay dưới hàng vừa bấm (như banlt) */
.bars > .acad-detail { margin: 0 0 6px; border: 1px solid #cf2030; box-shadow: 0 6px 18px rgba(16, 24, 40, 0.08); }
.acad-detail-body { padding: 16px; }
.role-detail-list.acad-cols-2 { grid-template-columns: max-content max-content; }
.role-detail-list.acad-cols-3 { grid-template-columns: max-content max-content max-content; }
.role-detail-list.acad-cols-4 { grid-template-columns: max-content max-content max-content max-content; }
.acad-foot { color: var(--muted); font-size: 12px; text-align: center; margin: 4px 0 24px; }
.acad-scope-line { display: block; margin: 2px 0 4px; color: #a51c30; font-size: 11pt; font-weight: 700; }
