/* VSA Pro - trang Doanh nghiệp kiểu FireAnt */
#v-fa { padding: 12px 16px 20px; overflow: auto; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.co-id h2 { margin: 0 0 6px; font-size: 20px; }
.co-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-tk { font-weight: 700; color: var(--muted); }
.co-sector { font-size: 12px; }
.co-px { text-align: right; }
.co-px .v { font-size: 24px; font-weight: 700; }
.co-px .c { font-size: 16px; font-weight: 700; }
.co-px .t { font-size: 11.5px; }
.co-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.co-tabs::-webkit-scrollbar { display: none; }
.co-tabs a { padding: 9px 14px; color: var(--text); white-space: nowrap; border-bottom: 2px solid transparent; font-weight: 600; }
.co-tabs a:hover { color: var(--accent); }
.co-tabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.co-ov { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
.co-mini { height: 280px; position: relative; }
.co-side { position: sticky; top: 0; }
.co-seg { display: flex; margin-bottom: 10px; width: 100%; }
.co-seg button { flex: 1; }
.co-kv b { text-align: right; font-variant-numeric: tabular-nums; }
.co-profile { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--text); max-height: 360px; overflow: auto; }
.co-profile * { font-family: inherit !important; font-size: inherit !important; color: inherit !important; background: transparent !important; }
.co-off { color: var(--muted); line-height: 1.7; }
.co-off code { background: var(--panel-2); padding: 1px 5px; border-radius: 4px; }
/* màu giá theo tham chiếu / trần / sàn */
.ref { color: #F6C344 !important; font-weight: 700; }
.ceil { color: #C844F2 !important; font-weight: 700; }
.floor { color: #00BCD4 !important; font-weight: 700; }
.co-sum td { padding: 5px 6px; }
.co-sum td.num { font-weight: 600; }
/* sổ lệnh */
.co-ob td, .co-ob th { padding: 6px; }
.co-ob .ob-b, .co-ob .ob-a { position: relative; font-weight: 700; }
.co-ob .ob-b i, .co-ob .ob-a i { position: absolute; top: 3px; bottom: 3px; opacity: .22; }
.co-ob .ob-b i { right: 0; background: #089981; }
.co-ob .ob-a i { left: 0; background: #F23645; }
.co-ob .ob-b span, .co-ob .ob-a span { position: relative; }
.co-ticks { max-height: 330px; margin: 10px 0; }
.co-ticks td { padding: 4px 8px; }
.co-ticks td.mb { font-weight: 700; text-align: center; }
.co-tot td { padding: 6px; }
/* mức giá */
.co-ps td { padding: 4px 6px; }
.co-ps .psbar { width: 55%; white-space: nowrap; }
.co-ps .psbar span { display: inline-block; height: 12px; vertical-align: middle; }
.co-ps .psbar .b { background: #089981; }
.co-ps .psbar .s { background: #F23645; }
.co-ps .psbar .u { background: #787B86; }
/* bài viết */
.co-news .card { min-width: 0; }
.co-art { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.co-art:hover { background: var(--hover); }
.co-art img, .co-noimg { width: 88px; height: 60px; object-fit: cover; border-radius: 6px; flex: none; background: var(--panel-2); }
.co-art .tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; }
.co-art .tx .muted { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-art .tx .faint { font-size: 11.5px; }
.co-more { margin: 10px auto 0; display: flex; }
.co-modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.co-reader { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; width: min(860px, 100%); max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.co-reader-h { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 15px; }
.co-rd { padding: 12px 14px; overflow: auto; flex: 1; display: flex; flex-direction: column; }
.co-frame { border: 0; width: 100%; flex: 1; min-height: 60vh; background: transparent; }
/* cổ đông */
.co-kpis { margin-bottom: 12px; }
.shbar { position: relative; min-width: 160px; }
.shbar span { position: absolute; left: 6px; top: 6px; bottom: 6px; background: rgba(41, 98, 255, .25); border-radius: 3px; max-width: calc(100% - 12px); }
.shbar b { position: relative; padding-left: 4px; }
/* cổ tức */
.co-yrs { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding-top: 18px; }
.co-yrs .yr { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.co-yrs .bar { width: 70%; max-width: 46px; background: #089981; border-radius: 4px 4px 0 0; position: relative; min-height: 2px; }
.co-yrs .bar b { position: absolute; top: -17px; left: 50%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: var(--text); }
.co-yrs .lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }
tr.co-up td { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; }
/* tài chính */
.co-fin-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.co-fin-bar .seg { overflow-x: auto; max-width: 100%; }
.co-st { max-height: calc(100vh - 260px); }
.co-st td:first-child { white-space: normal; min-width: 240px; max-width: 360px; }
.co-st tr.lv1 td:first-child { font-weight: 700; }
.co-st tr.lv2 td:first-child { padding-left: 20px; }
.co-st tr.lv3 td:first-child { padding-left: 34px; color: var(--muted); }
.co-st tr.lv4 td:first-child, .co-st tr.lv5 td:first-child { padding-left: 46px; color: var(--muted); font-size: 12px; }
.co-chartbtn { border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 13px; padding: 0 4px; }
.co-chartbtn:hover { color: var(--accent); }
.co-finchart { margin-bottom: 12px; }
@media (max-width: 1100px) { .co-ov { grid-template-columns: 1fr; } .co-side { position: static; } }
@media (max-width: 768px) {
  #v-fa { padding: 10px 10px 16px; }
  .co-px { text-align: left; }
  .co-mini { height: 220px; }
  .co-art img, .co-noimg { width: 70px; height: 50px; }
  .co-st td:first-child { min-width: 170px; }
}
