/* TD-184 phần A (9.6.0): màn Máy hỏng (#/sx/may-hong) – theo ảnh thiet-ke/dien-thoai-4-man.png. Điện thoại một cột; máy tính rộng tối đa 760 px */
.mh { --mh-brand: #B4530A; --mh-ink: #8E3F05; --mh-soft: #FDEEDF; --mh-phu: #57534E; --mh-nhat: #8A847C; --mh-vien: #E7E3DC;
  --mh-do: #DC2626; --mh-do-nen: #FDE2E2; --mh-vang: #9A6700; --mh-vang-nen: #FFF1D6; --mh-ok: #15803D; --mh-ok-nen: #DCFCE7; max-width: 760px; }
.mh .mh-tabs, .mh .mh-loc { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.mh .mh-tabs a, .mh .mh-loc a { min-height: 40px; display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 20px; background: #fff; border: 1.5px solid var(--mh-vien);
  color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.mh .mh-tabs a.on, .mh .mh-loc a.on { background: var(--mh-brand); border-color: var(--mh-brand); color: #fff; }
.mh .mh-loc a.mh-loc-do:not(.on) { border-color: var(--mh-do); color: var(--mh-do); }   /* TD-184 QĐ 23: "Tổ khác" có phiếu quá hạn chưa ai đến */
.mh .mh-buoc { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--mh-phu); margin: 12px 2px 6px; text-transform: uppercase; letter-spacing: .03em; }
.mh .mh-buoc i { font-style: normal; font-weight: 600; color: var(--mh-brand); text-transform: none; letter-spacing: 0; }
.mh .mh-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mh .mh-luoi.hai { grid-template-columns: repeat(2, 1fr); }
.mh .mh-chip { min-height: 44px; background: #fff; border: 1.5px solid var(--mh-vien); border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; padding: 6px 4px; line-height: 1.2; color: inherit; cursor: pointer; }
.mh .mh-chip.chon { background: var(--mh-soft); border-color: var(--mh-brand); color: var(--mh-ink); }
.mh .mh-tim { width: 100%; min-height: 42px; border: 1.5px solid var(--mh-vien); border-radius: 10px; padding: 8px 10px; font: inherit; margin: 0 0 6px; }
.mh .mh-ds { background: #fff; border-radius: 12px; border: 1.5px solid var(--mh-vien); overflow: hidden; max-height: 320px; overflow-y: auto; }
.mh .mh-ds .cum { font-size: 12px; font-weight: 700; color: var(--mh-nhat); padding: 8px 12px 2px; text-transform: uppercase; }
.mh .mh-ds .cd { width: 100%; min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 0; border-top: 1px solid #F1EEE8; background: #fff;
  font: inherit; font-size: 15px; padding: 8px 12px; text-align: left; color: inherit; cursor: pointer; }
.mh .mh-ds .cd.chon { background: var(--mh-soft); color: var(--mh-ink); font-weight: 700; }
.mh .mh-ds .cd small { color: var(--mh-nhat); font-weight: 500; }
.mh .mh-duoi { position: sticky; bottom: 0; margin: 14px -4px 0; padding: 10px 4px 12px; background: var(--bg, #f5f3ef); border-top: 1px solid var(--mh-vien); }
.mh .mh-duoi .ghi { font-size: 13px; color: var(--mh-phu); margin-bottom: 8px; text-align: center; }
.mh .mh-trung { background: var(--mh-vang-nen); border: 1.5px solid #F5C26B; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.mh .mh-trung p { margin: 0 0 4px; font-weight: 600; } .mh .mh-trung p.small { font-weight: 400; }
.mh .mh-nut { display: block; width: 100%; min-height: 52px; margin-top: 10px; border: 0; border-radius: 12px; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.mh .mh-nut.chinh { background: var(--mh-brand); color: #fff; }
.mh .mh-nut.do { background: var(--mh-do); color: #fff; }
.mh .mh-nut.ok { background: var(--mh-ok); color: #fff; }
.mh .mh-nut.vien { background: #fff; color: inherit; border: 1.5px solid var(--mh-vien); }
.mh .mh-nut:disabled { opacity: .6; }
.mh .mh-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mh .mh-hai .mh-nut { font-size: 15px; }
.mh .mh-lk { margin-top: 8px; background: none; border: 0; padding: 4px 0; color: var(--mh-phu); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; }
.mh .mh-dsthe { display: flex; flex-direction: column; gap: 10px; }
.mh .mh-the { background: #fff; border-radius: 14px; border: 1.5px solid var(--mh-vien); border-left: 6px solid var(--mh-vien); padding: 11px 12px; cursor: pointer; }
.mh .mh-the.do { border-left-color: var(--mh-do); } .mh .mh-the.vang { border-left-color: #F59E0B; } .mh .mh-the.ok { border-left-color: var(--mh-ok); }
.mh .mh-the .t1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.mh .mh-the .t2 { font-size: 14px; color: var(--mh-phu); margin-top: 2px; }
.mh .mh-the .t3 { font-size: 13px; color: var(--mh-nhat); margin-top: 6px; }
.mh .mh-pl { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.mh .mh-pl.do { background: var(--mh-do-nen); color: #B91C1C; } .mh .mh-pl.vang { background: var(--mh-vang-nen); color: var(--mh-vang); }
.mh .mh-pl.ok { background: var(--mh-ok-nen); color: var(--mh-ok); } .mh .mh-pl.xam { background: #EEE; color: #666; }
.mh .mh-len { font-size: 13px; color: #B91C1C; font-weight: 600; margin-top: 6px; }
.mh .mh-so { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.mh .mh-so div { background: #fff; border-radius: 12px; border: 1.5px solid var(--mh-vien); padding: 8px; }
.mh .mh-so b { display: block; font-size: 24px; } .mh .mh-so b.do { color: #B91C1C; } .mh .mh-so b.ok { color: var(--mh-ok); }
.mh .mh-so span { font-size: 12px; color: var(--mh-phu); font-weight: 600; }
.mh .mh-bang { background: #fff; border-radius: 12px; border: 1.5px solid var(--mh-vien); overflow: hidden; }
.mh .mh-bang .r { display: grid; grid-template-columns: 54px 1fr 56px; gap: 6px; font-size: 14px; padding: 8px 10px; border-top: 1px solid #F1EEE8; align-items: center; }
.mh .mh-bang.bt .r { grid-template-columns: 1fr 48px 64px 64px; }
.mh .mh-bang.pc .r { grid-template-columns: 54px 1fr 1fr; }
.mh .mh-bang .r.h { border-top: 0; font-size: 11.5px; color: var(--mh-nhat); font-weight: 700; text-transform: uppercase; }
.mh .mh-bang .r .so { text-align: right; font-weight: 700; } .mh .mh-bang .r .so.do { color: #B91C1C; } .mh .mh-bang .r .so.ok { color: var(--mh-ok); }
.mh .mh-bang .chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mh .mh-bang select { width: 100%; min-height: 38px; }
.mh .mh-dm .r { display: flex; align-items: center; gap: 6px; padding: 6px 0; border-top: 1px solid #F1EEE8; }
.mh .mh-dm .r > span { flex: 1; } .mh .mh-dm .r.tat > span { color: var(--mh-nhat); text-decoration: line-through; }
.mh .mh-dm .r small.mh-pl { margin-left: 6px; }
.mh .mh-them { display: flex; gap: 6px; margin-top: 8px; } .mh .mh-them input { flex: 1; min-height: 40px; }
.mh .mh-ghi { margin-top: 12px; }
.mh .mh-dong { margin-top: 12px; } .mh .mh-dong summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.mh .card h3 { margin: 0 0 8px; font-size: 16px; }
.mh-dtg { margin: 8px 0 0; padding-left: 18px; } .mh-dtg li { margin: 3px 0; }
@media (max-width: 420px) { .mh .mh-luoi { grid-template-columns: repeat(2, 1fr); } }
/* TD-184 phần D: tỷ lệ máy sẵn sàng – xanh ≥ mục tiêu, vàng ≥ ngưỡng vàng, đỏ thấp hơn, xám khi chưa tính được (ảnh ③, ④) */
.mh .mh-ss { font-weight: 700; } .mh .mh-ss.ok { color: var(--mh-ok); } .mh .mh-ss.vang { color: #B45309; } .mh .mh-ss.do { color: #B91C1C; } .mh .mh-ss.xam { color: var(--mh-nhat); }
.mh .mh-so div.ss b.mh-ss { font-size: 21px; line-height: 29px; white-space: nowrap; }
.mh .mh-bang.ss .r { grid-template-columns: 44px 1fr 40px 66px; }
