/* KPI CHAT LUONG — CSS rieng (cung he mau KPI: xanh #2f6fed = dat, do #d1483f = khong dat, nhom Chat luong = xanh la #2f9a4a) */
.qa-fb{background:#fff;border-radius:12px;padding:8px 12px;margin:10px 0;display:flex;flex-direction:column;gap:6px;color:#0b2545;border:1px solid #e3eaf4}
.qa-fr{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.qa-fr>b{font-size:13px;min-width:74px;color:#0b2545}
/* (09/10/2026 Nam: tong mau nut giong KPI) = .kchip cua app KPI */
.qa-chip{border:1px solid #cfe0ec;background:#fff;color:#1f3a5c;border-radius:16px;padding:3px 10px;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer;line-height:1.5}
.qa-chip.on{background:#0b2545;color:#fff;border-color:#0b2545;box-shadow:none}.qa-chip.grp{border:2px solid #0b2545;color:#0b2545;font-weight:900}.qa-chip.grp.on{color:#fff}.qa-chip.dim{opacity:.35;cursor:not-allowed}.qa-chip.sm{padding:3px 9px;font-size:12px}
.qa-sel{border:1.5px solid #b9c8dd;border-radius:8px;padding:5px 8px;font:700 13px inherit;font-family:inherit;color:#0b2545;background:#fff;max-width:100%}
.qa-ar{border:1.5px solid #b9c8dd;background:#f3f6fb;border-radius:8px;padding:4px 9px;cursor:pointer;font-weight:900;color:#0b2545}
.qa-sep{width:1px;height:22px;background:#d6dde8;margin:0 4px}.qa-sub{font-size:13px;color:#5b6b85}
.qa-title{margin:14px 0 8px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.qa-title h2{margin:0;font-size:21px;color:#fff;flex:1 1 100%;font-weight:900}.qa-title .kx-updt{margin-left:0}
.qa-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.qa-tile{background:#fff;border-radius:14px;padding:10px 12px;border:1.5px solid #e3eaf4;color:#0b2545;min-width:0}.qa-tile.ok{border-color:#9fbff5}.qa-tile.bad{border-color:#f1a59e}
.qa-tt{font-size:17px;font-weight:900;margin-bottom:6px;background:#e6f4ea;border-left:5px solid #2f9a4a;border-radius:8px;padding:5px 10px}
.qa-tv{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px}.qa-tv>div{display:flex;flex-direction:column;min-width:0}.qa-tv span{font-size:12px;color:#5b6b85;font-weight:700}
.qa-tv b{font-size:16px;font-variant-numeric:tabular-nums;font-weight:900}.qa-tv .big b{font-size:16px}
.ok{color:#2f6fed!important}.bad{color:#d1483f!important}.red{fill:#d1483f}.blue{fill:#2f6fed}
.qa-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-bottom:12px}.qa-2>.card,.qa-2>.kpod{margin:0}
.qa-st{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:17px;font-weight:900;color:#0b2545;background:#e6f4ea;border-left:5px solid #2f9a4a;border-radius:8px;padding:6px 12px;margin-bottom:10px}
.qa-st.red{background:#fff;border-left-color:#d1483f;color:#d1483f;border:1px solid #f1c3bd;border-left-width:5px}
.qa-hint{font-size:12px;color:#5b6b85;font-weight:600}.qa-okmsg{padding:10px;font-weight:700;color:#2f6fed}
.qa-ng,.qa-ng5{display:grid;grid-template-columns:minmax(0,1.6fr) repeat(4,minmax(58px,.8fr));gap:6px;align-items:center;padding:6px 6px;border-bottom:1px solid #eef1f6;font-variant-numeric:tabular-nums;font-size:13.5px;color:#0b2545}
.qa-ng5{grid-template-columns:minmax(0,1.8fr) repeat(3,minmax(64px,.8fr))}
.qa-ng>span:not(:first-child),.qa-ng5>span:not(:first-child){text-align:right;font-weight:800}.qa-gh{font-size:12px!important;color:#5b6b85;font-weight:800;border-bottom:2px solid #d6dde8}.qa-gh>span{font-weight:800!important}
.qa-row{cursor:pointer;border-radius:6px}.qa-row:hover{background:#eef3fb}.qa-row>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.qa-rk{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#e6eefc;color:#0b2545;font-style:normal;font-size:11.5px;font-weight:900;margin-right:6px}
.qa-rk.r1{background:#f6cbc5}.qa-rk.r2{background:#f9dccf}.qa-rk.r3{background:#fcebdf}
.qa-tw{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.qa-t{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums;color:#0b2545}
.qa-t th{background:#fff;color:#1d4ed8;font-weight:900;padding:7px 8px;border-bottom:2px solid #1d4ed8;text-align:center;white-space:nowrap;font-size:13px}
.qa-t td{padding:6px 8px;border-bottom:1px solid #eef1f6;text-align:center;white-space:nowrap}
.qa-t tbody tr[onclick]{cursor:pointer}.qa-t tbody tr[onclick]:hover td{background:#eef3fb}
.qa-t tr.l0 td{background:#cfdfff;font-weight:900}.qa-t tr.l1 td{background:#e6f6f2;font-weight:800}
.qa-t td:first-child,.qa-t th:first-child{text-align:left!important;padding-left:12px}
.qa-tag{display:inline-block;border-radius:999px;padding:2px 10px;font-weight:900;font-size:12px;border:1.5px solid}.qa-tag.ok{color:#2f6fed;border-color:#9fbff5;background:#fff}.qa-tag.bad{color:#c2410c!important;border-color:#fdba74;background:#fff}/* (06/11/2026 Nam H3.285 e) cam, không đỏ */.qa-tag.na{color:#8a94a6;border-color:#d6dde8}
.qa-hm td{min-width:58px}.qa-hm td.hm0{color:#b0b8c6}.qa-lech{outline:2px solid #d1483f;outline-offset:-2px}.qa-t small{font-size:11px;color:#5b6b85}
.qa-cw{overflow-x:auto;-webkit-overflow-scrolling:touch}.qa-cw svg{width:100%;height:auto;display:block}
.qa-cw .gl{stroke:#eef1f6;stroke-width:1}.qa-cw .ax{font-size:11px;fill:#5b6b85;font-weight:700}.qa-cw .ax2{font-size:10px;fill:#8a94a6;font-weight:700}.qa-cw .vl{font-size:11.5px;fill:#0b2545;font-weight:900}.qa-cw .clk{cursor:pointer}.qa-cw .clk:hover rect{filter:brightness(1.1)}
.qa-lg{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;font-size:12px;color:#5b6b85;font-weight:700;margin-top:4px}.qa-lg i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:4px;vertical-align:-1px}.qa-lg i.dash{border-top:2px dashed #0b2545;height:0;border-radius:0;width:16px}
.qa-fd>summary{list-style:none;cursor:pointer}.qa-fd>summary::-webkit-details-marker{display:none}.qa-fd:not([open])>summary .qa-st{margin-bottom:0}.qa-fd>summary .qa-st>span:first-child::after{content:' ▾';color:#2f6fed}.qa-fd:not([open])>summary .qa-st>span:first-child::after{content:' ▸'}
.qa-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.qa-kv>div{border:1px solid #e3eaf4;border-radius:8px;padding:6px 10px}.qa-kv span{display:block;font-size:12px;color:#5b6b85;font-weight:700}.qa-kv b{font-size:14px;word-break:break-word}
.qa-log{font-size:13px;padding:4px 0;border-bottom:1px solid #eef1f6}.qa-log span{color:#5b6b85;margin-right:10px;font-variant-numeric:tabular-nums}
.qa-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.qa-form .inp{flex:1 1 200px}
.qa-al .qa-st{font-size:16px}
@media(max-width:1000px){.qa-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.qa-2{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){#app div,#app details,#app section{min-width:0}.qa-tiles{grid-template-columns:minmax(0,1fr)}.qa-fr>b{min-width:0;width:100%}.qa-title h2{font-size:17px}.qa-kv{grid-template-columns:minmax(0,1fr)}
 .qa-ng{grid-template-columns:minmax(0,1.4fr) repeat(4,minmax(44px,.7fr));font-size:12px}.qa-ng5{font-size:12px;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(48px,.7fr))}.qa-tt,.qa-st{font-size:15px}}
@media print{.qa-fb{display:none}.qa-title h2{color:#0b2545}.qa-fd{break-inside:avoid}}

/* (10/10/2026 Nam "All D") o chi so dang vong tron */
.qa-dw{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;align-items:center}.qa-dn{width:96px;height:96px;display:block}
.qa-dlg{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:4px 6px;align-items:center;font-size:12px}
.qa-dlg i{font-style:normal;width:22px;height:22px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;background:#eef1f7}
.qa-dlg span{color:#5b6b85;font-weight:700;min-width:0}.qa-dlg b{text-align:right;font-size:14px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}
.qa-dlg p{grid-column:1/-1;border-top:1px solid #e3eaf4;margin:1px 0}
@media(max-width:1000px){.qa-dw{grid-template-columns:110px minmax(0,1fr)}.qa-dn{width:110px;height:110px}}

/* (10/10/2026) o chon ngay dang lich */
.qa-date{min-width:150px;font-size:16px;padding:6px 10px}

/* (10/10/2026 K2) the khach hang */
.qa-t tr.tot td{background:#eef3fb;font-weight:900}.qa-t td.n{text-align:left;white-space:nowrap}
.qa-lgk{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:8px;font-size:12px;color:#46506a;font-weight:600}

.qa-t th.qa-gF{background:#e8f0fe}.qa-t th.qa-gP{background:#fdf1e6}.qa-t td.qa-na{color:#a0a8b8}

/* (10/10/2026) o 2 khau song song */
.qa-fp2{display:grid;grid-template-columns:1fr 1fr;gap:6px;justify-items:center;margin:2px 0 6px}.qa-fpd{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}.qa-fpd .qa-dn{width:92px;height:92px}.qa-fpd b{font-size:12px;color:#0b2545}
.qa-fpt{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto;gap:3px 8px;align-items:center;font-size:12px}
.qa-fpt i{font-style:normal;width:22px;height:22px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;background:#eef1f7}
.qa-fpt span{color:#5b6b85;font-weight:700;min-width:0}.qa-fpt b{text-align:right;font-size:13.5px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.qa-fpt b.h{font-size:11px;color:#5b6b85;font-weight:800}
/* (10/10/2026) chu thich bieu do: o mau di lien voi chu (khong tach dong) */
.qa-lg{display:block;line-height:2}.qa-lg i{margin:0 4px 0 12px}.qa-lg i:first-child{margin-left:0}
/* (10/10/2026 Nam: "can cot voi du lieu") cot so: tieu de + so CAN PHAI, thang hang; cot ten can trai; tieu de nhom (Final / Prefinal) can giua */
.qa-t th,.qa-t td{text-align:right}.qa-t th[colspan]{text-align:center}.qa-t td:first-child,.qa-t th:first-child{text-align:left!important}
.qa-t th{vertical-align:bottom}

/* (10/10/2026) bang trong cua so: cot so can phai */
#p2Pop .p2tb th.r,#p2Pop .p2tb td.r{text-align:right}
.qa-defbtn{margin:6px 0 2px}

/* (10/10/2026) bieu do cot tuan / ngay trong cua so */
.qa-cc{position:relative;display:flex;align-items:flex-end;gap:6px;height:130px;padding:16px 2px 0;border-bottom:1px solid #cfd8e6}
.qa-ccc{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;cursor:pointer;min-width:0}
.qa-ccc i{display:block;width:72%;max-width:44px;border-radius:5px 5px 0 0}.qa-ccc em{font-style:normal;font-size:11px;font-weight:900;color:#0b2545;margin-bottom:2px;white-space:nowrap}
.qa-cc u{position:absolute;left:0;right:0;border-top:2px dashed #0b2545;pointer-events:none}
.qa-ccl{display:flex;gap:6px;padding:3px 2px 0}.qa-ccl span{flex:1;min-width:0;text-align:center;font-size:10.5px;color:#5b6b85;line-height:1.25;cursor:pointer}.qa-ccl b{display:block;font-size:11px;color:#0b2545}

/* (10/10/2026) o 2 khau: 1 luoi 3 cot, so canh giua ngay duoi vong */
.qa-fpg{display:grid;grid-template-columns:minmax(0,1.15fr) 1fr 1fr;gap:4px 6px;align-items:center;font-size:12px}
.qa-fpg .qa-fpd{display:flex;justify-content:center}.qa-fpg .qa-fpd .qa-dn{width:min(96px,100%);height:auto}
.qa-fpg>span{display:flex;align-items:center;gap:6px;color:#5b6b85;font-weight:700;min-width:0}.qa-fpg>span i{font-style:normal;width:22px;height:22px;flex:0 0 22px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:13px;background:#eef1f7}
.qa-fpg>b{text-align:center;font-size:13.5px;font-weight:900;font-variant-numeric:tabular-nums;white-space:nowrap}.qa-fpg>b.h{font-size:12px;color:#0b2545;padding-bottom:3px;border-bottom:2px solid #e3eaf4}
.qa-fpg>span:nth-child(3n+1):not(:first-child){border-top:1px solid #f0f3f8;padding-top:3px}

/* (10/10/2026 Nam "F1 ok") nut bo loc co dinh + cua so chon */
.qa-fbtn{position:sticky;top:calc(var(--qaHdr,0px) + 4px);z-index:39;display:flex;align-items:center;gap:8px;background:#fff;border-radius:14px;padding:9px 12px;margin:8px 0;box-shadow:0 8px 20px rgba(0,0,0,.35);cursor:pointer;border:2px solid #ffd166;color:#0b2545}
.qa-fbtn .ic{font-size:18px}.qa-fbtn .tx{flex:1;min-width:0;line-height:1.35}.qa-fbtn .tx b{display:block;font-size:14px}.qa-fbtn .tx span{display:block;color:#5b6b85;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qa-fbtn .go{background:#2f6fed;color:#fff;border-radius:999px;padding:5px 11px;font-weight:800;font-size:12.5px;white-space:nowrap}
.qa-fov{position:fixed;inset:0;z-index:2147480000;background:rgba(5,15,34,.55);display:flex;align-items:flex-end;justify-content:center}
.qa-sheet{background:#fff;color:#0b2545;width:100%;max-width:620px;max-height:88vh;border-radius:18px 18px 0 0;display:flex;flex-direction:column;animation:qaup .22s ease}@keyframes qaup{from{transform:translateY(40px);opacity:.6}}
.qa-shh{display:flex;align-items:center;padding:12px 14px 8px;border-bottom:1px solid #e3eaf4}.qa-shh b{flex:1;font-size:16px}.qa-shh button{border:0;background:#eef1f7;color:#0b2545;border-radius:999px;width:32px;height:32px;font-size:15px;cursor:pointer}
.qa-shb{overflow:auto;padding:4px 10px}.qa-shb .qa-fb{box-shadow:none;border:0;margin:0;background:transparent}
.qa-shf{display:flex;gap:8px;padding:10px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #e3eaf4}.qa-shf button{flex:1;border:0;border-radius:12px;padding:12px;font-family:inherit;font-size:14px;font-weight:800;cursor:pointer}.qa-shf .rs{background:#eef1f7;color:#0b2545}.qa-shf .ok{background:#2f6fed;color:#fff}
.qa-shf .ok{color:#fff!important;background:#2f6fed!important;-webkit-text-fill-color:#fff!important}.qa-shf .rs{color:#0b2545!important;-webkit-text-fill-color:#0b2545!important}

/* (10/10/2026) o chi so dang COT */
.qa-fpg .qa-fpd .qa-col{width:min(110px,100%);height:auto;display:block}

/* (10/10/2026 Nam: bieu do la diem nhan) */
.qa-fpg .qa-fpd .qa-col{width:min(140px,100%)}

/* (10/10/2026) khach hang = thanh ngang */
.qa-hbs{display:flex;flex-direction:column;gap:6px}
.qa-hb{border:1px solid #e3eaf4;border-radius:10px;padding:6px 10px;cursor:pointer}.qa-hb:hover{background:#f5f8ff}.qa-hb.tot{background:#eef3fb;cursor:default}
.hb-n{font-weight:900;font-size:13.5px;margin-bottom:2px}.hb-n small{font-weight:700;color:#5b6b85;font-size:11.5px}
.hb-l{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:6px;align-items:center;font-size:12px}
.hb-t{height:10px;background:#eef1f7;border-radius:5px;overflow:hidden}.hb-t i{display:block;height:100%;border-radius:5px}
.hb-l b{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:800;color:#0b2545}.hb-l b em{font-style:normal}.hb-l .hb-na{color:#a0a8b8}
/* (10/10/2026 Nam: "bieu do di chuyen qua trai cho can xung") cot ten hep lai, bieu do sat trai hon */
.qa-fpg{grid-template-columns:minmax(0,.72fr) 1fr 1fr;gap:4px 4px}.qa-fpg>span{font-size:11.5px;gap:4px}.qa-fpg>span i{width:20px;height:20px;flex:0 0 20px;font-size:12px}
.qa-fpg .qa-fpd .qa-col{width:min(150px,100%)}
.hb-l em.ok{color:#2f6fed;font-style:normal}.hb-l em.bad{color:#d1483f;font-style:normal}

/* (10/10/2026) KPI theo cap do = thanh ngang */
.qa-hv{display:flex;flex-direction:column;gap:2px}.hv-r{padding:6px 8px;border-radius:8px;cursor:pointer;border-bottom:1px solid #eef1f6}.hv-r:hover{background:#f5f8ff}
.hv-r.hv-l0{background:#eef3fb}.hv-r.hv-l1{background:#f2fbf8}.hv-r.hv-l2 .hv-n{padding-left:12px;font-weight:700}
.hv-n{font-weight:900;font-size:13.5px;color:#0b2545}.hv-b{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.hv-t{position:relative;height:12px;background:#eef1f7;border-radius:6px}.hv-t i{display:block;height:100%;border-radius:6px}.hv-t u{position:absolute;top:-3px;bottom:-3px;width:3px;background:#38a9e8;border-radius:2px}
.hv-b b{font-size:14px;font-weight:900;color:#0b2545;font-variant-numeric:tabular-nums;min-width:62px;text-align:right}.hv-b b.bad{color:#d1483f}
.hv-s{font-size:11.5px;color:#0b2545;opacity:.85}.hv-s .bad{color:#d1483f;font-weight:800}

/* (10/10/2026 Nam: chu trong o bieu do chi navy, khong dat do) */
.ok{color:#0b2545!important}
/* (10/10/2026 Nam: "can chinh theo tung khoi") CUON THEO KHOI: moi khoi (o chi so, danh sach, the) dung thang ngay duoi dau trang + nut Doi; khoi dai van cuon binh thuong */
/* (16/10/2026 Nam "KPI chat luong khong cuon duoc") bo scroll-snap: trang bi hit ve o tieu de, khong cuon len dau duoc */
#app > .qa-title,#app > .card,#app > .qa-tiles > *,#app > .qa-2 > *,#app > .qa-hier,#app > .qa-cust{scroll-snap-align:start;scroll-margin-top:calc(var(--scvHdrB,0px) + 8px)}

/* (11/10/2026) 2 o giai doan Pre-Final · Final */
.qa-tiles.qa-two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media (max-width:700px){.qa-tiles.qa-two{grid-template-columns:1fr!important}}
.qa-st{cursor:pointer;display:flex!important;flex-direction:column!important;align-items:stretch!important}.qa-st .qa-tt{width:100%}.qa-st .qa-tt{border-left:6px solid #38a9e8;padding-left:10px}.qa-st-F .qa-tt{border-left-color:#15803d}
.qa-stc{display:flex;flex-direction:column;align-items:center;padding:6px 0 4px}.qa-stc .qa-col{width:100%;max-width:340px;height:auto}.qa-stc .qa-colb{width:74%;max-width:none;min-width:260px;height:auto;aspect-ratio:300/190;flex-shrink:0}.qa-st.qa-tile{flex-wrap:nowrap!important}.qa-st .qa-stc{flex-shrink:0} /* (11/10/2026 Nam: 1 cot = 2/3 cot bieu do 3 nha may -> svg 74% o) */ /* (11/10/2026 Nam: cot bieu do to bang 2/3 o) */.qa-stc .qa-stl{font-size:16px!important;font-weight:800}.qa-st .qa-tt{font-size:20px!important}@media (max-width:700px){.qa-stc .qa-col{max-width:260px}.qa-stc .qa-colb{max-width:100%}.qa-st .qa-tt{font-size:17px!important}} /* (11/10/2026 Nam: cho bieu do to len) */
.qa-stl{font-size:12px;color:#46506a;font-weight:700;margin-top:2px}

/* (11/10/2026 Nam) popup tuan / thang: danh sach ngan + cuon */
.qa-kcur{flex:1;min-width:0;text-align:center;font-weight:800;color:#0b2545;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.qa-kl{position:relative;flex-basis:100%;max-height:220px;overflow-y:auto;-webkit-overflow-scrolling:touch;margin-top:8px;border:1.5px solid #c3d1e3;border-radius:12px;background:#fff}.qa-ki{padding:10px 12px;border-bottom:1px solid #eef2f8;cursor:pointer;color:#0b2545;font-size:14px;font-weight:700}.qa-ki.on{background:#2448a8;color:#fff}
/* (11/10/2026 G1) trang rieng Dashboard tong: khong co menu trang cua KPI chat luong */
html.qa-dt #scvMMb,html.qa-dt #scvMMd,html.qa-dt .tbB-nav,html.qa-dt #scvMMbar .tt{display:none!important}

/* ===== (12/10/2026 Nam duyet mockup) TONG QUAN MOI theo chi so ===== */
.qh-lvl{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#fff;border:1px solid #c3d1e3;border-radius:14px;padding:10px 12px;margin:8px 0}
.qh-lb{font-weight:800;color:#5b6b85;font-size:12.5px}.qh-gby{display:inline-flex;align-items:center;gap:6px;margin-left:6px;padding-left:10px;border-left:1px solid #d6e0ee}
.qh-sec{background:#e9eff8;border:1px solid #c3d1e3;border-radius:16px;padding:14px;margin:14px 0}
.qh-sh{display:flex;align-items:center;gap:10px;flex-wrap:wrap;cursor:pointer;user-select:none;margin-bottom:10px}.qh-sh:before{content:'▼';color:#2448a8;font-size:14px}.qh-sec.shut .qh-sh:before{content:'▶'}.qh-sec.shut .qh-sh{margin-bottom:0}
.qh-sh b{font-size:26px;color:#0b2545}@media(max-width:600px){.qh-sh b{font-size:22px}}.qh-sh small{margin-left:auto;color:#5b6b85;font-size:12.5px}
.qh-g{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.qh-g1{margin-top:12px}
.qh-c{background:#fff;border:1px solid #d6e0ee;border-radius:12px;padding:10px 12px;min-width:0;cursor:pointer;transition:box-shadow .15s}.qh-c:hover{outline:2px solid #2448a8;outline-offset:-2px}/* (06/11/2026 Nam H3.285 a) viền khi rê chuột nằm trong ô: 2 ô cạnh nhau vẫn bằng cạnh */
.qh-k{font-size:19px;font-weight:900;color:#2448a8;letter-spacing:.03em;line-height:1.25}.qh-c h4{margin:2px 0 8px;font-size:16px;color:#0b2545}
.qh-svg{width:100%;height:auto;display:block}.qh-nd{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;color:#5b6b85;font-size:13px;text-align:center;border:1.5px dashed #d6e0ee;border-radius:10px;padding:10px}
.qh-leg{display:flex;gap:10px;flex-wrap:wrap;font-size:11.5px;color:#5b6b85;margin-top:4px}.qh-leg i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:-1px}
.qh-end{display:flex;align-items:center;justify-content:center;height:28px;margin:10px -6px -6px;cursor:pointer;border-radius:0 0 12px 12px}.qh-end span{width:42px;height:4px;border-radius:4px;background:#c3d1e3}.qh-end:hover{background:#e3ebf7}.qh-end:hover span{background:#2448a8}
.qh-alarm{background:#b91c1c;color:#fff;border-radius:12px;padding:10px 14px;font-weight:900;margin:8px 0;animation:qhBl 1.2s infinite}.qh-alarm small{font-weight:600;opacity:.9}@keyframes qhBl{50%{background:#ef4444}}
.qh-alm{background:#fee2e2;color:#b91c1c;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:800}.qh-cpl{border-color:#fca5a5}
.qh-sev{display:inline-block;border-radius:999px;padding:1px 8px;font-size:11px;font-weight:800;white-space:nowrap}.qh-sev.s3{background:#fee2e2;color:#b91c1c}.qh-sev.s2{background:#ffedd5;color:#c2410c}.qh-sev.s1{background:#eef2f8;color:#5b6b85}
.qh-bign{font-size:46px;font-weight:900;line-height:1;padding:10px 4px}.qh-sub{font-weight:800;margin:12px 0 6px;color:#0b2545}
.qh-rule{font-size:13px;color:#5b6b85;margin:0 0 8px}
.qh-pt tr.qh-bad td,.qa-t tr.qh-bad td{background:#fff5f5}.qh-pt tr.qh-tot td{background:#eef3fa;font-weight:900}
.qh-ym td.g{background:#dcfce7}.qh-ym td.r{background:#ffedd5}.qh-ym .cur{outline:2px solid #2448a8;outline-offset:-2px}
@media (max-width:760px){.qh-g{grid-template-columns:1fr}.qh-sh small{margin-left:0}}

/* (13/10/2026 Nam: "kiem tra cat chu") Top 5 loi + chu thich Pareto: ten day du, tu xuong dong */
.qh-t5{display:grid;gap:7px}.qh-t5r{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(60px,1fr) auto;gap:8px;align-items:center;font-size:12.5px;color:#0b2545}
.qh-t5n{line-height:1.25;min-width:0;overflow-wrap:anywhere}.qh-t5b{height:14px;background:#eef2f8;border-radius:4px;overflow:hidden}.qh-t5b i{display:block;height:100%;background:#0b2545;border-radius:4px}.qh-t5r b{font-variant-numeric:tabular-nums;min-width:36px;text-align:right}
.qh-pl{margin:4px 0 0;padding-left:20px;columns:2;column-gap:14px;font-size:11.5px;color:#46506a;line-height:1.3}.qh-pl li{break-inside:avoid;margin-bottom:2px}
@media(max-width:520px){.qh-pl{columns:1}}

/* (13/10/2026 Nam L1) ty trong cac dang loi */
.qh-shw{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:center}.qh-shp{width:100%;max-width:640px;height:auto;display:block;margin:auto;overflow:visible}
.qh-shtw{overflow-x:auto;min-width:0}table.qh-sht{width:100%;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums;color:#0b2545}
.qh-sht th{font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;color:#5b6b85;text-align:right;padding:4px 6px;border-bottom:1px solid #e3e8f2;vertical-align:bottom}.qh-sht th:first-child,.qh-sht td:first-child{text-align:left}
.qh-sht td{padding:5px 6px;border-bottom:1px dashed #eef2f7;text-align:right}.qh-sht td:first-child{font-weight:700;overflow-wrap:anywhere}.qh-sht td i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:7px;vertical-align:-1px}
.qh-sht td small{display:block;font-size:11px;color:#5b6b85;font-weight:600;padding-left:18px}.qh-sht tr.tot td{border-top:2px solid #0b2545;font-weight:900}.qh-sht td.up{color:#c2410c;font-weight:800}.qh-sht td.dn{color:#15803d;font-weight:800}
.p2bd .qh-shw{grid-template-columns:1fr}@media(max-width:860px){.qh-shw{grid-template-columns:1fr}}@media(pointer:coarse){.qh-shw{grid-template-columns:1fr}.qh-shp{max-width:520px}}
.qh-sf{display:grid;gap:8px}.qh-sfr{display:grid;grid-template-columns:130px minmax(0,1fr) 70px;gap:10px;align-items:center;font-size:13px;color:#0b2545}.qh-sfr b{font-weight:800}.qh-sfr span{text-align:right;font-variant-numeric:tabular-nums}
.qh-sfb{display:flex;height:22px;border-radius:5px;overflow:hidden;background:#eef2f7}.qh-sfb i{display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;font-style:normal;height:100%}
.qh-sfl{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;margin-top:10px;color:#0b2545}.qh-sfl i{display:inline-block;width:11px;height:11px;border-radius:3px;margin-right:6px;vertical-align:-1px}
@media(max-width:600px){.qh-sfr{grid-template-columns:1fr auto;gap:3px 8px}.qh-sfr .qh-sfb{grid-column:1/-1;grid-row:2}}
@media(max-width:600px){table.qh-sht{font-size:11.5px}.qh-sht th{font-size:9px;letter-spacing:0;text-transform:none;padding:3px 2px}.qh-sht td{padding:4px 2px}.qh-sht td i{margin-right:4px;width:9px;height:9px}.qh-sht td small{padding-left:13px;font-size:10px}.qh-sht td:first-child{min-width:96px}}
@media(max-width:600px){.qh-sht tr>:nth-child(4){display:none}}

.qa-dcs{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:6px 0 10px;font-size:13px;font-weight:800;color:#0b2545;background:#fff;border:1px solid #d6e0ee;border-radius:10px;padding:6px 10px}

.qa-plist{margin:8px 0 0;padding-left:26px;columns:2 320px;column-gap:24px;font-size:12.5px;color:#0b2545}.qa-plist li{break-inside:avoid;margin:2px 0;line-height:1.35}
@media(max-width:600px){table.qh-sht{table-layout:fixed}.qh-sht th:first-child,.qh-sht td:first-child{width:46%}}
.qh-sht td:first-child,.qh-sht th:first-child{white-space:normal!important;overflow-wrap:anywhere}

/* (13/10/2026) bang popup lon dashboard: cot ten xuong dong, khong cat chu */
.qa-tpop td.wr{white-space:normal;text-align:left;min-width:120px;max-width:280px}
@media(max-width:600px){.qa-tpop td.wr{min-width:100px}}
.qa-popk{grid-column:1/-1;min-width:0;display:flex;flex-direction:column;gap:10px}.qa-popk svg{width:100%;height:auto;display:block}
.qa-seg{display:inline-flex;border:2px solid #1d4ed8;border-radius:999px;overflow:hidden;background:#eef3fb}
.qa-seg button{border:0;background:transparent;color:#64748b;padding:4px 14px;display:flex;flex-direction:column;align-items:center;line-height:1.1;cursor:pointer;font:inherit}
.qa-seg button b{font-size:16px;font-weight:900}.qa-seg button small{font-size:10.5px;font-weight:700}
.qa-seg button.on{background:#1d4ed8;color:#fff;box-shadow:0 0 10px rgba(56,169,232,.8)}
.qa-dcsnow{font-weight:700;color:#3f4d66}

/* (16/10/2026) 🧭 Dashboard mới (thử) — kieu demo scaviapps.com/web/ */
.d2{background:linear-gradient(160deg,rgba(13,25,72,.96),rgba(8,16,48,.98));border:1px solid rgba(143,211,255,.22);border-radius:18px;padding:14px;color:#fff;margin-top:10px}
.d2h{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px}.d2h b{font-weight:900}.d2wk{display:flex;align-items:center;gap:6px;margin-left:auto;font-weight:700;font-size:13px}.d2sc{display:flex;gap:4px;flex-wrap:wrap}
.d2b{border:1px solid rgba(255,255,255,.25);background:transparent;color:#dfe8ff;border-radius:999px;padding:4px 10px;font:700 12px inherit;cursor:pointer}.d2b.on{background:#38a9e8;border-color:#38a9e8;color:#071233}.d2b:disabled{opacity:.35;cursor:default}
.live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:d2pulse 1.6s infinite}@keyframes d2pulse{0%{box-shadow:0 0 0 0 rgba(34,197,94,.55)}70%{box-shadow:0 0 0 9px rgba(34,197,94,0)}100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}}
.d2tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:12px} /* (28/10) + ô DPM */.d2t{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:10px 12px;cursor:pointer;min-width:0}.d2t.on{background:rgba(56,169,232,.18);border-color:#38a9e8}
.d2t small{display:block;font-size:11px;color:#b9c8f5;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.d2t b{display:inline-block;font-size:26px;font-weight:900;margin-top:2px}.d2t .d2d{font-size:11px;font-weight:800;color:#8fd3ff;margin-left:6px}.d2t i{display:block;font-style:normal;font-size:11.5px;color:#9fb3e6;font-weight:600}.d2s{width:100%;height:38px;display:block;margin-top:4px}
.d2main{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;margin-top:12px}.d2c{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:10px 10px 6px;min-width:0}.d2ct{font-size:12.5px;font-weight:800;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.d2ct span{color:#9fb3e6;font-weight:600}
#d2bar{width:100%;height:300px;display:block;margin-top:6px}.d2lg{display:flex;gap:12px;font-size:11.5px;color:#9fb3e6;flex-wrap:wrap;margin-top:4px}
.d2g{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:10px 6px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:4px}#d2gauge{width:120px;height:120px;display:block;margin:auto}.d2g small{font-size:11px;color:#b9c8f5;font-weight:700;line-height:1.3}
.d2grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:6px;margin-top:12px}.d2gi{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:7px 6px;text-align:center;cursor:pointer;min-width:0}.d2gi small{display:block;font-size:10px;color:#b9c8f5;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.d2gi b{display:block;font-size:13.5px;font-weight:900;margin-top:2px}.d2gi i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:4px;vertical-align:middle}
.d2top div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:6px 0;border-bottom:1px dashed rgba(255,255,255,.12);font-size:13px}.d2top span{font-weight:700}.d2top em{grid-column:1/3;display:block;height:7px;border-radius:7px;background:linear-gradient(90deg,#38a9e8,#8fd3ff);margin-top:-2px}.d2top b{font-weight:800;color:#dfe8ff}
@media (max-width:900px){.d2grid{grid-template-columns:repeat(3,minmax(0,1fr))}.d2tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:480px){.d2main{grid-template-columns:minmax(0,1fr)}.d2t b{font-size:21px}#d2bar{height:260px}}

/* (16/10/2026 Nam "nut code loi, nut 3 cap da noi dua vao menu") chi con trong ☰ Menu, bo khoi trang */
#app .qh-lvl,#app .qa-dcs{display:none!important}

/* (20/10/2026 PF1) bang tung ngay 4 giai doan: vach ngan nhom */
.qa-t.pf1 td.pf1-s,.qa-t.pf1 th.pf1-s{border-left:2px solid #c9d6ea}
.pf1-cal{cursor:pointer;display:inline-block;padding:0 4px;border-radius:6px;background:#eaf0ff}
.pf1-cal:hover{background:#d6e2ff}
.qh-miss{margin-top:6px;padding:6px 8px;border-top:1px dashed #d6e0ee;font-size:11.5px;line-height:1.45;color:#5b6b85}.qh-miss div{margin:2px 0}

/* (28/10/2026 Nam "căn chỉnh cạnh dưới bằng nhau giữa 2 biểu đồ cột trong DPM") ô cùng hàng: biểu đồ dồn xuống đáy ô → cạnh dưới thẳng hàng */
.qh-cb{display:flex;flex-direction:column}.qh-cb>svg{margin-top:auto;flex:none}
/* (03/11/2026 Nam) chú thích biểu đồ chuẩn như KPI nhà máy: canh trái, tối đa 2 dòng; ô cạnh nhau bằng cạnh dưới */
.fc3-lg{display:block}.fc3-lg>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:2px 10px;line-height:1.5}.fc3-lg>div>span{white-space:nowrap}.kx-leg.fc3-lg{font-size:11.5px;color:#55647d;font-weight:600;margin-top:6px}.kx-leg.fc3-lg i{display:inline-block;width:14px;height:8px;border-radius:2px;vertical-align:middle;margin:0 3px 0 0}@media(max-width:480px){.fc3-lg>div{gap:2px 6px}}
.qh-c{display:flex;flex-direction:column}.qh-c>svg{flex:none}.qh-c>.fc3-lg{margin-top:auto;padding-top:6px}
/* (03/11/2026 Nam H3.53 a) chia hàng: 2 ô cạnh nhau bằng trục cột cuối, các hàng cách nhau */
.qh-cb>.fc3-lg{margin-top:0}.qa-ccl+.qa-cc{margin-top:10px}
/* (03/11/2026) .ax của khung KPI (chữ dọc, xoay 180 độ) đè lên chữ biểu đồ: số trục và tên nhà máy dưới cột bị đẩy ra ngoài khung, không thấy */
.qa-cw text.ax{writing-mode:horizontal-tb;transform:none;text-align:initial}
/* (03/11/2026 Nam H3.57 a) số trên biểu đồ không đỏ */
.qa-cw text.red{fill:#c2410c}
/* (03/11/2026 Nam gửi hình FCM) tiêu đề ô, thẻ nhà máy */
.qh-bt{background:#e6edfb;border-left:5px solid #2f6fed;border-radius:10px;padding:7px 12px;font-size:16px;font-weight:900;color:#0b2545;line-height:1.3;margin-bottom:6px;overflow-wrap:anywhere}
.qh-tt{background:#e6edfb;margin:-10px -12px 8px;padding:8px 12px;border-radius:12px 12px 0 0;border-bottom:1px solid #d6e0ee}.qh-tt b{display:block;font-size:17px;font-weight:900;color:#0b2545}.qh-tt span{font-size:12.5px;color:#647087;font-weight:600}
@media (min-width:900px){.qh-g12m{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}.qh-g12m:has(>.qh-c2){grid-template-rows:auto 1fr;row-gap:0}.qh-g12m>.qh-c2{display:grid;grid-row:span 2;grid-template-rows:subgrid}}.qh-c2b{display:flex;flex-direction:column;flex:1;min-width:0}.qh-c2b>svg{flex:none}.qh-c2b>.fc3-lg{margin-top:auto;padding-top:6px}/* (04/11/2026 Nam H3.147 a) */.qh-g12{grid-template-columns:1fr 2fr}@media (max-width:760px){.qh-g12{grid-template-columns:1fr}}
.qh-rows{display:block;margin:2px 0 6px}.qh-the .kx-chip.kx-bad{color:#c2410c!important;border-color:#f3c9b3}.qh-the .kx-r>span{font-size:13px}.qh-the .kx-r>b{font-size:14px}
.qh-sk{margin-top:4px;font-size:12.5px;color:#5b6b85}.qh-sk-ph{visibility:hidden;pointer-events:none;font-weight:800;line-height:normal}.qh-the>.fc3-lg{margin-top:auto}.qh-sk summary{cursor:pointer;font-weight:800}.qh-sk .qa-t{font-size:12.5px}
.qh-sk .qa-t th{white-space:normal}.qh-sk .qa-t td,.qh-sk .qa-t th{padding-left:4px;padding-right:4px}.qh-the .kx-r{flex-wrap:wrap}.qh-the .kx-r>span{white-space:normal}

/* (10/11/2026 Nam) nút 🔄 Cập nhật dữ liệu theo mẫu KPI nhà máy: dòng báo ngay cạnh nút */
.kf-upd{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 2px 8px;font-size:12px}
.kf-upd #pullMsg{color:#46506a;font-size:12.5px;line-height:1.45}
.kf-upd #pullMsg:empty{display:none}

/* (10/11/2026 Nam) Tab S10 (máy cảm ứng ≥ 600 px): vòng tỷ trọng 242 px, chữ 14 px, bảng thông tin nằm BÊN PHẢI vòng · Mac, iPhone giữ như cũ */
/* (10/11/2026 22:50 Nam) Tab S10: vòng 242 px nằm giữa mép trái ô và mép trái bảng, bảng rộng hết phần còn lại, cột giãn đều */
@media (pointer:coarse) and (min-width:600px){.qh-shw{display:grid!important;grid-template-columns:minmax(302px,1fr) minmax(0,1.35fr);gap:0!important;align-items:center;padding:0!important}.qh-shw>svg.qh-shp{justify-self:center;width:262px!important;max-width:262px!important;margin:0!important}.qh-shw.scv-dpm2v>svg.qh-shp{width:259px!important;max-width:259px!important}.qh-shw>div,.qh-shw>table{width:100%!important;max-width:none!important;min-width:0;margin-top:0!important;font-size:14px}.qh-shw table{width:100%}}
@media (pointer:coarse) and (min-width:760px){.qh-shw.scv-dpm2v>div{grid-template-columns:10px max-content repeat(5,minmax(max-content,1fr))!important;column-gap:10px!important}} /* hẹp hơn 760px giữ khung cũ (tên xuống dòng) để không tràn ngang */
/* (10/11/2026 23:45 Nam) bảng DPM 2 vòng trên Tab: cột Nhà máy vừa chữ, 5 cột số dời sát cột Nhà máy và chia đều phần còn lại (số vẫn canh phải) */ /* (10/11/2026 Nam) bảng gọn: cột nhà máy sát cột số, vòng + bảng canh giữa */
