:root {
--bg: #0b1220; --panel: #0f192c; --panel2: #13203a; --line: #1d2a44; --grid: #172238;
--text: #d6deec; --muted: #8492ad; --strong: #ffffff;
--gold: #c8992f; --navy: #1f3864; --accent: #c8992f;
--up: #26b36b; --down: #e5484d; --ref: #e0b341;
--l1: #f0b429; --l2: #38bdf8; --l3: #c084fc; --l4: #f472b6; --l5: #94a3b8;
--cross: #8a96b0; --chip-on: #1c2c4c; --ceil: #d08cff; --floor: #38d4f0;
--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;
--up: #1e7a46; --down: #a93434; --ref: #b07d10;
--l1: #d97706; --l2: #0284c7; --l3: #7c3aed; --l4: #db2777; --l5: #64748b;
--cross: #7a869c; --chip-on: #dce6f1; --ceil: #8b2fc9; --floor: #0e7490;
color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
background: var(--bg); color: var(--text); font: 13px/1.4 var(--font);
display: grid; grid-template-rows: auto auto auto 1fr auto; overflow: hidden;
-webkit-text-size-adjust: 100%;
}
button, input, select { font: inherit; color: inherit; }
.btn, select {
background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px;
cursor: pointer; white-space: nowrap;
}
.btn:hover, select:hover { border-color: var(--accent); }
.btn.ghost { background: transparent; }
.grow { flex: 1; }
.top {
display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-bottom: 1px solid var(--line);
background: var(--panel); min-width: 0;
}
.back { color: var(--muted); text-decoration: none; font-size: 12px; white-space: nowrap; }
.back:hover { color: var(--accent); }
.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 i { font-style: normal; color: var(--muted); font-size: 10px; }
.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; color: var(--text); }
.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; }
.brand b { color: var(--gold); letter-spacing: .5px; }
.brand span { color: var(--strong); font-weight: 600; }
.sym { position: relative; }
#symIn {
width: 104px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
}
#symIn:focus { outline: none; border-color: var(--accent); }
.dd {
position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; width: 340px; max-height: 360px; overflow: auto;
background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgba(0,0,0,.35);
}
.dd div { display: grid; grid-template-columns: 70px 1fr auto; gap: 8px; padding: 7px 10px; cursor: pointer; align-items: center; }
.dd div b { color: var(--strong); }
.dd div span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd div em { font-style: normal; font-size: 11px; color: var(--muted); }
.dd div.on, .dd div:hover { background: var(--chip-on); }
.symname { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 120px; }
.tfs { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.tfs button { background: none; border: 0; padding: 4px 9px; border-radius: 5px; cursor: pointer; color: var(--muted); font-weight: 600; }
.tfs button.on { background: var(--chip-on); color: var(--strong); }
.tfs button:hover { color: var(--strong); }
.clock { font-family: var(--mono); color: var(--muted); font-size: 12px; white-space: nowrap; }
.chips {
display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--line);
overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips .lbl { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.chips .sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.chip {
display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; cursor: pointer;
background: transparent; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); opacity: .45; }
.chip.on { background: var(--chip-on); color: var(--strong); border-color: transparent; }
.chip.on i { opacity: 1; }
.grid { display: grid; grid-template-columns: 300px 1fr 280px; min-height: 0; }
.panel { background: var(--panel); overflow-y: auto; min-height: 0; }
.left { border-right: 1px solid var(--line); padding: 12px; }
.right { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.stage { position: relative; min-width: 0; min-height: 0; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.legend {
position: absolute; left: 10px; top: 8px; pointer-events: none; font-size: 12px; display: flex; flex-wrap: wrap;
gap: 4px 12px; max-width: calc(100% - 90px);
}
.legend b { color: var(--strong); }
.legend .v { font-family: var(--mono); }
.loading, .err {
position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 8px;
background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.err { color: var(--down); }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.p-ma { font-weight: 700; font-size: 18px; color: var(--strong); }
.p-ten { color: var(--muted); font-size: 12px; }
.p-gia { text-align: right; margin-left: auto; }
.gia { font: 700 22px/1.1 var(--mono); }
.doi { font: 600 12px var(--mono); }
.up { color: var(--up); } .down { color: var(--down); } .ref { color: var(--ref); }
.docnhanh {
margin: 12px 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--panel2);
border-left: 3px solid var(--gold);
}
.docnhanh h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); }
.docnhanh ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.docnhanh li { position: relative; padding-left: 16px; }
.docnhanh li::before {
content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--muted);
}
.docnhanh li.up::before { background: var(--up); } .docnhanh li.down::before { background: var(--down); }
.docnhanh li.ref::before { background: var(--ref); }
.docnhanh li { color: var(--text); }
.tvn-box { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--panel2); border-left: 3px solid var(--gold); }
.tvn-box h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--gold); }
.tvn-box .kv { margin: 6px 0; }
.tvn-bac { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tvn-bac b { font-size: 16px; } .tvn-bac span { color: var(--muted); font-size: 12px; }
.tvn-kn { margin: 4px 0 0; color: var(--text); }
.tvn-lg b { color: var(--gold); }
.tk-chip:empty { display: none; }
.tvn-box .cau-noi { display: block; width: 100%; margin-top: 8px; white-space: normal; }
.tk-chip .tvnA-chip { padding: 5px 10px; font-size: 12px; }
.docnhanh li b { color: var(--strong); }
.spark { width: 100%; display: block; }
.spark-cap { color: var(--muted); font-size: 11px; margin: 2px 0 8px; }
.tabs2 {
display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; scrollbar-width: none;
}
.tabs2::-webkit-scrollbar { display: none; }
.tabs2 button { white-space: nowrap; flex: 0 0 auto; }
.ceil { color: var(--ceil) !important; } .floor { color: var(--floor) !important; }
.mini-h { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 12px 0 6px; }
.tc-row { display: flex; gap: 6px; margin: 8px 0; }
.tc-row span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; background: var(--panel2); font: 600 12px var(--mono); }
.tc-row small { display: block; font: 400 10px var(--font); color: var(--muted); }
.ob { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
.ob th { color: var(--muted); font: 400 11px var(--font); padding: 4px 2px; text-align: right; }
.ob th:nth-child(2), .ob th:nth-child(3) { text-align: center; }
.ob td { padding: 6px 4px; position: relative; text-align: right; }
.ob td.p { text-align: center; font-weight: 600; }
.ob td .bar { position: absolute; top: 3px; bottom: 3px; opacity: .16; border-radius: 3px; }
.ob td.kb .bar { right: 0; background: var(--up); } .ob td.ks .bar { left: 0; background: var(--down); }
.ob td.ks { text-align: left; }
.ob td span { position: relative; }
.split { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--line); margin: 6px 0 4px; }
.split i { display: block; } .split .b { background: var(--up); } .split .s { background: var(--down); }
.split-cap { display: flex; justify-content: space-between; font-size: 11px; }
.tape { width: 100%; border-collapse: collapse; font: 12px var(--mono); }
.tape th { color: var(--muted); font: 400 11px var(--font); text-align: right; padding: 4px 2px; position: sticky; top: 0; background: var(--panel); }
.tape th:first-child, .tape td:first-child { text-align: left; }
.tape td { padding: 3px 2px; text-align: right; border-bottom: 1px solid var(--grid); }
.lv { display: grid; grid-template-columns: 52px 1fr 70px; gap: 6px; align-items: center; font: 12px var(--mono); padding: 2px 0; }
.lv .track { height: 12px; display: flex; border-radius: 3px; overflow: hidden; background: var(--grid); }
.lv .track i { display: block; height: 100%; } .lv .track .b { background: var(--up); } .lv .track .s { background: var(--down); }
.lv .track .n { background: var(--muted); opacity: .5; }
.lv span:last-child { text-align: right; color: var(--muted); }
.flow-cv { width: 100%; display: block; }
.src-note { color: var(--muted); font-size: 11px; margin: 8px 0 0; }
.tabs2 button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 8px; cursor: pointer; color: var(--muted); }
.tabs2 button.on { color: var(--strong); border-color: var(--gold); }
.kv { width: 100%; border-collapse: collapse; }
.kv td { padding: 6px 2px; border-bottom: 1px solid var(--line); }
.kv td:last-child { text-align: right; font-family: var(--mono); color: var(--strong); }
.kv td.up { color: var(--up); } .kv td.down { color: var(--down); }
.kv small { color: var(--muted); }
.note { color: var(--muted); font-size: 11px; margin: 10px 0 0; }
.w-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 4px; }
.w-head h3 { margin: 0; font-size: 13px; color: var(--strong); }
.w-cols, .wl li { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px 14px; gap: 6px; align-items: center; }
.wl .m { min-width: 0; }
.w-cols { padding: 4px 12px; color: var(--muted); font-size: 11px; }
.w-cols span:nth-child(n+2) { text-align: right; }
.w-cols::after { content: ""; }
.wl { list-style: none; margin: 0; padding: 0; flex: 1; overflow-y: auto; }
.wl li { padding: 7px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.wl li:hover { background: var(--panel2); }
.wl li.on { background: var(--chip-on); box-shadow: inset 3px 0 var(--gold); }
.wl .m b { color: var(--strong); display: block; }
.wl .m span { color: var(--muted); font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl .g, .wl .p { text-align: right; font-family: var(--mono); font-weight: 600; }
.wl .rm { background: none; border: 0; color: var(--muted); cursor: pointer; opacity: 0; padding: 0; font-size: 15px; }
.wl li:hover .rm { opacity: 1; }
.w-add { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.w-add input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; text-transform: uppercase; }
.foot {
display: flex; align-items: center; gap: 14px; padding: 6px 12px; border-top: 1px solid var(--line);
background: var(--panel); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden;
}
.ohlc { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; }
.ohlc b { color: var(--text); font-weight: 500; }
.status { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.live { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); }
.src { overflow: hidden; text-overflow: ellipsis; }
.chip-sc { display: contents; }
.chip.loi { border-color: var(--down); }
.btn.chinh { background: var(--gold); border-color: var(--gold); color: #1b1300; font-weight: 600; }
.dlg {
width: min(1100px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line);
border-radius: 12px; background: var(--panel); color: var(--text); box-shadow: 0 24px 64px rgba(0,0,0,.45);
}
.dlg::backdrop { background: rgba(5, 10, 20, .55); }
.dlg header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dlg h2 { margin: 0; font-size: 16px; color: var(--strong); }
.sc-body { display: grid; grid-template-columns: 230px 1fr; min-height: 0; max-height: calc(100vh - 100px); }
.sc-side { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.sc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sc-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; background: var(--panel2); }
.sc-list li.on { box-shadow: inset 3px 0 var(--gold); }
.sc-list li b { display: block; color: var(--strong); font-weight: 600; }
.sc-list li span { font-size: 11px; color: var(--muted); }
.sc-list li.trong { cursor: default; color: var(--muted); font-size: 12px; background: none; }
.sc-edit { padding: 12px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#scTen { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-weight: 600; }
#scMa {
min-height: 260px; resize: vertical; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
font: 12.5px/1.55 var(--mono); color: var(--text); tab-size: 4; white-space: pre; overflow: auto;
}
#scMa:focus, #scTen:focus { outline: none; border-color: var(--accent); }
.sc-inputs { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.sc-inputs label { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.sc-inputs input:not([type=checkbox]), .sc-inputs select { width: 90px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.err-line { color: var(--down); margin: 0; font: 12px var(--mono); min-height: 1em; }
.sc-act { display: flex; gap: 8px; }
.kd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.kd-grid div { background: var(--panel2); border-radius: 8px; padding: 8px 10px; }
.kd-grid small { display: block; color: var(--muted); font-size: 11px; }
.kd-grid b { font: 700 16px var(--mono); }
.tape.kd { margin-top: 6px; }
details.note summary { cursor: pointer; color: var(--text); }
.dlg-lenh { width: min(640px, calc(100vw - 24px)); }
.lenh-body { padding: 8px 16px 16px; overflow-y: auto; max-height: calc(100vh - 100px); }
.phieu { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; margin: 8px 0; }
.phieu label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.phieu input, .phieu select { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; color: var(--text); }
.phieu input:focus, .phieu select:focus { outline: none; border-color: var(--accent); }
.phieu-nut { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
.btn.mua { background: var(--up); border-color: var(--up); color: #fff; font-weight: 600; flex: 1; }
.btn.ban { background: var(--down); border-color: var(--down); color: #fff; font-weight: 600; flex: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.xem-lenh { white-space: pre-wrap; font: 12px var(--mono); background: var(--panel2); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.xem-lenh:empty { display: none; }
.dn-dau { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.dong-lenh { display: flex; gap: 8px; align-items: center; font: 12px var(--mono); padding: 4px 0; }
.note.down { color: var(--down); }
.mbar, .mob, .dn-mini { display: none; }
.dn-mini b { color: var(--gold); }
.x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 2px; }
@media (max-width: 1180px) {
.grid { grid-template-columns: 260px 1fr 240px; }
.symname { display: none; }
}
@media (max-width: 900px) {
body { grid-template-rows: auto auto auto 1fr auto auto; }
.top { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
.brand span, .clock { display: none; }
.tfs { order: 9; width: 100%; overflow-x: auto; scrollbar-width: none; }
.tfs button { flex: 1 0 auto; }
#themeBtn { margin-left: auto; }
.grid { grid-template-columns: 1fr; position: relative; overflow: hidden; }
.legend { font-size: 11px; }
.legend > span:nth-child(n+3) { display: none; }
.foot .ohlc { display: none; }
.dn-mini {
display: block; padding: 6px 12px; font-size: 12px; border-bottom: 1px solid var(--line); background: var(--panel2);
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.panel {
position: absolute; inset: 0; z-index: 20; transform: translateY(105%); transition: transform .22s ease;
border: 0; padding-bottom: 20px;
}
.panel.mo { transform: none; }
.mob { display: inline-block; }
.foot .src { display: none; }
.foot { padding: 5px 12px; }
.mbar {
display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: var(--panel);
padding-bottom: env(safe-area-inset-bottom);
}
.mbar button { background: none; border: 0; padding: 11px 4px; color: var(--muted); font-weight: 600; cursor: pointer; }
.mbar button.on { color: var(--strong); box-shadow: inset 0 2px var(--gold); }
.wl .rm { opacity: 1; }
.sc-body { grid-template-columns: 1fr; }
.sc-side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 180px; }
.dd { width: min(340px, calc(100vw - 24px)); }
}
.gnav a svg { color: var(--tab); }
.gnav { order: -1; display: flex; gap: 2px; padding: 2px 10px; background: var(--bg); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.gnav a { display: flex; align-items: center; gap: 6px; padding: 5px 10px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 12px; 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); }
.gnav svg { width: 15px; height: 15px; flex: none; }
.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; }
@media (max-width: 900px) {
body { grid-template-rows: auto auto auto auto 1fr auto auto; }
.top { order: 1; } .chips { order: 2; } .dn-mini { order: 3; } .mbar { order: 4; } .grid { order: 5; } .foot { order: 6; }
.gnav { order: 7; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: var(--panel);
border-top: 1px solid var(--line); border-bottom: 0; }
.gnav a { flex-direction: column; gap: 2px; padding: 7px 2px 6px; font-size: 10.5px; justify-content: center; }
.gnav a.on { box-shadow: inset 0 2px var(--tab); color: var(--tab); }
.gnav svg { width: 20px; height: 20px; }
.mbar { border-top: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.mbar button { padding: 7px 4px; font-size: 12.5px; }
.mbar button.on { box-shadow: inset 0 -2px var(--gold); }
}
[data-theme="dark"] .tvnA-khoa { background: #221d0e; color: #e6eaf2; }
[data-theme="dark"] .tvnA-khoa h3 { color: #e7c873; } [data-theme="dark"] .tvnA-khoa .tvnA-meta { color: #9aa6bb; }
[data-theme="light"] .tvnA-khoa { background: #fbf7ea; color: #1b2333; }
[data-theme="light"] .tvnA-khoa h3 { color: #1f3864; } [data-theme="light"] .tvnA-khoa .tvnA-meta { color: #5b667a; }
.khungQt { position: fixed; z-index: 90; right: max(16px, env(safe-area-inset-right, 0px)); top: 64px; bottom: 16px; width: min(600px, calc(100vw - 32px));
overflow: auto; background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 12px 14px; box-shadow: 0 24px 70px rgba(0,0,0,.45);
display: grid; gap: 10px; align-content: start; color: var(--text); }
.khungQt[hidden] { display: none !important; }
.khungQt h2 { margin: 0; font-size: 16px; color: var(--strong); }
.khungQt .meta { color: var(--muted); font-size: 12.5px; } .khungQt .mono { font-family: var(--mono); }
.qtform { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.qtform input, .qttim { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; font: inherit; }
.qtform select { min-width: 0; }
.qtform label { display: flex; align-items: center; gap: 6px; } .qtform label input:not([type=checkbox]) { flex: 1; }
.qtkq[hidden] { display: none; }
.qtkq { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--gold); border-radius: 10px; background: var(--panel2); }
.qtkq textarea { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: 12.5px/1.45 var(--font); resize: vertical; }
.qtng { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; display: grid; gap: 5px; margin-top: 8px; }
.qtdau { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.qtmays { display: flex; gap: 6px; flex-wrap: wrap; } .qtmay { font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); } .qtmay.co { color: var(--text); border-color: var(--gold); }
.qtq { display: inline-block; margin: 2px 4px 0 0; padding: 1px 8px; border-radius: 6px; background: var(--panel2); font-size: 12px; }
.qtcanh { font-size: 12px; color: var(--down); }
.qtchu { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; } .qtchu summary { cursor: pointer; } .qtchu .qtform { margin-top: 8px; }
.qtchu > div, .qtchu > .meta, .qtchu > .qttim, .qtchu > .qtchu { margin-top: 8px; }
.qtnut { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; } .qtnut .btn, .qtnut select { padding: 4px 9px; font-size: 12.5px; text-decoration: none; }
.khungQt .pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; }
.khungQt .pill.tot { color: var(--up); } .khungQt .pill.bad { color: var(--down); } .khungQt .pill.vua { color: var(--ref); }
.qtchon { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.qtchon select { max-width: 55%; }
.qtbang { width: 100%; border-collapse: collapse; font-size: 13px; } .qtbang td { padding: 5px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.qtbang td:first-child { color: var(--muted); width: 34%; }
#qtBao { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1f3864; color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; z-index: 95; max-width: 92vw; }
@media (max-width: 900px) { .khungQt { left: 8px; right: 8px; width: auto; top: 56px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } .qtform { grid-template-columns: 1fr; } }
.chao { position: fixed; inset: 0; z-index: 9000; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; background: rgba(4, 8, 18, .62);
backdrop-filter: blur(5px); animation: chaoNen .35s ease-out both; }
.chao[hidden] { display: none; }
.chaoThe { position: relative; width: min(860px, calc(100vw - 32px)); max-height: min(88vh, 900px); overflow: auto; border-radius: 18px; padding: 26px 26px 20px;
background: radial-gradient(120% 90% at 0% 0%, rgba(200, 153, 47, .20), transparent 55%), linear-gradient(160deg, #0d1a33 0%, #101c36 55%, #0a1326 100%);
color: #eef2fa; border: 1px solid rgba(200, 153, 47, .55); box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .04) inset;
animation: chaoVao .55s cubic-bezier(.2, .8, .2, 1) both; font-family: var(--font); }
.chaoThe::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
background: linear-gradient(110deg, transparent 30%, rgba(255, 223, 140, .16) 45%, transparent 60%); background-size: 250% 100%; animation: chaoQuet 2.6s .4s ease-in-out both; }
.chaoDong { position: absolute; top: 10px; right: 12px; border: 0; background: none; color: #c7cede; font-size: 20px; cursor: pointer; padding: 4px 8px; }
.chaoNhan { display: inline-block; font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800; color: #10151f;
background: linear-gradient(90deg, #e7c46a, #c8992f); border-radius: 999px; padding: 3px 11px; }
.chaoThe h2 { margin: 10px 0 4px; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.2; font-weight: 800;
background: linear-gradient(90deg, #fff 0%, #ffe3a3 50%, #fff 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
animation: chaoChu 3s .3s ease-in-out both; }
.chaoPhu { margin: 0 0 14px; color: #c9d2e3; font-size: 14.5px; line-height: 1.55; }
.chaoCot { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; }
.chaoCot.mot { grid-template-columns: minmax(0, 1fr); }
.chaoKhoi { border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); }
.chaoKhoi.khoa { background: rgba(200, 153, 47, .09); border-color: rgba(200, 153, 47, .45); }
.chaoKhoi h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 1.1px; text-transform: uppercase; color: #e7c46a; }
.chaoKhoi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.chaoKhoi li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.45; color: #e3e8f2; opacity: 0; animation: chaoDong .45s ease-out forwards; }
.chaoKhoi li .so { flex: none; min-width: 52px; text-align: right; font-size: 20px; font-weight: 800; color: #ffd77a; font-variant-numeric: tabular-nums; }
.chaoKhoi li .dau { flex: none; width: 18px; text-align: center; margin-right: 4px; }
.chaoKhoi.mo li .dau { color: #6fdc9a; }
.chaoKhoi li .goi { display: block; font-size: 12px; color: #9fb0cc; }
.chaoKhoiMo.luoi ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; }
.chaoNut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chaoNut a, .chaoNut button { border-radius: 11px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #eef2fa; }
.chaoNut .chinh { background: linear-gradient(90deg, #e7c46a, #c8992f); color: #10151f; border-color: transparent; box-shadow: 0 6px 22px rgba(200, 153, 47, .35); }
.chaoNut a:hover, .chaoNut button:hover { filter: brightness(1.08); text-decoration: none; }
.chaoChan { margin-top: 12px; font-size: 12.5px; color: #9fb0cc; line-height: 1.5; }
#chaoMo { white-space: nowrap; } #chaoMo.ck { border-color: var(--gold); color: var(--gold); } #chaoMo.tk { border-color: var(--up); color: var(--up); }
@keyframes chaoNen { from { opacity: 0; } to { opacity: 1; } }
@keyframes chaoVao { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes chaoQuet { from { background-position: 120% 0; } to { background-position: -60% 0; } }
@keyframes chaoChu { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes chaoDong { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
.chaoThe { padding: 22px 16px 16px; }
.chaoCot, .chaoKhoiMo.luoi ul { grid-template-columns: minmax(0, 1fr); }
.chaoNut a, .chaoNut button { flex: 1 1 calc(50% - 4px); text-align: center; padding: 10px 8px; font-size: 13.5px; }
.chaoNut { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 10px 16px 14px; background: linear-gradient(180deg, rgba(10, 19, 38, .85), #0a1326 40%); }
}
@media (max-width: 560px) { #chaoMo { font-size: 0; padding: 4px 9px; } #chaoMo.ck::before { content: "🔓"; font-size: 15px; } #chaoMo.tk::before { content: "✓"; font-size: 15px; font-weight: 800; } }
@media (prefers-reduced-motion: reduce) { .chao, .chaoThe, .chaoThe::before, .chaoThe h2, .chaoKhoi li { animation: none !important; opacity: 1 !important; } }
.ban-quyen { color: var(--muted); font-size: 10.5px; line-height: 1.45; margin: 14px 4px 6px; }
.btn.chinh-nhe { border-color: var(--gold); color: var(--gold); font-weight: 600; white-space: nowrap; }
.chip-cb { gap: 5px; padding-right: 4px; }
.chip-cb .cb-n { font-weight: 400; color: var(--muted); padding: 0 5px; border-radius: 999px; line-height: 18px; }
.chip-cb .cb-n:hover { background: var(--line); color: var(--strong); }
.dlg-cb { width: min(720px, calc(100vw - 24px)); }
.cb-body { padding: 12px 16px 16px; max-height: calc(100vh - 110px); overflow-y: auto; }
.cb-tim { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; color: var(--text); }
.cb-ds h3 { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.cb-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.cb-mon { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 8px;
background: var(--panel2); border: 1px solid var(--line); color: var(--text); cursor: pointer; min-width: 0; }
.cb-mon:hover, .cb-mon:focus-visible { border-color: var(--gold); }
.cb-mon b { font-weight: 600; font-size: 13px; color: var(--strong); }
.cb-mon span { font-size: 11px; color: var(--muted); }
.cb-sua h3 { margin: 4px 0 12px; font-size: 14px; color: var(--strong); }
.cb-sua .sc-act { margin-top: 14px; flex-wrap: wrap; }
.ve-cu { position: absolute; left: 6px; top: 6px; z-index: 2; display: flex; flex-direction: column; gap: 2px; padding: 3px; border-radius: 8px;
background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--line); max-height: calc(100% - 40px); overflow-y: auto; scrollbar-width: none; }
.ve-cu::-webkit-scrollbar { display: none; }
.ve-cu .ve-ds { display: none; flex-direction: column; gap: 2px; }
.ve-cu.mo .ve-ds { display: flex; }
.ve-cu button { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.ve-cu button:hover:not(:disabled) { background: var(--line); color: var(--strong); }
.ve-cu button.on { background: var(--chip-on); color: var(--gold); }
.ve-cu.mo #veGon { color: var(--gold); }
.ve-cu button:disabled { opacity: .35; cursor: default; }
.ve-cu svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ve-gach { height: 1px; background: var(--line); margin: 2px 4px; }
.stage.co-ve .legend { left: 48px; max-width: calc(100% - 128px); }
.stage .legend { left: 48px; }
@media (pointer: coarse) { .ve-cu button { width: 34px; height: 34px; } .stage .legend { left: 54px; } }
.foot .ohlc { display: none; }
.panel { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.panel:hover, .panel:focus-within { scrollbar-color: var(--line) transparent; }
.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.panel:hover::-webkit-scrollbar-thumb { background: var(--line); }
details.giai summary { color: var(--muted); list-style: none; }
details.giai summary::-webkit-details-marker { display: none; }
details.giai[open] summary { color: var(--text); margin-bottom: 4px; }
.wl-mo { display: none; }
.menu button.muc { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--text); cursor: pointer; }
.menu button.muc:hover, .menu button.muc:focus { background: var(--chip-on); outline: none; }
.docnhanh li.bam { cursor: pointer; border-radius: 6px; }
.docnhanh li.bam:hover, .docnhanh li.bam:focus-visible { background: var(--chip-on); outline: none; }
.chips.con-nua { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.tvn-box h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tvn-mo { background: none; border: 0; padding: 0 2px; color: var(--muted); font-size: 11px; text-transform: none; letter-spacing: 0; cursor: pointer; }
.tvn-mo:hover { color: var(--strong); }
.tvn-box:not(:has(.tvn-bac)) .tvn-mo { display: none; }
.tvn-box:not(.mo) #tvnThan:has(.tvn-bac) > :not(.tvn-bac):not(.tvn-kn) { display: none; }
.tvn-box:not(.mo) .tvn-kn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chaoThem > summary { cursor: pointer; color: #e7c46a; font-weight: 700; font-size: 13.5px; margin: 0 0 10px; list-style: none; }
.chaoThem > summary::-webkit-details-marker { display: none; }
.chaoThem > summary::after { content: " ▾"; }
.chaoThem[open] > summary::after { content: " ▴"; }
@media (min-width: 901px) { .gnav { padding: 0 10px; } .gnav a { padding: 3px 10px; } }
@media (min-width: 901px) and (max-width: 1279px) {
.clock, .brand span { display: none; }
#chaoMo { font-size: 0; padding: 4px 9px; } #chaoMo.ck::before { content: "🔓"; font-size: 15px; } #chaoMo.tk::before { content: "✓"; font-size: 15px; font-weight: 800; }
.grid { grid-template-columns: 260px minmax(0, 1fr); position: relative; overflow: hidden; }
.right { position: absolute; top: 0; right: 0; bottom: 0; width: 290px; z-index: 25; transform: translateX(105%); transition: transform .2s ease;
box-shadow: -14px 0 32px rgba(0, 0, 0, .3); }
.right.mo { transform: none; }
.right .mob { display: inline-block; }
.wl-mo { display: inline-block; }
#qtMo { font-size: 0; padding: 4px 8px; } #qtMo::before { content: "👥"; font-size: 15px; }
#chartType { max-width: 92px; }
}
@media (max-width: 900px) {
.top .vao-menu { display: none !important; }
.top { gap: 6px; padding: 6px 10px; }
.sym { flex: 1 1 90px; min-width: 0; } #symIn { width: 100%; max-width: 160px; }
#qtMo { font-size: 0; padding: 4px 8px; } #qtMo::before { content: "👥"; font-size: 15px; }
.tfs { flex: 1 1 calc(100% - 96px); width: auto; min-width: 0; }
.tfs button { padding: 4px 4px; }
#chartType { order: 10; padding: 4px 4px; max-width: 84px; }
.chips { padding: 4px 10px; gap: 5px; }
.chips .chip, .chips .btn { padding: 3px 9px; }
.dn-mini { padding: 4px 12px; cursor: pointer; }
.dn-mini.mo { white-space: normal; }
.foot { padding: 2px 12px; font-size: 10.5px; }
}
.top > .btn, .top > select, .top > .tk-chip, .top > .brand { flex-shrink: 0; }
.top .tk-chip, .top .tk-chip * { white-space: nowrap; }
@media (max-width: 1439px) { .top .clock { display: none; } }
.docnhanh h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.docnhanh:not(.mo) li:nth-child(n+4) { display: none; }
.thanh-bat { display: none; }
@media (max-width: 900px) {
.gnav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
.tfs button, .top .btn, .top select, #symIn { min-height: 38px; }
.chips .chip, .chips .btn { min-height: 36px; }
.mbar button { min-height: 40px; }
.tabs2 button, .tvn-mo, #dnThem { min-height: 36px; }
}
@media (max-height: 500px) and (pointer: coarse) {
.thanh-bat { display: grid; place-items: center; position: absolute; z-index: 3; top: 6px; right: 72px; width: 38px; height: 38px; padding: 0;
border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 90%, transparent); color: var(--strong); font-size: 17px; cursor: pointer; }
body:not(.hien-thanh) { grid-template-rows: auto minmax(0, 1fr); }
body:not(.hien-thanh) .chips, body:not(.hien-thanh) .dn-mini, body:not(.hien-thanh) .mbar, body:not(.hien-thanh) .foot,
body:not(.hien-thanh) .gnav, body:not(.hien-thanh) .left, body:not(.hien-thanh) .right { display: none !important; }
body:not(.hien-thanh) .grid { grid-template-columns: minmax(0, 1fr); }
body:not(.hien-thanh) .top { flex-wrap: nowrap; padding: 4px 10px; }
body:not(.hien-thanh) .tfs { order: 0; flex: 1 1 auto; }
body:not(.hien-thanh) #chartType { order: 0; }
body:not(.hien-thanh) .brand span, body:not(.hien-thanh) .symname, body:not(.hien-thanh) .clock { display: none; }
.legend { right: 120px; }
}
.cb-mon .cb-y { color: var(--text); opacity: .8; font-size: 11.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cb-ds h3 small { font-weight: 400; opacity: .7; }
.cb-giai { font-size: 12.5px; line-height: 1.5; margin: -4px 0 12px; } .cb-giai p { margin: 0 0 6px; }
.kd-cai { margin: 8px 0; } .kd-cai summary { cursor: pointer; color: var(--text); font-weight: 600; }
.kd-cai .sc-inputs { margin: 8px 0 4px; } .kd-cai input[type=date] { width: 140px !important; } .kd-cai select { width: auto; }
.khoa-ve #veCu, .khoa-dat_lenh #lenhMo, .khoa-thu_vien #kdCai { display: none !important; }
.cb-mon.khoa { opacity: .6; }
#qtTn { overflow-x: auto; } .qtbang input, .qtbang select { width: 100%; min-width: 120px; }
.sc-dau { display: flex; gap: 8px; } .sc-dau input { flex: 1; min-width: 0; } .sc-dau select { width: auto; flex: none; }
.tv-khung { padding: 12px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tv-khung[hidden], #scSoan[hidden] { display: none !important; }
.tv-dau { display: flex; gap: 8px; } .tv-dau input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--text); }
.tv-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tv-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 6px; }
.tv-mon { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 8px 10px; border-radius: 8px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); cursor: pointer; min-width: 0; }
.tv-mon:hover, .tv-mon:focus-visible { border-color: var(--gold); outline: none; }
.tv-mon b { color: var(--strong); font-size: 13px; }
.tv-nhan { display: flex; flex-wrap: wrap; gap: 4px; } .tv-nhan i { font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.tv-nhan i.pine { color: #26a69a; } .tv-nhan i.afl { color: #ffa726; }
.tv-mt { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
@media (pointer: coarse) { .tv-mon { min-height: 44px; } .tv-loc .nhom-nut button { min-height: 36px; } }
.spark-mo { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 0 4px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.spark-mo:hover { color: var(--strong); }
.left.spark-an #spark, .left.spark-an #sparkCap { display: none; }
@media (pointer: coarse) { .spark-mo { min-height: 40px; } }
@media (pointer: coarse) { .top .tk-chip button { min-height: 38px; } }
@media (pointer: coarse) { .top .brand { min-height: 38px; } }
@media (max-width: 900px) { .gnav a { font-size: 11px; } }
