/* TD-125 (bản sau 8.6.0): màn chính Ban lãnh đạo công ty (#/bld) – dựa trên bộ giao diện màn điều hành sản xuất (css/sx-dh.css, lớp .dh).
   Điện thoại: một cột, vùng chạm ≥ 44 px, thanh điều hướng dưới. Máy tính: thẻ nhà máy rộng, các thẻ phụ xếp 3 cột. */
.dh.bld { max-width: 1180px; margin-left: auto; margin-right: auto; }   /* TD-202: căn giữa */
.bld-hm { margin: 8px 0 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bld-cum { display: flex; flex-direction: column; gap: 10px; }
.bld-mo { color: var(--muted); font-size: 20px; line-height: 1; margin-left: 4px; }

/* Cần lãnh đạo chú ý: viền đỏ, mục chạm được */
.bld-cy { border-color: #f2c7c2; border-left: 4px solid var(--dh-bad); }
.bld-cy.ok { border-color: #bfe2cd; border-left-color: var(--dh-ok); }
.bld-cy .dh-li { min-height: 44px; align-items: center; }
.bld-cy .dh-li-t { min-height: 44px; display: flex; flex-direction: column; justify-content: center; }
.bld-ok { display: flex; align-items: center; gap: 8px; margin: 2px 0; color: var(--dh-ok); font-weight: 600; font-size: 14px; }

/* Thẻ nhà máy */
a.bld-nm { display: block; color: var(--fg); text-decoration: none; }
a.bld-nm:active { background: var(--soft); }
.bld-nm-t { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: -4px 0 6px; }
.bld-nm-t b { font-size: 17px; }
.bld-nm-t > span:not(.dh-dem):not(.bld-mo) { flex: 1; font-size: 12.5px; color: var(--muted); }
.bld-nm.tat .bld-nm-t { margin: 0; }
.bld-nm.tat .bld-nm-t > span { flex: 1; text-align: right; }
.bld-k4 .dh-kpi { min-height: 96px; }
.bld-k4 .dh-kpi .dh-bar { margin-top: 6px; }
.bld-khu { display: flex; flex-direction: column; margin-top: 8px; }
.bld-khu-r { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line2, #EFEDE9); font-size: 13px; }
.bld-khu-r > b { min-width: 40px; font-size: 14px; } .bld-khu-r > span { color: var(--muted); margin-right: 4px; }

/* Thông báo đẩy */
.bld-push { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bld-push small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.bld-push .dh-btn { min-height: 44px; min-width: 104px; }

/* Trang chủ: thẻ nhỏ (ngoài lớp .dh) */
.bld-home { display: block; margin: 0 0 12px; padding: 12px 14px; color: var(--fg); text-decoration: none; border-left: 4px solid var(--brand); min-height: 44px; }
.bld-home-t { display: flex; align-items: center; gap: 8px; } .bld-home-t b { flex: 1; font-size: 15px; }
.bld-home-n { font-weight: 700; margin-top: 6px; font-size: 14px; } .bld-home-n.do { color: var(--bad, #A1261A); } .bld-home-n.ok { color: var(--ok, #1B6B45); }
.bld-home-l { font-size: 12.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 700px) {
  .bld-k4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1000px) {
  .bld-cum { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
  .bld-cum > .bld-nm { grid-column: 1 / -1; }
  .dh.bld .dh-nav { max-width: 520px; margin-left: auto; margin-right: auto; border-radius: 14px 14px 0 0; }
}
