/* ==========================================================================
   NHỊP · V2.6 — GIAO DIỆN GỌN (PC + ĐIỆN THOẠI)
   Lớp ghi đè nạp SAU CÙNG. Không đổi dữ liệu/logic, chỉ đổi cỡ chữ, khoảng cách, bố cục.
   Muốn chỉnh nhanh: sửa các biến ở :root ngay bên dưới.
   ========================================================================== */
:root{
  --c-fs:13px;        /* cỡ chữ nền */
  --c-fs-s:11.5px;    /* chữ phụ */
  --c-top:48px;       /* chiều cao thanh trên */
  --c-pad:12px;       /* đệm trong khung */
  --c-gap:10px;       /* khoảng cách giữa khung */
  --c-rad:12px;       /* bo góc */
  --c-cell-y:6px;     /* đệm dọc ô bảng */
  --c-ctl:32px;       /* chiều cao ô nhập/nút */
}

/* ---------- 1. Nền chữ + sửa lỗi "xuống dòng khắp nơi" ---------- */
html body{font-size:var(--c-fs);line-height:1.4}
#view :is(h1,h2,h3,h4,p,label,small,strong,span,a,td,th,legend){overflow-wrap:normal;word-break:normal}
#view :is(td,th){white-space:nowrap}
#view :is(.table-wrap,.db-table-wrap,.an-bt-table-wrap,.table-responsive,.orders-table-wrap,.watch-table-wrap) table{min-width:0}
#view table{font-size:12.5px}
#view th,#view td,.db-table th,.db-table td,.tbl th,.tbl td{padding:var(--c-cell-y) 8px!important;line-height:1.3}
#view th{font-size:11px;letter-spacing:.02em;font-weight:700;white-space:nowrap}
#view :is(.sg-row,.wl-row,.acc-row,.nd-row,.tr-row,.cu-row,.rs-row){padding-top:5px!important;padding-bottom:5px!important}

/* ---------- 2. Khung, tiêu đề, nút, ô nhập ---------- */
html body .panel{padding:var(--c-pad) calc(var(--c-pad) + 2px)!important;margin-bottom:var(--c-gap);border-radius:var(--c-rad);box-shadow:0 1px 3px #0a1e3212}
html body .panelhead{margin-bottom:8px;gap:8px}
html body .panelhead h2,#view h2{font-size:14.5px;margin:1px 0 0;letter-spacing:-.1px}
.panel-sub,.soft-text,.pfx-lead{font-size:var(--c-fs-s);margin-top:2px}
.eyebrow,.side-label{font-size:9.5px;letter-spacing:.9px}
html body .sec-label{margin:12px 0 6px;font-size:10.5px}
html body .view-h{margin:0 0 10px;gap:8px;align-items:center}
html body .view-h h1,#view h1{font-size:19px;letter-spacing:-.4px;margin:2px 0 0;line-height:1.2}
.view-h p,.welcome p{font-size:var(--c-fs-s);margin:2px 0 0}
.hico{width:26px!important;height:26px!important;margin-right:6px!important;vertical-align:-6px!important}
html body .btn{padding:6px 11px;font-size:12px;min-height:var(--c-ctl);border-radius:9px}
html body .btn:hover{transform:none}
#view input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),#view select{min-height:var(--c-ctl);padding:5px 9px;font-size:var(--c-fs);border-radius:8px}
#view textarea{padding:7px 9px;font-size:var(--c-fs)}
select{padding:5px 8px;font-size:12px}
.status{padding:6px 10px;margin-bottom:8px;font-size:11.5px;border-radius:8px}
.pill,.market-badge{font-size:9.5px;padding:2px 6px}
.chart{height:clamp(240px,38vh,360px)}
footer{font-size:10.5px!important;padding:8px 0 !important}
footer span{display:block}

/* ---------- 3. Lưới: bỏ ép cột 240px, dùng cột gọn ---------- */
#view .index-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-bottom:var(--c-gap)}
#view .cards{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-bottom:var(--c-gap)}
#view .content-grid{grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:var(--c-gap);margin-bottom:var(--c-gap)}
#view :is(.dashboard-grid,.analysis-grid,.an-grid,.fl-grid,.focus-grid,.acc-grid,.st-grid,.nw-grid,.thm-grid,.mc-grid,.tr-grid,.tr-risk-grid,.al-grid,.level-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:var(--c-gap)}
html body .index-card,html body .dashboard-kpis .index-card{padding:9px 11px!important;border-radius:10px}
.index-card>strong{font-size:19px;margin-top:4px}
.index-card small{margin-top:5px}
.change{font-size:11.5px;margin-top:1px}
.sparkline{font-size:30px;bottom:10px}
.card-top{font-size:10.5px}

#view .content-grid{align-items:start}
#view .content-grid>.panel{margin-bottom:0}

/* ---------- 4. PC (>900px) ---------- */
@media(min-width:901px){
  html body[class],html body{--c-top:48px}
  html[data-skin] .topbar{height:var(--c-top)!important;padding:0 16px!important;gap:10px!important}
  .nhip-mark{height:24px!important;width:auto!important}
  .brandname,.nhip-name{font-size:18px}
  .nhip-wm{height:26px!important;width:auto!important}
  .tagline{font-size:11px;padding-left:10px}
  .top-actions{gap:8px}
  .live{font-size:10.5px}
  html body .nh-strip{top:var(--c-top)!important;padding:4px 16px!important;gap:10px!important}
  .nh-t{min-height:30px!important;padding:3px 12px!important;flex-direction:row!important;gap:6px;border-radius:8px}
  .nh-t b{font-size:12.5px}.nh-t small{font-size:10.5px;display:inline}
  .nh-note{font-size:11.5px}
  html[data-skin] .shell{grid-template-columns:172px minmax(0,1fr)!important;max-width:1920px}
  html[data-skin] .sidebar{padding:12px 8px 12px 10px!important;gap:1px!important;min-height:calc(100vh - var(--c-top) - 40px)!important}
  html[data-skin] .sidebar .side-label{padding:8px 8px 3px;margin:0}
  html[data-skin] .nav{padding:6px 9px!important;font-size:12.5px!important;gap:9px!important;border-radius:8px!important;min-height:0!important}
  html[data-skin] .nav .ni,.nav svg{width:17px!important;height:17px!important}
  .side-footer{font-size:9.5px;padding:10px 6px 0}
  html body .main{padding:12px clamp(12px,1.4vw,22px) 12px!important}
  html[data-skin] .welcome h1{font-size:22px;letter-spacing:-.6px;margin:4px 0}
  .search{padding:10px;border-radius:10px}
}
/* PC rất rộng: tận dụng bề ngang, chia nhiều cột hơn */
@media(min-width:1500px){
  #view .index-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
  #view .content-grid{grid-template-columns:minmax(0,2fr) minmax(320px,1fr)}
}

/* ---------- 5. ĐIỆN THOẠI (≤900px) ---------- */
@media(max-width:900px){
  :root{--c-fs:13px;--c-top:44px;--c-pad:10px;--c-gap:8px;--c-rad:12px;--c-ctl:34px;--navh:52px}
  html[data-skin] .topbar{height:var(--c-top)!important;padding:0 10px!important;gap:6px!important}
  .nhip-mark{height:20px!important;width:auto!important}
  .nhip-wm{height:22px!important;width:auto!important}
  .brandname{font-size:17px}
  .tagline{display:none}
  .top-actions{gap:6px}
  .live{font-size:0}.live i{margin:0}
  html body .top-actions .btn{min-height:30px;padding:4px 9px;font-size:11.5px;border-radius:8px}
  html body .nh-strip{top:var(--c-top)!important;padding:4px 8px!important;border-bottom-width:2px}
  .nh-t{min-height:30px!important;padding:2px 6px!important;border-radius:8px}
  .nh-t b{font-size:13px}
  /* thanh điều hướng dưới thấp hơn, chừa thêm chỗ cho nội dung */
  #mnav{height:calc(var(--navh) + var(--safeb,0px))!important;padding:3px 4px var(--safeb,0px)!important}
  #mnav a,#mnav button{font-size:10.5px!important;gap:1px!important;border-radius:9px!important}
  #mnav .ni{width:20px!important;height:20px!important}
  html body .main{padding:8px 8px calc(var(--navh) + var(--safeb,0px) + 14px)!important}
  html body .view-h{margin:0 0 8px;flex-wrap:nowrap!important;align-items:flex-start!important;text-align:left}
  .view-h>:first-child{flex:1 1 0;min-width:0;align-self:stretch;text-align:left}
  .view-h .eyebrow,.view-h h1,.view-h p{text-align:left}
  html body .panelhead{flex-wrap:nowrap!important;align-items:center}
  .panelhead>:first-child{min-width:0;flex:1 1 auto}
  .panelhead .btn{flex:0 0 auto}
  html body .view-h h1,#view h1{font-size:17px}
  html body .view-h .btn,#view .view-h button{width:auto!important;flex:0 0 auto;margin-left:auto}
  .view-h p{font-size:11px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .hico{width:22px!important;height:22px!important;margin-right:4px!important}
  html body .panel{padding:var(--c-pad)!important;margin-bottom:var(--c-gap);border-radius:var(--c-rad)}
  html body .panelhead h2,#view h2{font-size:14px}
  /* số liệu: 2 cột để thấy nhiều thẻ trong 1 màn hình */
  #view .index-grid,#view .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  html body .index-card{padding:8px 10px!important}
  .index-card>strong{font-size:16.5px}
  .index-card small,.card-top{font-size:10px}
  #view :is(.dashboard-grid,.analysis-grid,.an-grid,.fl-grid,.focus-grid,.acc-grid,.st-grid,.nw-grid,.thm-grid,.mc-grid,.tr-grid,.tr-risk-grid,.al-grid,.level-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:8px}
  #view .content-grid{grid-template-columns:minmax(0,1fr);gap:var(--c-gap)}
  #view table{font-size:11.5px}
  #view th,#view td,.db-table th,.db-table td,.tbl th,.tbl td{padding:4px 5px!important}
  #view th{font-size:10.5px}
  /* ô nhập 16px để iOS không tự phóng to khi chạm */
  #view input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),#view select,#view textarea{font-size:16px;min-height:var(--c-ctl);padding:4px 9px}
  .chart{height:clamp(220px,34vh,300px)}
  .ai-widget{bottom:calc(var(--navh) + var(--safeb,0px) + 8px)!important;right:8px!important}
  .ai-launcher{width:42px!important;height:42px!important}
  .ai-launcher .ni{width:21px!important;height:21px!important}
  footer{padding:4px 0 8px!important}footer span{display:none}
  .ms-grid{gap:8px}.ms-grid a{min-height:68px!important;font-size:12px!important;border-radius:12px!important}
  .ms-grid .ni{width:22px!important;height:22px!important}
}
@media(max-width:380px){
  html body .main{padding-left:6px!important;padding-right:6px!important}
  #view .index-grid,#view .cards{gap:5px}
}
/* Tôn trọng cài đặt cỡ chữ của người dùng (Cài đặt → Cỡ chữ) */
html[data-fs="s"] body{font-size:12px}
html[data-fs="l"] body{font-size:14px}

/* v2.7.22 — Bộ lọc Tin tức gọn: ô tìm + nút Lọc, chip chủ đề/thời gian vuốt ngang, bộ lọc nâng cao thu gọn */
html body #nf.nwf{display:flex!important;flex-direction:column;gap:8px;padding:10px 12px!important;position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;order:0!important;border-radius:14px}
#nf .nwf-top{display:flex;gap:8px;align-items:center}
#nf .nwf-q{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;height:36px;padding:0 10px;border:1px solid var(--line2,var(--line));border-radius:11px;background:var(--surface2,rgba(127,127,127,.08));color:var(--muted)}
#nf .nwf-q:focus-within{border-color:var(--brand,#14c29a);box-shadow:0 0 0 2px color-mix(in srgb,var(--brand,#14c29a) 22%,transparent)}
#nf .nwf-q input{flex:1;min-width:0;width:100%;border:0!important;background:transparent!important;outline:0!important;box-shadow:none!important;min-height:0!important;height:100%!important;padding:0!important;font-size:13.5px;color:var(--text)}
#nf .nwf-adv{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 12px;border:1px solid var(--line2,var(--line));border-radius:11px;background:var(--surface);color:var(--text2);font:600 12.5px/1 inherit;cursor:pointer;min-height:0}
#nf .nwf-adv.on,#nf .nwf-adv[aria-expanded="true"]{background:var(--brand-soft,var(--sel));color:var(--brand-ink,var(--text));border-color:var(--brand-line,var(--line))}
#nf .nwf-adv b{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--brand,#14c29a);color:#fff;font-size:11px;line-height:18px;text-align:center}
#nf .nwf-adv b[hidden]{display:none}
#nf .nwf-row{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:0 -2px;padding:1px 2px;-webkit-overflow-scrolling:touch}
#nf .nwf-row::-webkit-scrollbar{display:none}
#nf .nwf-c{flex:0 0 auto;height:28px;min-height:0;padding:0 11px;border-radius:999px;border:1px solid var(--line2,var(--line));background:transparent;color:var(--text2);font:600 12px/1 inherit;cursor:pointer;white-space:nowrap}
#nf .nwf-c.on{background:var(--brand-soft,var(--sel));color:var(--brand-ink,var(--text));border-color:var(--brand-line,var(--brand))}
#nf .nwf-ap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:2px}
#nf .nwf-ap[hidden],#nf .nwf-on[hidden]{display:none!important}
#nf .nwf-f{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--muted);min-width:0}
#nf .nwf-f select{width:100%;height:34px;min-height:34px!important;padding:0 8px!important;border-radius:9px!important;font-size:12.5px!important}
#nf .nwf-on{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#nf .nwf-t{display:inline-flex;align-items:center;gap:2px;height:26px;padding:0 3px 0 10px;border-radius:999px;background:var(--brand-soft,var(--sel));color:var(--brand-ink,var(--text));font:600 11.5px/1 inherit}
#nf .nwf-t button{all:unset;cursor:pointer;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;font-size:15px;line-height:1}
#nf .nwf-clr{all:unset;cursor:pointer;color:var(--muted);font:600 12px/1 inherit;text-decoration:underline;padding:4px 2px}
#nf .nw-how{font-size:11.5px}#nf .nw-how summary{min-height:24px}

/* v2.7.23 — Tin tức trên PC (≥1101px): bộ lọc 1 dòng riêng phía trên; "Tin theo mã" + "Tin đã lưu" chung 1 dòng bên dưới; danh sách tin nằm dưới cùng */
@media(min-width:1101px){
  html body .nw-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start}
  html body .nw-grid>.nw-side{grid-column:1!important;grid-row:auto!important;position:static!important;top:auto!important;max-height:none!important;overflow:visible!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;padding:0!important;width:100%;min-width:0}
  html body .nw-grid>.nw-feed{grid-column:1!important;grid-row:auto!important;min-width:0}
  html body .nw-side>.nw-r{display:contents!important}
  html body .nw-side>#nf.nwf{grid-column:1/-1!important}
  html body .nw-side .nw-r>.panel{margin:0!important;min-width:0;align-self:stretch}
  html body #nf.nwf{flex-direction:row!important;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:10px 14px!important}
  #nf .nwf-top{flex:0 1 400px;min-width:260px}
  #nf .nwf-row{flex:0 0 auto;overflow:visible;margin:0;padding:0}
  #nf .nwf-row+.nwf-row{padding-left:12px;border-left:1px solid var(--line2,var(--line))}
  #nf .nwf-ap{flex:1 1 100%;grid-template-columns:repeat(6,minmax(0,1fr))}
  #nf .nwf-on{flex:1 1 100%}
  #nf .nw-how{flex:0 0 auto;margin-left:auto}
  #nf .nw-how[open]{flex:1 1 100%}
}

/* v2.7.24 — Cài đặt trên PC (≥1101px): các mục (Tài khoản, Giao diện…, Bảo mật…) nằm trên cùng 1 hàng, nội dung bên dưới full ngang */
@media(min-width:1101px){
  html body #view .st-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  html[data-skin] body .st-nav,html[data-skin] .st-grid>.st-nav{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;overflow-x:auto!important;position:static!important;top:auto!important;width:100%;gap:4px!important;padding:4px!important;margin:0!important;background:var(--surface2,rgba(127,127,127,.08));border:1px solid var(--line2,var(--line));border-radius:13px;scrollbar-width:none}
  .st-nav::-webkit-scrollbar{display:none}
  html[data-skin] .st-grid>.st-nav button{flex:1 1 auto!important;width:auto!important;min-width:0;min-height:38px!important;height:38px;padding:0 14px!important;border:0!important;border-radius:10px!important;background:transparent!important;box-shadow:none!important;color:var(--text2)!important;font:600 13px/1 inherit;text-align:center!important;white-space:nowrap}
  html[data-skin] .st-grid>.st-nav button.on{background:var(--brand-soft,var(--sel))!important;color:var(--brand-ink,var(--text))!important;box-shadow:inset 0 0 0 1px var(--brand-line,var(--line))!important}
}

/* v2.7.25 — Phân tích AI (Cài đặt): hàng Bật / Kiểm tra kết nối / Tải danh sách model cách hàng ô nhập phía trên; mobile gọn 1 dòng */
html body .prov-body .prov-act{margin-top:14px!important;gap:8px 10px;align-items:center}
html body .prov-body .prov-act>span:empty{display:none}
@media(max-width:700px){
  html body .prov-body .prov-act{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:6px;margin-top:12px!important;padding-bottom:2px}
  html body .prov-body .prov-act::-webkit-scrollbar{display:none}
  html body .prov-body .prov-act>*{flex:0 0 auto;width:auto!important;white-space:nowrap}
  html body .prov-body .prov-act>label.row{gap:5px;font-size:13px;margin:0}
  html body .prov-body .prov-act>label.row input{width:18px;height:18px;margin:0}
  html body .prov-body .prov-act .btn{min-height:36px!important;height:36px;padding:0 10px!important;font-size:12px!important;border-radius:10px}
}

/* v2.7.26 — Giao dịch trên PC (≥1101px): Sức mua / Tổng tài sản / Lãi-lỗ / Khách hàng / Danh mục / Đang giữ-Tiền mặt nằm 1 dòng dưới "Theo dõi · Gần đây" */
.tp-accbar{display:none}
@media(min-width:1101px){
  html body .tp-head .tp-accbar{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;padding-top:10px;border-top:1px solid var(--line);min-width:0}
  html body .tp-accbar .tp-acct{display:flex!important;flex:0 1 auto;gap:8px;margin:0!important;min-width:0}
  html body .tp-accbar .tp-acct div{flex:0 1 auto;min-width:130px;justify-content:center}
  html body .tp-accbar .tp-who2{display:flex;flex:1 1 420px;gap:8px;align-items:stretch;min-width:0}
  html body .tp-who2 .tr-acct{display:flex!important;flex:1 1 auto;gap:8px;min-width:0}
  html body .tp-who2 .tr-acct label{flex:1 1 150px;min-width:0;justify-content:center;gap:2px;padding:5px 9px;border-radius:10px;background:var(--surface2,rgba(127,127,127,.07))}
  html body .tp-who2 .tr-acct label span{font-size:10px;letter-spacing:.04em;text-transform:uppercase}
  html body .tp-who2 .tr-acct select{width:100%;min-height:26px!important;height:26px;padding:0 4px!important;border:0!important;background:transparent!important;font-size:13px;font-weight:700;box-shadow:none!important}
  html body .tp-who2 .tr-hold{flex:0 1 auto;display:flex!important;flex-direction:column;justify-content:center;gap:2px;padding:5px 12px;margin:0!important;white-space:nowrap;font-size:12.5px}
  html body .tp-who2 .tr-hold>span{display:block}
}
@media(min-width:1500px){html body .tp-head .tp-accbar{flex-wrap:nowrap}}

/* v2.7.27 — Giao dịch trên PC: phiếu lệnh không còn thanh cuộn riêng; nút Mua/Bán, Lệnh thường/Lệnh chờ, LO/ATO gọn vừa phải; Xem / Theo dõi / Hỏi AI cao bằng nhau */
@media(min-width:901px){
  html body .tp-ticket{position:static!important;max-height:none!important;overflow:visible!important;top:auto!important}
  html body .tp-ticket .tr-side{padding:3px;gap:4px;border-radius:11px}
  html body .tp-ticket .tr-side button{min-height:36px!important;height:36px;font-size:14px!important;border-radius:9px}
  html body .tp-ticket .tr-mode{gap:5px;margin-bottom:6px}
  html body .tp-ticket .tr-mode button{min-height:32px!important;font-size:13px;border-radius:8px}
  html body .tp-ticket .tr-ot button{min-height:30px!important;font-size:12px}
}
@media(min-width:701px){
  html body .cp-embed .cp-top>.cp-search .btn,html body .cp-embed .cp-top .cp-actions .btn{height:38px!important;min-height:38px!important;padding:0 14px!important;line-height:1;display:inline-flex;align-items:center;justify-content:center}
  html body .cp-embed .cp-top{align-items:center!important}
}

/* v2.7.28 — Lệnh chờ: ba nút Chờ mua / Take profit / Stop loss luôn nằm gọn 1 dòng, không xuống dòng chữ */
html body .od-kinds,html body .pt-kinds{display:flex!important;flex-wrap:nowrap;gap:4px!important}
html body .od-kinds button,html body .pt-kinds button{flex:1 1 auto!important;min-width:0;padding:0 8px!important;min-height:34px!important;white-space:nowrap!important;font-size:12.5px!important;line-height:1;text-align:center}

/* v2.7.29 — nút: chữ nằm giữa ô; ba nút Chờ mua/TP/SL chia đều; phiếu xác nhận: Quay lại + Xác nhận canh giữa, chữ tự co (nhip-btn-fit.js) */
html body .od-kinds,html body .pt-kinds{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:4px!important}
html body .od-kinds button,html body .pt-kinds button,html body .tr-mode button,html body .tr-ot button,html body .tr-side button{display:flex!important;align-items:center;justify-content:center;text-align:center;white-space:nowrap!important;overflow:hidden;padding:0 6px!important;min-width:0}
html body .tr-cf .tr-row{display:flex;align-items:stretch;gap:8px}
html body .tr-cf .tr-row button{display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;overflow:hidden;min-width:0;min-height:46px;height:46px;padding:0 10px!important;line-height:1}
html body .tr-cf .tr-row button.btn{flex:0 0 32%}
html body .tr-cf .tr-row .tr-go{flex:1 1 0}

/* v2.7.30 — nút xanh "Mua/Bán … · 100 cp" trong phiếu lệnh (PC) gọn hơn */
@media(min-width:901px){
  html body .tp-ticket .tr-go{min-height:38px!important;height:38px;padding:0 14px!important;font-size:14px!important;border-radius:10px;display:flex;align-items:center;justify-content:center;white-space:nowrap}
}

/* v2.7.31 — Lệnh chờ: thanh chọn nhanh % giá và khối lượng nằm ngay dưới ô nhập, 1 hàng, kiểu thanh phân đoạn gọn */
html body .od-add>.od-fields{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
html body .od-fg{display:grid;gap:4px;min-width:0}
html body .od-fg .od-chips{display:grid!important;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px!important;padding:2px;margin:0!important;border-radius:10px;background:var(--surface2,rgba(127,127,127,.09))}
html body .od-fg .od-chips button{display:flex!important;align-items:center;justify-content:center;min-width:0;min-height:26px!important;height:26px;padding:0 2px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--text2)!important;font:700 11.5px/1 inherit!important;white-space:nowrap;overflow:hidden;text-align:center}
html body .od-fg .od-chips button:hover{background:var(--surface,#fff)!important;box-shadow:0 1px 2px rgba(20,40,60,.14)}
html body .od-fg .od-chips button:active{background:var(--brand-soft,var(--sel))!important}
html body .od-fg .od-chips [data-od-pct^="-"]{color:var(--dn)!important}
html body .od-fg .od-chips [data-od-pct]:not([data-od-pct^="-"]):not([data-od-pct="0"]){color:var(--up)!important}

/* NHIP V2.22 — compact fundamentals block inside Evidence tab */
.nhip-fundamentals{margin:0 0 10px;padding:12px}
.nhip-fund-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:10px 0}
.nhip-fund-item{min-width:0;padding:9px 10px;border:1px solid var(--line,rgba(127,127,127,.22));border-radius:9px;background:var(--panel2,rgba(127,127,127,.045));display:flex;flex-direction:column;gap:4px}
.nhip-fund-item small{font-size:11px;line-height:1.3;color:var(--muted,#89909b)}
.nhip-fund-item b{font-size:16px;line-height:1.25;overflow-wrap:anywhere}
.nhip-fund-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.nhip-fund-actions .btn{min-height:30px;padding:5px 10px;font-size:12px}
@media(max-width:700px){.nhip-fund-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nhip-fund-item b{font-size:15px}}

/* NHIP fundamental statements panel */
.nhip-fs-wrap{margin-top:14px;padding-top:12px;border-top:1px solid var(--line,rgba(127,127,127,.22))}.nhip-fs-wrap .an-bt-table-wrap{margin-top:8px;overflow-x:auto}.nhip-fs-wrap table{min-width:620px}.nhip-fs-wrap th,.nhip-fs-wrap td{white-space:nowrap}
