:root {
--bg: #0b1220; --panel: #0f192c; --panel2: #13203a; --line: #1d2a44; --grid: #172238;
--text: #d6deec; --muted: #8492ad; --strong: #ffffff;
--gold: #c8992f; --navy: #1f3864; --accent: #c8992f; --head: #13203a;
--up: #26b36b; --down: #e5484d; --warn: #e0b341;
--s1: #c8992f; --s2: #38bdf8; --s3: #c084fc; --s4: #f472b6; --s5: #94a3b8; --s6: #26b36b;
--chip-on: #1c2c4c;
--font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--mono: ui-monospace, "SF Mono", Consolas, "Roboto Mono", monospace;
color-scheme: dark;
}
:root[data-theme="light"] {
--bg: #ffffff; --panel: #f6f8fb; --panel2: #eef2f8; --line: #dfe5ee; --grid: #eef1f6;
--text: #1b2433; --muted: #66728a; --strong: #0b1220; --accent: #1f3864; --head: #dce6f1;
--up: #1e7a46; --down: #a93434; --warn: #b07d10;
--s1: #b07d10; --s2: #0284c7; --s3: #7c3aed; --s4: #db2777; --s5: #64748b; --s6: #1e7a46;
--chip-on: #dce6f1;
color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 13px/1.45 var(--font); -webkit-text-size-adjust: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.btn, select, .o {
background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; white-space: nowrap;
}
.btn { cursor: pointer; }
.btn:hover, select:hover { border-color: var(--accent); }
.btn.chinh { background: var(--navy); border-color: var(--navy); color: #fff; }
:root[data-theme="dark"] .btn.chinh { background: var(--gold); border-color: var(--gold); color: #0b1220; }
.btn.ghost { background: transparent; }
input.o { background: var(--bg); min-width: 0; }
input.o:focus, select:focus { outline: none; border-color: var(--accent); }
.grow { flex: 1; }
.muted { color: var(--muted); }
.so { font-variant-numeric: tabular-nums; }
.tot { color: var(--up); }
.xau { color: var(--down); }
.top {
position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 7px 14px;
background: var(--panel); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 6px; white-space: nowrap; background: none; border: 0; padding: 4px 6px;
border-radius: 6px; cursor: pointer; }
.brand:hover, .brand[aria-expanded="true"] { background: var(--chip-on); }
.brand b { color: var(--gold); letter-spacing: .5px; }
.brand span { color: var(--strong); font-weight: 600; }
.brand i { font-style: normal; color: var(--muted); font-size: 10px; }
.top h1 { font-size: 14px; margin: 0; font-weight: 600; color: var(--strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu {
position: fixed; z-index: 60; min-width: 240px; padding: 6px; background: var(--panel); border: 1px solid var(--line);
border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,.35);
}
.menu .tieu { display: block; padding: 6px 10px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.menu a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 6px; text-decoration: none; }
.menu a:hover, .menu a:focus { background: var(--chip-on); outline: none; }
.menu a.on { color: var(--gold); font-weight: 600; }
.menu a em { font-style: normal; color: var(--muted); font-size: 11px; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
main.trang { max-width: 1680px; margin: 0 auto; padding: 14px 14px 40px; }
.dau { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 12px; }
.dau .nhan { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.dau h2 { margin: 2px 0 0; font-size: 22px; color: var(--strong); }
.dau h2 em { font-style: normal; color: var(--gold); }
.chon { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.chon label { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.doc-nhanh { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-bottom: 12px; }
.the { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.the .t { font-size: 11px; color: var(--muted); }
.the .v { font-size: 20px; font-weight: 700; color: var(--strong); font-variant-numeric: tabular-nums; }
.the .p { font-size: 12px; color: var(--muted); }
.ket-luan { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px;
padding: 10px 14px; margin-bottom: 12px; }
.ket-luan b { color: var(--strong); }
.ket-luan p { margin: 2px 0; }
.khung-bang { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cong-cu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); }
.cong-cu .tim { width: 260px; max-width: 100%; }
.loc-nhanh { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; font-size: 12px; }
.chip.on { background: var(--chip-on); border-color: var(--accent); color: var(--strong); }
.cuon { overflow: auto; max-height: calc(100vh - 230px); }
table.bang { border-collapse: separate; border-spacing: 0; width: 100%; font-variant-numeric: tabular-nums; }
.bang th, .bang td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bang th {
position: sticky; top: 0; z-index: 2; background: var(--head); color: var(--strong); font-weight: 600; font-size: 12px;
text-align: left; vertical-align: bottom; white-space: normal; min-width: 92px; line-height: 1.25;
}
.bang th.so, .bang td.so { text-align: right; }
.bang th .tt { display: flex; align-items: flex-end; gap: 4px; justify-content: space-between; }
.bang th.so .tt { flex-direction: row-reverse; }
.bang th button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; color: inherit; font-weight: 600; }
.bang th .loc { color: var(--muted); font-size: 11px; padding: 0 2px; border-radius: 4px; }
.bang th .loc.on { color: var(--gold); }
.bang th.nhom-dt { box-shadow: inset 0 3px 0 var(--s2); }
.bang th.nhom-ln { box-shadow: inset 0 3px 0 var(--s1); }
.bang th:first-child, .bang td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.bang th:first-child { z-index: 3; background: var(--head); }
.bang tbody tr:hover td { background: var(--panel2); }
.bang td.ma b { color: var(--strong); cursor: pointer; }
.bang td.ma small { display: block; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.bang td.trong { color: var(--muted); }
.chan-bang { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 10px; }
.trang-so { display: flex; gap: 6px; align-items: center; }
.hop {
position: fixed; z-index: 70; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px;
box-shadow: 0 14px 36px rgba(0,0,0,.35); min-width: 220px; max-height: 70vh; overflow: auto;
}
.hop h4 { margin: 0 0 8px; font-size: 12px; color: var(--strong); }
.hop label { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.hop .hang { display: flex; gap: 6px; margin-top: 8px; }
.hop .hang input { width: 100px; }
.hop .loi { color: var(--down); font-size: 12px; min-height: 16px; }
.menu-ma a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; }
.menu-ma a:hover { background: var(--chip-on); }
.ghi-chu { color: var(--muted); font-size: 12px; margin-top: 14px; }
.ghi-chu summary { cursor: pointer; color: var(--text); }
.ghi-chu li { margin: 3px 0; }
.trong-tam { padding: 40px 10px; text-align: center; color: var(--muted); }
@media (max-width: 700px) {
main.trang { padding: 10px 10px 30px; }
.dau h2 { font-size: 18px; }
.top h1 { font-size: 13px; }
.cuon { max-height: none; }
.bang th, .bang td { padding: 6px 8px; }
.bang td.ma small { max-width: 110px; }
.cong-cu .tim { width: 100%; }
.doc-nhanh { grid-template-columns: 1fr 1fr; gap: 8px; }
.the { padding: 8px 10px; }
.the .v { font-size: 17px; }
.chon { width: 100%; }
.chon label { flex: 1; }
.chon select { width: 100%; }
}
.the-tab { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 12px; overflow-x: auto; }
.the-tab button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; cursor: pointer; color: var(--muted);
font-weight: 600; white-space: nowrap; }
.the-tab button.on { color: var(--strong); border-bottom-color: var(--gold); }
.nhom-nut { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px; flex-wrap: wrap; }
.nhom-nut button { background: none; border: 0; padding: 4px 10px; border-radius: 5px; cursor: pointer; color: var(--muted); font-weight: 600; }
.nhom-nut button.on { background: var(--chip-on); color: var(--strong); }
.o-ma { width: 110px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.bang.bctc td:first-child { white-space: normal; min-width: 300px; max-width: 420px; }
.bang tr.cap0 td, .bang tr.cap1 td { font-weight: 700; color: var(--strong); }
.bang tr.nhom-cs td { background: var(--panel2); font-weight: 700; color: var(--gold); position: static; }
.bang td.nganh-cot, .bang th.nganh-cot { border-left: 1px solid var(--line); color: var(--muted); }
.bang th.ma-goc, .bang td.ma-goc { background: var(--chip-on); }
@media (max-width: 700px) {
.bang.bctc td:first-child { min-width: 170px; max-width: 200px; font-size: 12px; }
.o-ma { width: 90px; }
}
.luoi-bd { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(520px, 100%), 1fr)); gap: 12px; }
.o-bd { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.o-bd h3 { margin: 0; font-size: 14px; color: var(--strong); }
.bd-dau { display: flex; align-items: center; gap: 8px; }
.btn.nho { padding: 2px 8px; font-size: 12px; }
.bd-chu { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 4px; }
.bd-chu button { background: none; border: 0; padding: 0; cursor: pointer; font-size: 12px; color: var(--text); display: inline-flex; gap: 5px; align-items: center; }
.bd-chu button.tat { opacity: .4; text-decoration: line-through; }
.bd-chu i, .bd-tip i, .vanh i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.bd-chu i.duong { height: 3px; border-radius: 2px; }
.bd-ve { position: relative; width: 100%; }
.bd-ve svg { display: block; }
.bd-ve .luoi { stroke: var(--grid); stroke-width: 1; }
.bd-ve .truc0 { stroke: var(--muted); stroke-width: 1; }
.bd-ve .nhan-truc { fill: var(--muted); font-size: 11.5px; font-family: var(--font); }
.bd-ve .vung-tro { fill: var(--chip-on); opacity: .55; }
.bd-ve .dv-trai, .bd-ve .dv-phai { position: absolute; top: -2px; font-size: 10px; color: var(--muted); }
.bd-ve .dv-trai { left: 0; } .bd-ve .dv-phai { right: 0; }
.bd-tip { position: absolute; z-index: 5; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12px;
pointer-events: none; min-width: 170px; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.bd-tip div { display: flex; gap: 6px; align-items: center; }
.bd-tip span { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; color: var(--strong); }
.bd-ghi { color: var(--muted); font-size: 11.5px; margin: 4px 0 0; }
.bd-so { margin-top: 6px; }
.vanh { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.vanh svg { flex: none; }
.vanh-t { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.vanh-v { fill: var(--strong); font-size: 15px; font-weight: 700; font-family: var(--font); }
.vanh ul { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; font-size: 12px; }
.vanh li { display: grid; grid-template-columns: 12px 1fr auto 64px; gap: 6px; align-items: center; padding: 2px 0; }
.vanh li b { color: var(--strong); font-variant-numeric: tabular-nums; }
.vanh li em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.nhay { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.nhay a { font-size: 12px; text-decoration: none; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.nhay a:hover { color: var(--strong); border-color: var(--accent); }
.canh-bao { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--warn); border-radius: 10px; padding: 8px 14px; margin-bottom: 12px; font-size: 12.5px; }
.canh-bao ul { margin: 4px 0 0; padding-left: 18px; }
.diem-lon { font-size: 30px; font-weight: 700; color: var(--strong); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.diem-lon.tot { color: var(--up); } .diem-lon.xau { color: var(--down); }
.diem-lon small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.san-bong { margin-top: 10px; }
.sb-hang { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 70px; gap: 8px; align-items: center; padding: 6px 0; font-size: 12px; }
.sb-hang.tong { border-top: 1px solid var(--line); font-weight: 700; color: var(--strong); }
.sb-truc { position: relative; height: 16px; background: var(--bg); border-radius: 4px; }
.sb-thanh { position: absolute; top: 3px; bottom: 3px; background: var(--s2); opacity: .55; border-radius: 3px; }
.sb-hang.tong .sb-thanh { background: var(--gold); }
.sb-cs { position: absolute; top: 2px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--strong); }
.sb-gia { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--down); }
.sb-so { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .sb-hang { grid-template-columns: 96px 1fr 58px; font-size: 11px; } }
.bd-ve .tro-doc, .o-bd .tro-doc { stroke: var(--muted); stroke-dasharray: 3 3; }
.o-bd svg .luoi { stroke: var(--grid); }
.o-bd svg .nhan-truc { fill: var(--muted); font-size: 11.5px; font-family: var(--font); }
.nen-so { font-size: 12px; color: var(--muted); min-height: 18px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.nen-so b { color: var(--strong); }
.nn-ngay { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.nn-ngay span { font-size: 11.5px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { #capNhat { display: none; } }
.gnav a svg { color: var(--tab); }
.gnav { display: flex; gap: 2px; align-items: stretch; }
.gnav a { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; }
.gnav a:hover { color: var(--strong); background: color-mix(in srgb, var(--tab, var(--muted)) 13%, transparent); }
.gnav a.on { color: var(--tab); background: color-mix(in srgb, var(--tab) 11%, transparent); box-shadow: inset 0 -2px var(--tab); border-radius: 6px 6px 0 0; }
.gnav svg { flex: none; }
@media (min-width: 701px) { .co-gnav .top h1 { display: none; } .gnav svg { width: 17px; height: 17px; } }
@media (max-width: 700px) {
.gnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
background: var(--panel); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.gnav a { flex-direction: column; gap: 2px; padding: 7px 2px 6px; font-size: 10.5px; border-radius: 0; justify-content: center; }
.gnav a.on { box-shadow: inset 0 2px var(--tab); border-radius: 0; color: var(--tab); }
body.co-gnav { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}
.goi-y { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; width: min(340px, calc(100vw - 24px)); max-height: 320px; overflow: auto;
background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.goi-y div { display: grid; grid-template-columns: 56px 1fr auto; gap: 8px; padding: 8px 10px; cursor: pointer; align-items: center; font-size: 12.5px; }
.goi-y div b { color: var(--strong); }
.goi-y div span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goi-y div em { font-style: normal; font-size: 11px; color: var(--muted); }
.goi-y div.on, .goi-y div:hover { background: var(--chip-on); }
.hs-gia { margin-top: 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
.hs-gia b { color: var(--strong); font-size: 18px; }
.hs-ten { font-size: 15px; color: var(--muted); font-weight: 500; font-style: normal; }
.the-ho-so { position: sticky; top: 46px; z-index: 30; background: var(--bg); }
.nhung .dau > div:first-child { display: none; }
.nhung label:has(> #ma), .nhung #formMa > button[type="submit"] { display: none; }
.nhung[data-the="bctc"] .dau, .nhung[data-the="sx"] .dau { display: none; }
.nhung label:has(> #sxMa), .nhung label:has(> #tdMa) { display: none; }
.nhung .dau { margin-bottom: 8px; }
.di-tiep { display: grid; gap: 8px; margin-top: 8px; }
.di-tiep button, .di-tiep a { display: grid; gap: 2px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
cursor: pointer; text-decoration: none; color: var(--text); }
.di-tiep button:hover, .di-tiep a:hover { border-color: var(--accent); }
.di-tiep b { color: var(--strong); }
.di-tiep span { font-size: 12px; color: var(--muted); }
.ket-luan.chua-du { border-left-color: var(--warn); }
@media (max-width: 700px) { .the-ho-so { top: 44px; } }
.tn { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 4px; padding: 0; border-radius: 50%; border: 1px solid var(--line);
background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1; cursor: pointer; vertical-align: 1px; flex: none; }
.tn:hover, .tn:focus { color: var(--strong); border-color: var(--accent); outline: none; }
.tn-hop { position: fixed; z-index: 80; max-width: min(320px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--line);
border-left: 3px solid var(--gold); border-radius: 8px; padding: 8px 11px; box-shadow: 0 12px 30px rgba(0,0,0,.35); font-size: 12.5px; }
.tn-hop b { color: var(--strong); }
.tn-hop p { margin: 3px 0 0; line-height: 1.45; }
.tuoi { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.cho { height: 12px; border-radius: 6px; margin: 7px 0; background: linear-gradient(90deg, var(--panel2) 25%, var(--chip-on) 50%, var(--panel2) 75%);
background-size: 200% 100%; animation: cho 1.2s linear infinite; }
.cho.ngan { width: 60%; }
@keyframes cho { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .cho { animation: none; } }
.chi-dt, .chi-the { display: none; }
.ds-the { display: grid; gap: 8px; padding: 10px; }
.kq-the { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.kq-dau { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; }
.kq-dau b { color: var(--strong); font-size: 15px; cursor: pointer; }
.kq-dau small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kq-dau em { font-style: normal; font-size: 11px; color: var(--muted); }
.kq-so { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kq-so span { display: block; font-size: 11px; color: var(--muted); }
.kq-so b { color: var(--strong); font-size: 14px; }
.kq-so i { font-style: normal; font-size: 12px; margin-left: 6px; }
.kq-nganh { margin-top: 5px; font-size: 11px; color: var(--muted); }
@media (max-width: 700px) {
.chi-dt { display: inline-flex; }
body.xem-the .chi-the { display: inline-block; }
body.xem-the #cotBtn { display: none; }
}
.luoi-bd > *, .doc-nhanh > * { min-width: 0; }
#sxNoiDung .o-bd, #tdKetQua .o-bd, #tlBang { overflow-x: auto; }
.tk-chip:empty { display: none; }
.tk-chip .tvnA-chip { padding: 5px 10px; font-size: 12px; white-space: nowrap; }
@media (max-width: 700px) {
#sxNoiDung .bang td:first-child, #tdKetQua .bang td:first-child { white-space: normal; min-width: 130px; }
body[data-tai-len] .top h1 { display: none; }
}
@media (max-width: 420px) {
body[data-tai-len] .brand span { display: none; }
}
.luoi-o [hidden], .chon-o[hidden], .trang [hidden] { display: none !important; }
body:not(.la-chu) .chi-chu { display: none !important; }
.nhung[data-the="td"] .dau, #tqTd #tdSoatXet, #tqTd .muc-lon { display: none; }
.lk-tai { font-size: 11.5px; color: var(--gold); text-decoration: none; align-self: center; white-space: nowrap; }
.lk-tai:hover { text-decoration: underline; }
.nhung[data-the="dg"]:not([hidden]) { display: flex; flex-direction: column; }
.nhung[data-the="dg"] > #ketLuan, .nhung[data-the="dg"] > #docNhanh { order: -2; }
.nhung[data-the="dg"] > .dau { order: -1; }
.ket-luan.can-soat { border-left-color: var(--warn); }
.the .v.canh { color: var(--warn); }
@media (min-width: 701px) and (max-width: 920px) {
.gnav svg { display: none; }
.gnav a { padding: 6px 7px; }
.co-gnav .brand span { display: none; }
}
@media (max-width: 700px) {
.ho-so-dau { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
.ho-so-dau > div:first-child { flex: 1; min-width: 0; }
#hsForm { width: auto; max-width: 96px; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
#hsForm label { font-size: 0; gap: 0; }
#hsForm .o-ma { width: 92px; font-size: 13px; }
.lk-tai { white-space: normal; text-align: right; font-size: 10.5px; line-height: 1.3; }
.ho-so-dau .nhan, .ho-so-dau .hs-ten { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-so-dau h2 { font-size: 20px; line-height: 1.25; }
.ho-so-dau .hs-ten { font-size: 12.5px; margin-top: 1px; }
.ho-so-dau .hs-gia { margin-top: 2px; }
.ho-so-dau .tuoi { font-size: 10.5px; }
.the-ho-so { gap: 0; }
.the-ho-so button { padding: 8px 6px; font-size: 12.5px; }
}
.ban-quyen { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 18px 0 4px; }
.mt { margin-top: 12px; }
.canh { color: var(--warn); }
.muc-lon { font-size: 15px; color: var(--strong); margin: 18px 0 8px; }
.ds-gon { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.ds-gon li { margin: 3px 0; }
.luoi-o { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.luoi-o label { display: grid; gap: 3px; font-size: 11px; color: var(--muted); }
.luoi-o .o, .luoi-o select { width: 100%; }
.chon-o { display: grid; gap: 6px; font-size: 13px; }
.chon-o label { display: flex; gap: 8px; align-items: flex-start; }
.tha { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 20px; border: 1.5px dashed var(--line); border-radius: 10px;
background: var(--bg); cursor: pointer; }
.tha b { color: var(--strong); }
.tha.tren, .tha:focus-visible { border-color: var(--gold); outline: none; }
.cong-cu-tl { display: flex; flex-wrap: wrap; gap: 8px; }
.trang-thai { font-size: 13px; min-height: 1.4em; }
.trang-thai ul { margin: 4px 0 0; padding-left: 18px; }
.bang.nhap td { padding: 4px 8px; }
.bang.nhap .so-o { width: 120px; text-align: right; font-variant-numeric: tabular-nums; padding: 4px 8px; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; width: min(620px, 94vw); }
dialog::backdrop { background: rgba(5, 10, 20, .55); }
dialog textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 8px; font: 12px/1.4 monospace; }
.in-dau, .in-chan { display: none; }
@media print {
:root, :root[data-theme="dark"] { --bg: #fff; --panel: #fff; --panel2: #f3f5f9; --line: #d5dbe5; --text: #18202e; --muted: #5a6476; --strong: #0b1220;
--gold: #a87d1f; --chip-on: #eef1f6; }
body { background: #fff; color: #18202e; }
header.top, .gnav, .menu, .dau form, .the-tab, .the-ho-so, details.ghi-chu, .khong-in, #tlHoSo, .tk-chip, .goi-y, section.o-bd:not(#tdKetQua *) { display: none !important; }
main.trang > .ket-luan#tlChao, main.trang > .dau { display: none !important; }
.in-dau { display: flex; justify-content: space-between; gap: 12px; border-bottom: 3px solid #c8992f; padding: 0 0 8px; margin-bottom: 12px; font-size: 13px; }
.in-dau b { color: #1f3864; }
.in-chan { display: block; font-size: 10.5px; color: #5a6476; border-top: 1px solid #d5dbe5; padding-top: 6px; margin-top: 14px; }
.cuon { max-height: none !important; overflow: visible !important; }
.o-bd, .ket-luan, .canh-bao, .the { break-inside: avoid; }
.luoi-bd { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
.gnav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
.the-tab a.lk-the { padding: 8px 12px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; font-weight: 600; white-space: nowrap; }
.the-tab a.lk-the:hover { color: var(--strong); }
.the-tab a.lk-the.on { color: var(--strong); border-bottom-color: var(--gold); }
.bg-chi-so { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.bg-cs { display: grid; grid-template-columns: auto auto; gap: 0 10px; align-items: baseline; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px;
background: var(--panel); color: var(--text); text-decoration: none; min-width: 0; }
.bg-cs span { grid-column: 1 / -1; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.bg-cs b { font-family: var(--mono); color: var(--strong); } .bg-cs em { font-style: normal; font-family: var(--mono); font-size: 12px; }
.bg-cong-cu { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 12px 0; }
.bg-cong-cu label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bg-cong-cu .o { min-width: 0; width: 180px; }
.bg-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; align-items: start; }
.bg-the { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px 10px; min-width: 0; }
.bg-the.rieng { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.bg-dau { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bg-dau b { color: var(--strong); font-size: 13.5px; flex: 1 1 100%; }
.bg-dau .so { font-family: var(--mono); font-size: 12.5px; }
.bg-dem { margin-left: auto; font-size: 11.5px; } .bg-dem i { font-style: normal; }
.bg-chu { font-size: 11.5px; margin: 4px 0; }
.bg-cot, .bg-ma { display: grid; grid-template-columns: 1fr 64px 66px 52px; gap: 6px; align-items: center; padding: 3px 4px; }
.bg-cot { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.bg-cot span:not(:first-child), .bg-ma span { text-align: right; }
.bg-ma { text-decoration: none; color: var(--text); border-radius: 5px; font-size: 13px; }
.bg-ma:hover, .bg-ma:focus-visible { background: var(--chip-on); outline: none; }
.bg-ma .so { font-family: var(--mono); }
.bg-ma.tot b, .bg-ma.tot span:nth-child(2), .bg-ma.tot span:nth-child(3) { color: var(--up); }
.bg-ma.xau b, .bg-ma.xau span:nth-child(2), .bg-ma.xau span:nth-child(3) { color: var(--down); }
.bg-ma.tc b, .bg-ma.tc span:nth-child(2), .bg-ma.tc span:nth-child(3) { color: var(--warn); }
.bg-ma.tran b, .bg-ma.tran span:nth-child(2), .bg-ma.tran span:nth-child(3) { color: #c77dff; }
.bg-ma.san b, .bg-ma.san span:nth-child(2), .bg-ma.san span:nth-child(3) { color: #38bdf8; }
:root[data-theme="light"] .bg-ma.tran b, :root[data-theme="light"] .bg-ma.tran span:nth-child(-n+3) { color: #8b2fc9; }
:root[data-theme="light"] .bg-ma.san b, :root[data-theme="light"] .bg-ma.san span:nth-child(-n+3) { color: #0e7490; }
.bg-them { display: block; width: 100%; margin-top: 6px; padding: 6px; border: 1px dashed var(--line); border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.bg-them:hover { color: var(--strong); border-color: var(--gold); }
@media (pointer: coarse) { .bg-ma { min-height: 34px; } .bg-them { min-height: 38px; } }
.dn-the { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.dn-the button { border: 1px solid var(--line); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 5px 12px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.dn-the button.on { color: var(--strong); border-color: var(--gold); background: var(--chip-on); }
.dn-chu p { margin: 0 0 8px; line-height: 1.6; }
.dn-kv td:first-child { color: var(--muted); white-space: nowrap; padding-right: 12px; vertical-align: top; }
.dn-kv td:last-child { word-break: break-word; }
.dn-mo summary { cursor: pointer; list-style: none; } .dn-mo summary::-webkit-details-marker { display: none; }
.dn-mo summary h3 { display: inline; } .dn-mo summary::after { content: " ▾"; color: var(--muted); } .dn-mo[open] summary::after { content: " ▴"; }
.dn-cuon { max-height: 520px; }
.dn-bang td { white-space: normal; } .dn-bang td.so { white-space: nowrap; }
.dn-thanh { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--panel2); margin: 6px 0; }
.dn-chu-thich { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; }
.dn-chu-thich i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.dn-cot-bd { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 6px 0; overflow-x: auto; }
.dn-cot { flex: 1 0 34px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.dn-cot-hai { flex: 1; display: flex; align-items: flex-end; gap: 2px; width: 100%; justify-content: center; }
.dn-cot-hai i { width: 40%; min-height: 1px; border-radius: 3px 3px 0 0; } .dn-cot-hai i.tien { background: var(--s1); } .dn-cot-hai i.cp { background: var(--s2); }
.dn-cot span { font-size: 11px; color: var(--muted); }
.dn-trang { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.dn-nhan { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); white-space: nowrap; }
.dn-nhan.bctc { color: var(--s3); } .dn-nhan.co_tuc_tien { color: var(--up); } .dn-nhan.co_tuc_cp { color: var(--gold); }
@media (pointer: coarse) { .dn-the button { min-height: 38px; } }
@media (max-width: 700px) { .top:has(.tk-chip) .brand span { display: none; } .top .tk-chip { flex-shrink: 0; } }
@media (max-width: 900px) { #capNhat { display: none !important; } }
@media (min-width: 701px) { .bg-the.rieng { grid-column: 1 / -1; } .bg-the.rieng .bg-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); column-gap: 18px; } }
@media (max-width: 700px) {
.bg-chi-so { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.bg-chi-so::-webkit-scrollbar { display: none; }
.bg-cs { flex: none; display: flex; gap: 6px; padding: 5px 10px; } .bg-cs span { grid-column: auto; }
.bg-cong-cu { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin: 8px 0; }
.bg-cong-cu::-webkit-scrollbar { display: none; }
.bg-cong-cu label { font-size: 0; gap: 0; flex: none; } .bg-cong-cu select { font-size: 12.5px; }
.bg-cong-cu .o { width: 120px; flex: none; }
.bg-luoi { gap: 6px; }
.bg-the.dong { padding: 0; }
.bg-the.dong .bg-dau { border-bottom: 0; margin: 0; padding: 10px; }
.bg-dau[data-mo] { cursor: pointer; }
.bg-dau b { flex: 1 1 auto; }
}
@media (max-width: 700px) { .bg-the.dong .bg-nn { display: none; } }
.the-tab.con-nua, .dn-the.con-nua { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
@media (max-width: 700px) {
.the-tab { scrollbar-width: none; } .the-tab::-webkit-scrollbar { display: none; }
.the-tab button { white-space: nowrap; flex: none; }
.dn-the { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 8px 0; }
.dn-the::-webkit-scrollbar { display: none; }
.dn-the button { flex: none; white-space: nowrap; }
}
.dt-nut { display: none; margin: 8px 0 0; }
@media (max-width: 700px) {
.o-bd:not(.du-cot) .dn-bang .dt-an { display: none; }
.dt-nut { display: block; }
.dn-cuon:has(.xep) { max-height: none; overflow: visible; }
.dn-bang.xep, .dn-bang.xep tbody { display: block; }
.dn-bang.xep thead { display: none; }
.dn-bang.xep tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.dn-bang.xep td { border: 0; padding: 0; text-align: left !important; white-space: normal; }
.dn-bang.xep td:first-child { grid-column: 1 / -1; font-weight: 600; color: var(--strong); }
.dn-bang.xep td:not(:first-child)::before { content: attr(data-t); display: block; font-size: 10.5px; color: var(--muted); }
}
@media (pointer: coarse) {
.brand, .btn, select, .o, input.o, .chip, .nhom-nut button, .the-tab button, .the-tab a.lk-the, .dn-the button, .menu a, .menu button.muc,
.nhay a, .di-tiep button, .di-tiep a, .bg-them, .tv-mon { min-height: 38px; }
.nhay a, .lk-tai, .the-tab a.lk-the { display: inline-flex; align-items: center; }
.lk-tai { min-height: 38px; }
.bang th button { min-height: 32px; }
.tn { position: relative; } .tn::after { content: ""; position: absolute; inset: -12px; }
}
@media (max-width: 700px) {
.kq-dau small, .lk-tai, .ho-so-dau .tuoi { font-size: 12px; }
.gnav a, .bg-cot, .dn-bang.xep td:not(:first-child)::before, .bd-ve .dv-trai, .bd-ve .dv-phai, .in-chan { font-size: 11px; }
.nhay { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.nhay::-webkit-scrollbar { display: none; }
.nhay a { flex: none; white-space: nowrap; }
table#tBctc:not(.du-ky) .ky-cu { display: none; }
}
.dt-nut-ky { display: none; margin: 8px 0 0; }
@media (max-width: 700px) { .dt-nut-ky { display: block; } }
@media (pointer: coarse) { .bd-chu button { min-height: 36px; } .top .tk-chip button { min-height: 38px; } }
