/* stock-fin.css — tab Tài chính + Chỉ số trang /co-phieu/<MÃ> (Agent F · trang cổ phiếu, 09/10/2026).
   Chỉ dùng biến màu của moats.css (var(--…)); nạp TRƯỚC /assets/mobile.css. Tiền tố lớp: ff- */
.ff{gap:18px}
.ff-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 16px}
.ff-bar2{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:12px}
.ff-ctl{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.ff-ctl__l{font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}
.ff-ctl .seg{max-width:100%;overflow-x:auto}
.ff-ctl .seg button{white-space:nowrap}
.ff-ctl .seg button[disabled]{opacity:.4;cursor:not-allowed}
.ff-type{margin-left:auto;display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* biểu đồ */
.ff-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ff-charts > .ff-ccard:first-child{grid-column:1/-1}
.ff-bar > div,.ff-bar2 > div{min-width:0;max-width:100%}
.ff-rgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ff-ccard{padding:16px 16px 10px;min-width:0}
.ff-ch{display:flex;align-items:center;justify-content:space-between;gap:8px 12px;flex-wrap:wrap;margin-bottom:6px}
.ff-ch h2,.ff-ch h3{font-size:16px;margin:0;line-height:1.3}
.ff-ch .seg button{min-height:28px;padding:3px 10px}
.ff-chart{width:100%;min-width:0;position:relative}
.ff-last{font-weight:700;font-size:13px;color:var(--ink)}
.ff-med{margin:4px 0 0}
.ff-empty{padding:28px 12px;text-align:center;color:var(--muted);font-size:14px;margin:0}

/* chỉ tiêu đã chọn */
.ff-sel{padding:16px}
.ff-chips{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px}
.ff-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid var(--line);background:var(--card-2,var(--card));color:var(--ink);border-radius:999px;padding:4px 10px;font-size:13px;font-weight:500;min-height:32px;cursor:pointer}
.ff-chip i{width:10px;height:10px;border-radius:3px;flex:none}
.ff-chip span[aria-hidden]{color:var(--muted);font-size:15px;line-height:1}
.ff-chip:hover{border-color:var(--muted)}

/* bảng */
.ff-tcard{padding:16px 16px 14px}
.ff-thead{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ff-thead h2{margin:0}
.ff-tools{display:flex;gap:8px;flex-wrap:wrap}
.ff-hint{color:var(--muted)}
.ff-wrap{margin-top:12px;border:1px solid var(--line);border-radius:var(--radius,12px);overflow:auto;max-height:78vh;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;background:var(--card)}
.ff-tbl{border-collapse:separate;border-spacing:0;font-size:13.5px;width:max-content;min-width:100%}
.ff-tbl th,.ff-tbl td{padding:7px 12px;text-align:right;white-space:nowrap;border-bottom:1px solid var(--line-2,var(--line));font-variant-numeric:tabular-nums;background:var(--card)}
.ff-tbl thead th{position:sticky;top:0;z-index:2;background:var(--card-2,var(--card));font-size:12.5px;color:var(--muted);font-weight:700;border-bottom:1px solid var(--line)}
.ff-tbl .lab{position:sticky;left:0;z-index:1;text-align:left;white-space:normal;min-width:270px;max-width:360px;font-weight:400;color:var(--ink);border-right:1px solid var(--line);box-shadow:4px 0 6px -4px rgba(14,23,38,.12)}
.ff-tbl thead .lab{z-index:3}
.ff-tbl td.sp,.ff-tbl th.sp{padding:3px 8px;text-align:center;border-right:1px solid var(--line-2,var(--line))}
.ff-lab{display:flex;align-items:flex-start;gap:4px}
.ff-lt{min-width:0;line-height:1.35;padding-top:1px}
.ff-tg,.ff-tg-sp{flex:none;width:20px;height:20px}
.ff-tg{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--muted);border-radius:5px;padding:0;cursor:pointer;margin-top:-1px}
.ff-tg svg{transition:transform .15s}
.ff-tg[aria-expanded="true"] svg{transform:rotate(90deg)}
.ff-tg:hover{background:var(--neubg);color:var(--ink)}
.ff-tbl tr.lv2 .lab,.ff-tbl tr.lv3 .lab{color:var(--neu,var(--ink));font-size:13px}
.ff-tbl tr.b th,.ff-tbl tr.b td{font-weight:700}
.ff-tbl tr.h th,.ff-tbl tr.h td{background:var(--neubg);font-weight:700;color:var(--ink)}
.ff-tbl tr.pick{cursor:pointer}
.ff-tbl tbody tr:hover th,.ff-tbl tbody tr:hover td{background:var(--hover,var(--zebra))}
.ff-tbl tr.sel th,.ff-tbl tr.sel td{background:var(--infobg,#E6EEFF)}
.ff-tbl tr.sel .lab{box-shadow:inset 3px 0 0 var(--c1,#2563EB),4px 0 6px -4px rgba(14,23,38,.12)}
.ff-tbl td.neg{color:var(--down-t,var(--bad))}
.ff-tbl td.pos{color:var(--up-t,var(--ok))}
.ff-tbl td.na{color:var(--muted)}
.ff-spark polyline{stroke:var(--c1,#2563EB)}
.ff-spark.is-up polyline{stroke:var(--up,#0B9E6B)}
.ff-spark.is-down polyline{stroke:var(--down,#E5484D)}

@media (max-width:1100px){
  .ff-rgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:719px){
  .ff-charts,.ff-rgrid{grid-template-columns:minmax(0,1fr)}
  .ff-bar{padding:10px 12px;gap:8px 12px}
  .ff-bar > div,.ff-bar2 > div{width:100%}
  .ff-tools{width:100%}
  .ff-tools .btn{flex:1 1 0;min-width:0;padding-left:8px;padding-right:8px;justify-content:center}
  .ff-ctl{width:100%;justify-content:space-between}
  .ff-ctl .seg{min-width:0;flex:0 1 auto}
  .ff-bar2 .ff-ctl{flex-direction:column;align-items:flex-start;gap:4px}
  .ff-bar2 .ff-ctl .seg{flex-wrap:wrap;overflow:visible}
  .ff-ctl__l{min-width:62px}
  .ff-type{margin-left:0}
  .ff-tbl .lab{min-width:150px;max-width:172px;font-size:12.5px}
  .ff-tbl th,.ff-tbl td{padding:6px 8px;font-size:12.5px}
  .ff-tbl td.sp,.ff-tbl th.sp{display:none}
  .ff-tcard,.ff-ccard,.ff-sel{padding:14px 12px 10px}
  .ff-wrap{max-height:72vh;margin-left:-4px;margin-right:-4px}
}
/* nút "Xem các năm cũ hơn…" của khối Báo cáo gốc (stock-docs.js, agent D) tràn ngang ở 360px → cho xuống dòng */
/* (vá tạm nút [data-bd-more] đã bỏ 09/10 — sửa gốc trong stock-docs.js) */

/* ===== FIN2 09/10: tab con (Tổng quan · Báo cáo · Thác nước), cột tổng hợp TTM/YTD, thác nước, dòng nguồn ===== */
.ff-subs{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 2px;margin:-4px 0 -2px}
.ff-subtab{appearance:none;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:600;padding:10px 12px 9px;margin-bottom:-1px;cursor:pointer;border-radius:6px 6px 0 0;min-height:40px}
.ff-subtab:hover{color:var(--ink);background:var(--hover,var(--zebra))}
.ff-subtab[aria-selected="true"]{color:var(--brand-ink,var(--brand));border-bottom-color:var(--brand)}
.ff-subtab:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}
.ff-st-s{display:none}
.ff-panel{display:flex;flex-direction:column;gap:18px}
.ff-panel[hidden]{display:none}
.ff-charts--4 > .ff-ccard:first-child,.ff-charts--wf > .ff-ccard:first-child{grid-column:auto}
.ff-charts--wf > .ff-ccard:nth-child(3){grid-column:1/-1}
.ff-say{margin:8px 0 2px;font-size:13px;color:var(--ink2,var(--ink));line-height:1.5}
.ff-say b.num{font-variant-numeric:tabular-nums}
.ff-golink{color:var(--link,var(--brand-ink));font-weight:600;text-decoration:none;white-space:nowrap}
.ff-golink:hover{text-decoration:underline}
.ff-src{margin:0;padding:10px 14px;border:1px dashed var(--line);border-radius:var(--radius,12px);font-size:12.5px;color:var(--muted);line-height:1.5;background:var(--card-2,transparent)}
.ff-src b{color:var(--brand-ink,var(--brand))}
.ff-wfbar{margin-top:0;padding:10px 16px}
.ff-select{min-height:36px;padding:0 10px;border:1px solid var(--border-input,var(--line));border-radius:8px;background:var(--card);color:var(--ink);font:inherit;font-size:14px;max-width:100%}
.ff-tbl th.agg,.ff-tbl td.agg{background:var(--brand-bg,var(--card-2));border-left:1px solid var(--line)}
.ff-tbl thead th.agg{color:var(--brand-ink,var(--ink));cursor:help}
.ff-tbl tr.sel td.agg{background:var(--infobg,#E6EEFF)}
.ff-tbl tbody tr:hover td.agg{background:var(--hover,var(--zebra))}
.ff-wrap--kpi,.ff-wrap--wf{max-height:none}
.ff-wrap--wf{margin-top:10px}
.ff-kpi{width:100%}
.ff-kpi .lab{min-width:200px}
.ff-tbl td.b{font-weight:700}
.ff-wft .lab{min-width:220px}
.ff-wdot{display:inline-block;width:9px;height:9px;border-radius:2px;margin:5px 6px 0 2px;flex:none}
@media (max-width:719px){
  .ff-subtab{flex:1 1 0;padding:9px 6px 8px;font-size:13px;text-align:center}
  .ff-st-l{display:none} .ff-st-s{display:inline}
  .ff-charts--wf > .ff-ccard:nth-child(3){grid-column:auto}
  .ff-kpi .lab,.ff-wft .lab{min-width:140px;max-width:160px}
  .ff-wfbar{padding:10px 12px}
  .ff-wfbar .ff-ctl{flex-direction:row;align-items:center}
  .ff-src{font-size:12px}
}

/* ===== 09/10 tối: bố cục bảng BCTC cho người tự tính chỉ số + Máy tính nhanh ===== */
.ff-subs{margin:0 0 -6px}
.ff-bar{padding:10px 14px;gap:8px 16px}
.ff-bar .seg button{min-height:32px;padding:4px 12px}
.ff-thead{align-items:center;gap:10px 12px}
.ff-rt .ff-ctl__l{display:none}
.ff-rt .seg{padding:3px;border-radius:12px}
.ff-rt .seg button{font-size:15px;font-weight:700;min-height:40px;padding:6px 16px;border-radius:9px}
.ff-bar2{margin-top:10px;gap:8px 18px}
.ff-howto{display:flex;gap:8px;align-items:flex-start;margin:10px 0 0;padding:8px 12px;border-radius:10px;background:var(--brand-bg,var(--card-2));color:var(--ink2,var(--ink));font-size:13px;line-height:1.45}
.ff-howto b{color:var(--brand-ink,var(--brand))}
.ff-howto__i{font-size:15px;line-height:1.3}
.ff-note{margin:8px 0 0;font-size:13px;color:var(--muted)}
.ff-note summary{cursor:pointer;list-style:none;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center}
.ff-note summary::-webkit-details-marker{display:none}
.ff-note__m{color:var(--link,var(--brand-ink));font-weight:600}
.ff-note__m::after{content:' ▾'}
.ff-note[open] .ff-note__m::after{content:' ▴'}
.ff-note p{margin:6px 0 0;line-height:1.5}
.ff-tbl td[data-c]{cursor:cell;position:relative}
.ff-tbl td[data-c]:hover{box-shadow:inset 0 0 0 1px var(--brand)}
.ff-tbl thead th.hc{color:var(--brand-ink,var(--brand));box-shadow:inset 0 -2px 0 var(--brand)}
.ff-tbl td.cpk{background:var(--brand-bg,#E6EEFF)!important;box-shadow:inset 0 0 0 2px var(--brand);font-weight:700}
.ff-tbl td.cpk::before{content:attr(data-l);position:absolute;top:2px;left:4px;font-size:10px;font-weight:800;line-height:1;color:#fff;background:var(--brand);border-radius:3px;padding:1px 3px}
/* khay máy tính: dính đáy màn hình khi đang cuộn bảng */
.ff-calc{position:sticky;bottom:10px;z-index:20;padding:12px 14px;border:1px solid var(--brand);box-shadow:0 10px 30px -8px rgba(0,0,0,.45);margin-top:-6px}
.ff-calc__h{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap}
.ff-calc__sp{flex:1}
.ff-calc.is-min .ff-calc__body{display:none}
.ff-calc__chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.ff-cchip{display:inline-flex;align-items:center;gap:6px;max-width:100%;border:1px solid var(--line);background:var(--card-2,var(--card));color:var(--ink);border-radius:10px;padding:4px 8px;font:inherit;font-size:12.5px;cursor:pointer;min-height:34px;text-align:left}
.ff-cchip:hover{border-color:var(--down,#E5484D)}
.ff-cl{flex:none;display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:5px;background:var(--brand);color:#fff;font-size:12px}
.ff-cchip__t{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px;color:var(--ink2,var(--ink))}
.ff-cchip__v{font-weight:700}
.ff-cchip__x{color:var(--muted);font-size:15px}
.ff-calc__res{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin:10px 0 0}
.ff-calc__res > div{border:1px solid var(--line-2,var(--line));border-radius:10px;padding:7px 10px;background:var(--card)}
.ff-calc__res dt{font-size:12px;color:var(--muted);line-height:1.3}
.ff-calc__res dd{margin:2px 0 0;font-size:16px;font-weight:700;color:var(--ink)}
.ff-calc__tip{margin:8px 0 0}
.ff-calc__f{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;margin-top:10px}
.ff-calc__f label{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.ff-calc__f input{flex:1 1 220px;min-width:0;min-height:38px;padding:0 12px;border:1px solid var(--border-input,var(--line));border-radius:9px;background:var(--card);color:var(--ink);font:inherit;font-size:15px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.ff-calc__f input:focus{outline:2px solid var(--brand);outline-offset:0}
.ff-calc__f output{font-size:17px;font-weight:700;color:var(--ink)}
.ff-calc__err{color:var(--down-t,var(--bad));font-size:13px;font-weight:600}
.ff-calc__pre{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.ff-pre{border:1px dashed var(--line);background:transparent;color:var(--ink2,var(--ink));border-radius:8px;padding:4px 8px;font:inherit;font-size:12.5px;cursor:pointer;min-height:30px}
.ff-pre:hover{border-color:var(--brand);color:var(--brand-ink,var(--brand))}
.ff-pre code{font-size:11.5px;color:var(--muted)}
.ff-calc__leg{margin:8px 0 0;line-height:1.45}
@media (max-width:719px){
  .ff-rt{width:100%}
  .ff-rt .seg{display:flex;width:100%}
  .ff-rt .seg button{flex:1 1 0;font-size:13px;padding:6px 6px;white-space:normal;line-height:1.2}
  .ff-tools .btn{font-size:12.5px}
  .ff-calc{bottom:6px;padding:10px;max-height:62vh;overflow:auto}
  .ff-calc__chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}
  .ff-cchip{flex:none}
  .ff-cchip__t{max-width:150px}
  .ff-calc__res{grid-template-columns:1fr 1fr}
  .ff-calc__res dd{font-size:14.5px}
  .ff-calc__f input{font-size:16px}
}
@media (max-width:959.98px){ html.has-mtab .ff-calc{bottom:calc(68px + env(safe-area-inset-bottom))} }
@media (max-width:719px){ html.has-mtab .ff-calc{max-height:52vh} }
/* mobile: khay gọn — kết quả cuộn ngang 1 hàng, ẩn chú giải để không che bảng */
@media (max-width:719px){
  .ff-tools{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .ff-calc{max-height:44vh}
  html.has-mtab .ff-calc{max-height:44vh}
  .ff-calc__h .muted{display:none}
  .ff-calc__h b{font-size:15px}
  .ff-calc__h .btn{min-height:34px;padding:4px 10px}
  .ff-calc__chips{margin-top:8px}
  .ff-calc__res{display:flex;overflow-x:auto;gap:6px;margin-top:8px;padding-bottom:2px}
  .ff-calc__res > div{flex:0 0 auto;min-width:132px;max-width:190px;padding:6px 9px}
  .ff-calc__res dt{font-size:11.5px}
  .ff-calc__f{margin-top:8px}
  .ff-calc__f label{display:none}
  .ff-calc__pre{flex-wrap:nowrap;overflow-x:auto}
  .ff-pre{flex:none}
  .ff-calc__leg{font-size:11.5px}
}
@media (min-width:720px){ .ff-calc__res{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))} .ff-calc__res dd{font-size:15px} }

/* ===== 09/10 tối: BCTC trên điện thoại kiểu app (anh Cường: "nghiên cứu Simplize, hiển thị số liệu dễ dùng hơn") ===== */
.ff-mopt,.ff-mx{display:none}
.ff-sh[hidden]{display:none}
@media (max-width:719px){
  /* thanh Kỳ · Số kỳ · Đơn vị · Thứ tự: 1 hàng vuốt ngang, nhãn nhỏ */
  .ff-bar{flex-wrap:nowrap;overflow-x:auto;gap:10px;padding:8px 10px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .ff-bar::-webkit-scrollbar{display:none}
  .ff-bar > div{width:auto!important;flex:none}
  .ff-bar .ff-ctl{width:auto;flex-direction:column;align-items:flex-start;gap:3px}
  .ff-bar .ff-ctl__l{font-size:10.5px;min-width:0}
  .ff-bar .seg{overflow:visible}
  .ff-bar .seg button{min-height:32px;padding:4px 10px;font-size:13px}
  .ff-type{display:none}
  /* nút tóm tắt tuỳ chọn trong thẻ bảng */
  .ff-mopt{display:flex;align-items:center;gap:8px;width:100%;margin-top:10px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--card-2,var(--card));color:var(--ink2,var(--ink));font:inherit;font-size:13px;text-align:left;min-height:42px;cursor:pointer}
  .ff-mopt span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .ff-mopt__c{transition:transform .15s}
  .ff-mopt[aria-expanded="true"] .ff-mopt__c{transform:rotate(180deg)}
  .ff-mpanel{display:none;padding:10px 2px 2px}
  .ff-mpanel.is-open{display:block}
  .ff-mpanel .ff-tools{margin-bottom:10px}
  .ff-mpanel .ff-bar2{margin-top:0}
  .ff-howto{font-size:12px;padding:7px 10px}
  /* bảng: cột tên rộng hơn, số gọn, kỳ mới nhất trước */
  .ff-tbl .lab{min-width:40vw;max-width:40vw;font-size:13px;padding:8px 6px 7px 4px}
  .ff-tbl th,.ff-tbl td{padding:8px 8px;font-size:13px}
  .ff-tbl thead th{font-size:11.5px;white-space:normal;line-height:1.25;min-width:64px}
  .ff-tbl .ff-lab{padding-left:0!important}
  .ff-tbl tr.lv1 .ff-lt,.ff-tbl tr.lv2 .ff-lt,.ff-tbl tr.lv3 .ff-lt{padding-left:6px}
  .ff-tbl tr.lv2 .lab,.ff-tbl tr.lv3 .lab{font-size:12.5px}
  .ff-mx{display:flex;align-items:center;gap:6px;margin-top:3px;font-weight:400}
  .ff-mx .ff-spark{width:46px;height:14px;flex:none}
  .ff-mg{font-size:11px;font-weight:700}
  .ff-mg.pos{color:var(--up-t,var(--ok))} .ff-mg.neg{color:var(--down-t,var(--bad))}
  .ff-tbl td[data-c]:hover{box-shadow:none}
  .ff-wrap{max-height:none}
}
/* bảng chi tiết 1 chỉ tiêu — trượt từ đáy (chỉ mở trên điện thoại) */
.ff-sh{position:fixed;inset:0;z-index:120}
.ff-sh__bd{position:absolute;inset:0;background:rgba(5,10,20,.55);opacity:0;transition:opacity .2s}
.ff-sh__p{position:absolute;left:0;right:0;bottom:0;max-height:86vh;display:flex;flex-direction:column;background:var(--card);color:var(--ink);border-radius:18px 18px 0 0;
  box-shadow:0 -10px 30px rgba(0,0,0,.35);transform:translateY(100%);transition:transform .22s ease;padding:6px 14px calc(12px + env(safe-area-inset-bottom))}
.ff-sh.is-on .ff-sh__bd{opacity:1}
.ff-sh.is-on .ff-sh__p{transform:none}
html.ff-sh-open{overflow:hidden}
.ff-sh__grab{width:40px;height:4px;border-radius:4px;background:var(--line);margin:4px auto 8px}
.ff-sh__h{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.ff-sh__h h3{margin:2px 0 0;font-size:17px;line-height:1.3}
.ff-sh__x{all:unset;cursor:pointer;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;font-size:24px;color:var(--muted);border-radius:10px;flex:none}
.ff-sh__sp{margin:8px 0 4px}
.ff-sh__sp .ff-spark{width:100%;height:44px}
.ff-sh__cols{display:grid;grid-template-columns:82px 1fr 78px;gap:8px;padding:6px 6px;border-bottom:1px solid var(--line)}
.ff-sh__cols span:nth-child(n+2){text-align:right}
.ff-sh__l{list-style:none;margin:0;padding:0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;flex:1 1 auto}
.ff-sh__r{all:unset;box-sizing:border-box;width:100%;display:grid;grid-template-columns:82px 1fr 78px;gap:8px;align-items:center;padding:9px 6px;border-bottom:1px solid var(--line-2,var(--line));cursor:pointer;font-size:14px}
.ff-sh__r.agg .ff-sh__k{color:var(--brand-ink,var(--brand));font-weight:600}
.ff-sh__r.on{background:var(--brand-bg,#E6EEFF);box-shadow:inset 3px 0 0 var(--brand)}
.ff-sh__r[disabled]{opacity:.5}
.ff-sh__k{font-weight:600;font-size:13px}
.ff-sh__v{position:relative;text-align:right;font-weight:700}
.ff-sh__v i{position:absolute;right:0;top:50%;height:20px;transform:translateY(-50%);border-radius:4px;background:color-mix(in srgb,var(--c1,#2563EB) 16%,transparent)}
.ff-sh__v i.neg{background:color-mix(in srgb,var(--down,#E5484D) 18%,transparent)}
.ff-sh__v b{position:relative;padding-right:4px}
.ff-sh__v.neg b{color:var(--down-t,var(--bad))}
.ff-sh__g{text-align:right;font-size:12.5px;font-weight:600;color:var(--muted)}
.ff-sh__g.pos{color:var(--up-t,var(--ok))} .ff-sh__g.neg{color:var(--down-t,var(--bad))}
.ff-sh__tip{margin:8px 2px 0}
.ff-sh__a{display:flex;gap:8px;margin-top:10px}
.ff-sh__a .btn{flex:1;justify-content:center;min-height:44px}
@media (max-width:719px){
  .ff-tbl thead th:not(.lab){max-width:86px;width:72px}
  .ff-tbl thead th.agg{font-size:11px}
  .ff-tbl .lab{min-width:0;width:40vw}
}

/* 09/10 tối: ô tên chỉ tiêu dính trái phải ĐẶC (nền màu nhạt rgba lên nền thẻ) — trước đó dòng đang chọn/dòng nhóm/rê chuột trong suốt → số các kỳ cuộn bên dưới lộ ra chồng chữ */
.ff-tbl tr.h .lab{background:linear-gradient(var(--neubg),var(--neubg)),var(--card)}
.ff-tbl tbody tr:hover .lab{background:linear-gradient(var(--hover,var(--zebra)),var(--hover,var(--zebra))),var(--card)}
.ff-tbl tr.sel .lab{background:linear-gradient(var(--infobg,#E6EEFF),var(--infobg,#E6EEFF)),var(--card)}
.ff-tbl thead .lab{background:linear-gradient(var(--card-2,var(--card)),var(--card-2,var(--card))),var(--card)}
@media (hover:none){.ff-tbl tbody tr:hover:not(.sel):not(.h) th,.ff-tbl tbody tr:hover:not(.sel):not(.h) td{background:var(--card)}}
/* bust 20:10 */
