/* Năng suất ĐTV Autocall – tông xanh VNPT */
:root {
  --navy: #003B7A;
  --blue: #0066B3;
  --sky: #7FB2E3;
  --pale: #DCE9F7;
  --bg: #F3F7FC;
  --ink: #0F1E33;
  --muted: #4A5A70;
  --line: #E3EDF8;
  --green: #1F6B3A;
  --red: #C62828;
  --red-bg: #FDECEC;
  --orange: #D9640A;
  --orange-bg: #FFF1E3;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: 'Be Vietnam Pro', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
a { color: var(--blue); }
small { font-weight: 500; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Thanh đầu trang */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--navy); color: #fff; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.logo { background: #fff; color: var(--navy); font-weight: 800; padding: 4px 10px; border-radius: 8px; letter-spacing: .5px; }
.topbar nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.topbar nav a { color: #fff; text-decoration: none; opacity: .9; }
.topbar nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: #fff; padding: 56px 0 64px; }
.hero h1 { margin: 10px 0 14px; font-size: 46px; line-height: 1.15; font-weight: 800; }
.hero .lead { max-width: 780px; font-size: 18px; color: var(--pale); margin: 0 0 32px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); }
.hero .eyebrow { color: #A9CDF0; }
.eyebrow.is-red { color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; }
.stat.is-key { box-shadow: 0 0 0 3px #A9CDF0; }
.stat .k { font-size: 14px; color: var(--muted); }
.stat .v { font-size: 34px; font-weight: 800; color: var(--navy); }
.stat .v small { font-size: 16px; margin-left: 6px; }
.stat .s { font-size: 14px; font-weight: 600; color: var(--green); }

/* Khung mục */
.sec { padding: 64px 0 0; display: flex; flex-direction: column; gap: 18px; }
.sec h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 800; color: var(--navy); }
.note { margin: 0; font-size: 14px; color: var(--muted); max-width: 900px; }
.card { background: #fff; border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--line); }
.card h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.card h3 small { color: var(--muted); font-size: 14px; }
.big { margin: 0; font-size: 30px; font-weight: 800; color: var(--navy); }
.big small { font-size: 14px; color: var(--muted); font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.grid-warn { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.facts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--ink); }
.up, .facts b.up { color: var(--green); }
.down, .facts b.down { color: var(--red); }
.warn .big small { display: block; margin-top: 2px; }

/* Cột trước / sau */
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--blue); margin-right: 6px; vertical-align: -1px; }
.legend i.is-muted { background: var(--sky); }
.legend b { color: var(--green); }
.vbars { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; border-bottom: 2px solid var(--pale); padding-top: 8px; }
.vb { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.vb-tag { font-size: 14px; font-weight: 700; color: var(--green); }
.vb-pair { display: flex; align-items: flex-end; gap: 4px; }
.vb-bar { width: 26px; background: var(--blue); border-radius: 6px 6px 0 0; }
.vb-bar.is-muted { background: var(--sky); }
.vb-x { font-size: 14px; font-weight: 600; }
.vb-sub { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 8px; }

/* Điểm chính */
.points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.points li { padding: 10px 14px; border-radius: 10px; background: #EEF5FC; border-left: 4px solid var(--blue); }
.points li.is-warn { background: var(--orange-bg); border-left-color: var(--orange); }

/* Thẻ theo tập */
.tap header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tap h3 { margin: 0; }
.share { font-size: 12px; font-weight: 700; color: var(--blue); background: #EEF5FC; padding: 2px 8px; border-radius: 999px; }
.tap .big { margin-top: 8px; font-size: 26px; }
.mbars { display: flex; align-items: flex-end; gap: 10px; height: 140px; margin-top: 12px; border-bottom: 2px solid var(--pale); }
.mb { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12px; }
.mb span { font-weight: 700; color: var(--navy); }
.mb i { width: 100%; max-width: 38px; background: var(--blue); border-radius: 6px 6px 0 0; }
.mb:last-child i { background: var(--navy); }
.mb em { font-style: normal; color: var(--muted); margin-bottom: -22px; }
.trend { margin: 28px 0 0; font-size: 14px; font-weight: 700; }
.trend.is-up { color: var(--green); }
.trend.is-down { color: var(--red); }

/* Thanh ngang nghiệp vụ */
.hbars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hb { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 12px; font-size: 14px; }
.hb-k { font-weight: 600; display: flex; flex-direction: column; }
.hb-k small { color: var(--muted); font-size: 12px; }
.hb-track { height: 16px; background: var(--line); border-radius: 8px; overflow: hidden; }
.hb-bar { height: 100%; background: var(--blue); border-radius: 8px; }
.hb-v { font-weight: 700; color: var(--green); text-align: right; }
.hb.is-neg .hb-bar { background: var(--orange); }
.hb.is-neg .hb-v { color: var(--red); }

/* Vinh danh */
.hero-card { position: relative; border-top: 6px solid var(--blue); }
.hero-card.r1 { border-top-color: #C9A227; }
.hero-card.r2 { border-top-color: #8F9BAA; }
.hero-card.r3 { border-top-color: #B5763A; }
.medal { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--navy); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.r1 .medal { background: #C9A227; }
.r2 .medal { background: #8F9BAA; }
.r3 .medal { background: #B5763A; }

/* Bảng xếp hạng */
.tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.tools input { font: inherit; padding: 10px 14px; border: 1px solid var(--pale); border-radius: 10px; min-width: 260px; background: #fff; }
.key { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; min-width: 1040px; border-collapse: collapse; font-size: 14px; }
th { background: var(--pale); color: var(--navy); text-align: right; padding: 12px 10px; font-weight: 700; white-space: nowrap; }
th small { font-weight: 500; }
td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:nth-child(2), td.name { text-align: left; }
.c { text-align: center; }
td.name { font-weight: 600; }
td.weak { color: var(--red); font-weight: 600; }
.bq { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bq b { min-width: 40px; text-align: right; }
.bqbar { width: 110px; height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.bqbar i { display: block; height: 100%; background: var(--blue); }
tr.lv-top td:first-child { font-weight: 800; color: var(--navy); }
tr.lv-orange { background: var(--orange-bg); }
tr.lv-orange .bqbar i { background: var(--orange); }
tr.lv-red { background: var(--red-bg); }
tr.lv-red .bqbar i { background: var(--red); }
tr.lv-red td:first-child, tr.lv-red td.name { color: var(--red); }
.spark { width: 80px; height: 30px; }
.spark polyline { fill: none; stroke: var(--blue); stroke-width: 2; }
tr.lv-red .spark polyline { stroke: var(--red); }
tr.lv-orange .spark polyline { stroke: var(--orange); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--muted); white-space: nowrap; }
.badge.is-top { background: var(--navy); color: #fff; }
.badge.is-ok { background: #E3F1E7; color: var(--green); }
.badge.is-orange { background: var(--orange); color: #fff; }
.badge.is-red { background: var(--red); color: #fff; }

/* Cảnh báo */
.warn { border-left: 6px solid var(--orange); background: linear-gradient(0deg, #fff 60%, var(--orange-bg)); }
.warn.is-red { border-left-color: var(--red); background: linear-gradient(0deg, #fff 60%, var(--red-bg)); }
.warn header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.warn .rk { font-size: 13px; font-weight: 700; color: var(--muted); }
.warn h3 { margin: 0 0 6px; }
.warn .big { font-size: 24px; color: var(--orange); }
.warn.is-red .big { color: var(--red); }
.advice { border-left: 6px solid var(--navy); }

/* Cách tính, chân trang */
.defs { margin: 0; padding: 22px 24px 22px 44px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.defs b { color: var(--ink); }
.foot { margin-top: 64px; background: var(--navy); color: var(--pale); padding: 28px 0; font-size: 13px; }
.foot .wrap { display: flex; flex-direction: column; gap: 6px; }
.foot b { color: #fff; font-size: 15px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .sec h2 { font-size: 24px; }
  .stat .v { font-size: 28px; }
  .topbar nav { gap: 12px; font-size: 13px; }
  .hb { grid-template-columns: 110px 1fr 70px; }
  .vb-bar { width: 18px; }
  .tools input { min-width: 0; width: 100%; }
  .grid-2, .grid-3, .grid-4, .grid-warn { grid-template-columns: 1fr; }
}

/* Bổ sung 15/11/2026: bán gói xếp chồng, so sánh tháng mới */
.legend i.is-bg, .vb-bar.is-bg { background: #E39A2D; }
.vb-stack { display: flex; flex-direction: column; }
.vb-stack .vb-bar.is-bg { border-radius: 6px 6px 0 0; }
.vb-stack .vb-bar.is-bg + .vb-bar { border-radius: 0; }
.stats-light .stat { border: 1px solid var(--line); }
.stats-light .stat .s { color: var(--muted); font-weight: 500; }
.stat .s b.up { color: var(--green); } .stat .s b.down { color: var(--red); }
table.tbl-sm { min-width: 640px; }
.sec h3.sub { margin: 14px 0 0; font-size: 22px; font-weight: 800; color: var(--navy); }
#dt-tap { min-width: 900px; }
#dt-tap th:first-child { text-align: left; }
/* Xếp hạng tổng doanh thu theo tháng */
.mt-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-tab { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pale); background: #fff; color: var(--navy); cursor: pointer; }
.mt-tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mt-panel { display: flex; flex-direction: column; gap: 10px; }
.mt-panel[hidden] { display: none; }
table.tbl-mt { min-width: 980px; }
.tbl-mt th:nth-child(3) { text-align: left; }
.tbl-mt th:nth-child(2) { text-align: center; }
.tbl-mt th:last-child, .tbl-mt td.note-cell { text-align: left; }
.tbl-mt td { vertical-align: top; }
.tbl-mt td small { display: block; font-size: 12px; font-weight: 600; }
.tbl-mt td small.up { color: var(--green); }
.tbl-mt td small.down { color: var(--red); }
.rk-up { color: var(--green); font-weight: 700; font-size: 13px; }
.rk-dn { color: var(--red); font-weight: 700; font-size: 13px; }
.rk-eq { color: var(--muted); font-size: 13px; }
.note-cell { white-space: normal; min-width: 170px; }
.tag-up, .tag-dn { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin: 0 4px 4px 0; }
.tag-up { background: #E3F1E7; color: var(--green); }
.tag-dn { background: var(--red-bg); color: var(--red); }
.muted { color: var(--muted); font-size: 13px; }

/* Biểu đồ cột nhóm tăng thêm theo tập */
.gbars { display: flex; align-items: flex-end; gap: 12px; border-bottom: 2px solid var(--pale); padding-top: 12px; margin-bottom: 18px; }
.gb { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.gb-bars { display: flex; align-items: flex-end; gap: 4px; width: 100%; justify-content: center; }
.gb-col { flex: 1; max-width: 40px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.gb-col span { font-size: 11px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.gb-col i { display: block; width: 100%; border-radius: 5px 5px 0 0; }
.gb-x { font-size: 14px; font-weight: 600; margin-top: 4px; white-space: nowrap; }
.gb-sub { font-size: 12px; color: var(--muted); margin-bottom: 8px; text-align: center; }
.table-wrap.flat { border: 0; border-radius: 0; margin-bottom: 8px; }
#tg-tap th:first-child { text-align: left; }
#tg-tap th:nth-child(2) { text-align: right; }
#tg-tap td small { display: block; font-size: 12px; font-weight: 600; }
#tg-tap tr.row-total td { background: #EEF5FC; font-weight: 700; border-top: 2px solid var(--pale); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
@media (max-width: 640px) {
  .gbars { gap: 6px; }
  .gb-bars { gap: 2px; }
  .gb-col span { display: none; }
  .gb-x { font-size: 12px; }
  .gb-x .hide-sm { display: none; }
}
#dt-tap th:nth-child(2) { text-align: right; }
#dt-tap tr.row-total td { background: #EEF5FC; font-weight: 700; border-top: 2px solid var(--pale); }
td.up { color: var(--green); font-weight: 600; } td.down { color: var(--red); font-weight: 600; }

/* Phân tích tập bán gói */
.bg-tab, .bg-sort { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pale); background: #fff; color: var(--navy); cursor: pointer; }
.bg-tab.is-on, .bg-sort.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.bg-panel { display: flex; flex-direction: column; gap: 10px; }
.bg-panel[hidden] { display: none; }
.mixes { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 12px; }
.mix { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 10px; }
.mix-k { font-weight: 700; font-size: 14px; display: flex; flex-direction: column; }
.mix-k small { font-weight: 500; font-size: 12px; color: var(--muted); }
.mix-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; background: var(--line); }
.mix-bar i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; }
#goi-tbl th:first-child { text-align: left; }
#goi-tbl th:nth-child(2) { text-align: right; }
#goi-tbl tr.row-total td { background: #EEF5FC; font-weight: 700; border-top: 2px solid var(--pale); }
table.tbl-bg { min-width: 900px; }
.tbl-bg th:nth-child(3) { text-align: left; }
.tbl-bg th:nth-child(1), .tbl-bg th:nth-child(2) { text-align: center; }
.tbl-bg th:last-child, .tbl-bg td.goi-cell { text-align: left; }
.tbl-bg td { vertical-align: top; }
.tbl-bg td small { display: block; font-size: 12px; font-weight: 600; }
.tbl-bg td small.up { color: var(--green); }
.tbl-bg td small.down { color: var(--red); }
.tbl-bg td.goi-cell { white-space: normal; min-width: 170px; }
.tbl-bg td.goi-cell small { display: inline; color: var(--muted); font-weight: 500; }
.tbl-bg td.rk-tb { font-weight: 800; color: var(--navy); }
.tbl-bg td.rk-dt { color: var(--muted); }
.tbl-bg.by-dt td.rk-tb { font-weight: 400; color: var(--muted); }
.tbl-bg.by-dt td.rk-dt { font-weight: 800; color: var(--navy); }
@media (max-width: 640px) {
  .mix { grid-template-columns: 56px 1fr; }
  .mix-bar i { font-size: 0; }
}.stack { display: flex; flex-direction: column; gap: 20px; }

/* Chỉ số tiến trình */
td.tt-ok { color: var(--green); font-weight: 600; background: #EEF7F0; }
td.tt-no { color: var(--red); font-weight: 600; background: var(--red-bg); }
table#tt-tbl { min-width: 1280px; font-size: 13px; }
#tt-tbl th { white-space: normal; text-align: center; vertical-align: bottom; line-height: 1.3; }
#tt-tbl th:nth-child(2) { text-align: left; }
#tt-tbl td { text-align: center; padding: 8px 6px; }
#tt-tbl td.name { text-align: left; }
#tt-sum th:first-child { text-align: left; }
#tt-sum td small { color: var(--muted); font-weight: 500; }.stat .v.v-sm { font-size: 24px; white-space: nowrap; }
table#tt-sum { min-width: 0; }
#tt-sum .bqbar { width: 70px; }
#tt-sum td, #tt-sum th { padding: 9px 8px; }.grid-2.tt-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1100px) { .grid-2.tt-grid { grid-template-columns: 1fr; } }/* Bảng tiến trình gọn, vừa khung không cần cuộn ngang (máy tính) */
table#tt-tbl { min-width: 0; width: 100%; font-size: 12px; table-layout: auto; }
#tt-tbl th { padding: 6px 3px; font-size: 11.5px; white-space: nowrap; }
#tt-tbl th small { font-size: 10.5px; }
#tt-tbl td { padding: 5px 3px; white-space: nowrap; }
#tt-tbl td.name { white-space: normal; min-width: 120px; font-size: 12px; }
#tt-tbl .badge { font-size: 11px; padding: 2px 7px; }
#tt-tbl tr.grp th { background: var(--navy); color: #fff; font-size: 11.5px; text-align: center; padding: 5px 3px; border-left: 2px solid #fff; }
#tt-tbl tr.grp th:first-child { background: var(--pale); border-left: 0; }
#tt-tbl td:nth-child(4), #tt-tbl td:nth-child(8), #tt-tbl td:nth-child(12),
#tt-tbl tr:not(.grp) th:nth-child(4), #tt-tbl tr:not(.grp) th:nth-child(8), #tt-tbl tr:not(.grp) th:nth-child(12) { border-left: 2px solid #fff; }
@media (max-width: 900px) { table#tt-tbl { min-width: 860px; } }
/* ===== Web chỉ số Autocall Tây Ninh so toàn quốc ===== */
.tab { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pale); background: #fff; color: var(--navy); cursor: pointer; }
.tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-panel { display: flex; flex-direction: column; gap: 10px; }
.tab-panel[hidden] { display: none; }
.badge.is-mid { background: #EEF5FC; color: var(--blue); }

/* thẻ chương trình */
.ct-card { display: flex; flex-direction: column; gap: 8px; border-top: 6px solid var(--blue); }
.ct-card.t-good { border-top-color: var(--green); }
.ct-card.t-bad { border-top-color: var(--red); }
.ct-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ct-card header h3 { margin: 0; font-size: 17px; }
.ct-card .big { font-size: 40px; line-height: 1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ct-card .big small { font-size: 13px; }
.ct-card .big .rk-up, .ct-card .big .rk-dn, .ct-card .big .rk-eq { font-size: 15px; }
.ct-dt { margin: 0; font-size: 14px; color: var(--muted); }
.ct-dt b { color: var(--ink); }
.ct-kpi { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ct-kpi li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line); }
.ct-kpi li span { color: var(--muted); }
.ct-kpi li b { font-size: 15px; text-align: right; }
.ct-kpi li em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--muted); }
.ct-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.rk-spark polyline { stroke: var(--navy); stroke-width: 2; fill: none; }
.rk-spark circle { fill: var(--navy); }
.rk-spark .ln-good { stroke: var(--green); stroke-width: 1; stroke-dasharray: 2 2; opacity: .6; }
.rk-spark .ln-bad { stroke: var(--red); stroke-width: 1; stroke-dasharray: 2 2; opacity: .6; }

/* biểu đồ hạng */
.grid-2.db-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 1000px) { .grid-2.db-grid { grid-template-columns: 1fr; } }
.rk-chart { width: 100%; height: auto; display: block; }
.rk-chart .zone-good { fill: #E3F1E7; }
.rk-chart .zone-bad { fill: var(--red-bg); }
.rk-chart .ax { font-size: 11px; fill: var(--muted); }
.rk-chart .ln { fill: none; stroke-width: 2.5; }
.rk-chart .ln-th { stroke-width: 3.5; stroke-dasharray: 6 3; }
.rk-chart .lb { font-size: 12px; font-weight: 700; }
.legend i.zone-good-key { background: #E3F1E7; border: 1px solid var(--green); }
.legend i.zone-bad-key { background: var(--red-bg); border: 1px solid var(--red); }
td.rk { font-weight: 700; text-align: center; }
td.rk.good { color: var(--green); background: #EEF7F0; }
td.rk.bad { color: var(--red); background: var(--red-bg); }
td.rk.mid { color: var(--navy); }
td.rk small { font-weight: 500; color: var(--muted); }
#rk-tbl th:first-child { text-align: left; }
#rk-tbl th { text-align: center; }
#rk-tbl tr.row-total td { background: #EEF5FC; border-top: 2px solid var(--pale); }
#rk-tbl tr.row-total td.rk.good { background: #E3F1E7; }

/* bảng chi tiết chỉ số */
table.tbl-ct { min-width: 960px; }
.tbl-ct th:first-child { text-align: left; }
.tbl-ct td.name { white-space: normal; min-width: 280px; font-weight: 500; }
.tbl-ct td.name small { color: var(--muted); }
.tbl-ct td.up { color: var(--green); font-weight: 600; }
.tbl-ct td.down { color: var(--red); font-weight: 600; }
.tbl-ct tr.nhom-row td { background: #F3F7FC; color: var(--navy); font-weight: 800; text-transform: uppercase; letter-spacing: .8px; font-size: 12px; text-align: left; }
.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #EEF5FC; color: var(--blue); margin-left: 4px; }
.pill-mute { background: var(--line); color: var(--muted); }

/* điểm mạnh, yếu */
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rank-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.rank-list li em { font-style: normal; font-size: 13px; font-weight: 600; }
.card.strong { border-left: 6px solid var(--green); }
.card.strong li { background: #EEF7F0; }
.card.strong li em { color: var(--green); }
.card.weak { border-left: 6px solid var(--red); }
.card.weak li { background: var(--red-bg); }
.card.weak li em { color: var(--red); }

/* bảng 34 tỉnh */
table.tbl-xh { min-width: 720px; }
.tbl-xh th:nth-child(3) { text-align: left; }
.tbl-xh th:nth-child(1), .tbl-xh th:nth-child(2) { text-align: center; }
.tbl-xh tr.is-me td { background: #FFF6D6 !important; font-weight: 800; border-top: 2px solid #C9A227; border-bottom: 2px solid #C9A227; }.grid-2.db-grid { grid-template-columns: 1fr; }
.rk-chart .grid { stroke: var(--line); stroke-width: 1; }
.rk-chart .lb { font-size: 13px; }
#rk-tbl { min-width: 0; }.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

/* nhận xét từng chương trình */
.nx-card { display: flex; flex-direction: column; gap: 10px; border-top: 6px solid var(--blue); }
.nx-card.t-good { border-top-color: var(--green); }
.nx-card.t-bad { border-top-color: var(--red); }
.nx-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nx-card header h3 { margin: 0; }
.nx { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; }
.nx li { padding: 8px 12px; border-radius: 10px; background: #F3F7FC; border-left: 4px solid var(--pale); }
.nx li.nx-good { background: #EEF7F0; border-left-color: var(--green); }
.nx li.nx-bad { background: var(--red-bg); border-left-color: var(--red); }
.nx li.nx-tip { background: var(--orange-bg); border-left-color: var(--orange); }