/* hkd-mgrid.css — bảng danh sách phiếu/HĐ kiểu lưới MISA (TẠO PHIẾU BÁN: #hkd-mx · LẬP HĐ APN/TTD/MTA/Thùy: .lpt/#xtb/#ldr/#tb).
   Chỉ desktop (≥641px); thẻ mobile (.hkd-m-cards) giữ nguyên. Không đổi nút/pill, chỉ khung lưới. */
@media (min-width:641px){
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt){background:#fff!important;border:1px solid #dfe3e8!important;border-collapse:collapse!important;border-spacing:0!important;width:100%;font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important;font-size:13px!important;color:#1f2937}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>thead>tr>th{background:#f1f3f6!important;color:#1f2937!important;font-weight:700!important;font-size:12.5px!important;letter-spacing:0!important;text-align:left;padding:6px 8px!important;height:30px;box-sizing:border-box!important;line-height:1.25!important;border:0!important;border-right:1px solid #dde1e7!important;border-bottom:1px solid #d3d8df!important;white-space:nowrap;vertical-align:middle;box-shadow:none!important}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>thead>tr>th:is(.n,.r){text-align:right}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td{background:#fff!important;color:#1f2937;padding:3px 8px!important;height:26px;box-sizing:border-box!important;line-height:1.3!important;font-size:13px!important;border:0!important;border-right:1px solid #e1e5ea!important;border-bottom:1px solid #e6e9ee!important;vertical-align:middle!important}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr:hover>td{background:#f3f7fc!important}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr:is(.pk,.sel,.on)>td{background:#e7f0fc!important}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr.hl>td{background:#fde68a!important}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt) :is(th,td)>input[type=checkbox]{width:14px;height:14px;margin:0;vertical-align:middle;accent-color:#2563eb;cursor:pointer}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt) :is(th,td):has(>input[type=checkbox]:only-child){text-align:center;width:30px}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td button{padding-top:1px!important;padding-bottom:1px!important;min-height:0!important;line-height:1.25!important;vertical-align:middle}
}
@media (min-width:641px){
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>thead>tr>th:last-child,:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td:last-child{border-right:0!important}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) table:not(.hkd-m-cards):not(.it):not(.lnt)>tfoot>tr>td{background:#f7f8fa!important;border-top:1px solid #d3d8df!important;border-right:1px solid #e1e5ea!important;padding:4px 8px!important;font-size:12.5px!important}
:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot,#hkd-mx,.lpt,#xtb,#ldr,#tb) .table-wrap,:is(#hkd-create-vouchers,#hkd-amthuc-vouchers-slot) .table-wrap{background:#fff!important;border-radius:4px!important;box-shadow:none!important}
}
/* t453: mọi bảng HĐ/phiếu (APN/TTD/MTA/Thùy): mỗi dòng tối đa 2 hàng — tên xuống dòng (không "…"), nút THAO TÁC gọn, xuống hàng thay vì bị cắt */
@media (min-width:641px){
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td{padding:3px 5px!important;line-height:1.25!important}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>thead>tr>th{padding:6px 5px!important}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td:is(.w,.pl){white-space:normal!important;text-overflow:clip!important;overflow:hidden}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td:is(.w,.pl)>.nm{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;line-height:1.25!important;overflow-wrap:anywhere;font-size:12px}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td.w>.nm .sub{display:inline;font-size:11px;color:#64748b;white-space:normal}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td .pill{font-size:10px;padding:1px 6px;line-height:1.35;white-space:nowrap}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td :is(.tm,.tk-time){white-space:nowrap!important;font-size:10px!important;line-height:1.2!important;margin-top:2px!important}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td.a{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;text-align:right;line-height:22px!important;padding-top:1px!important;padding-bottom:1px!important}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td.a button{height:20px!important;min-height:0!important;padding:0 5px!important;font-size:10.5px!important;line-height:18px!important;margin:1px 0 1px 3px!important;border-radius:5px!important;white-space:nowrap;vertical-align:middle;box-sizing:border-box;letter-spacing:0!important}
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td.a :is(.hit-eye,.hit-cp){min-width:0;border-width:1px;gap:2px}
html #ldr table.cmp:not(.hkd-m-cards)>tbody>tr>td.a{min-width:220px}
}
@media (min-width:641px){
html :is(.lpt,#xtb,#ldr,#tb) table.cmp:not(.hkd-m-cards):not(.it):not(.lnt)>tbody>tr>td{font-size:12.5px!important}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(1){width:28px}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(2){width:96px}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(3){width:128px}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(4){width:92px}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(6){width:96px}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(7){width:92px}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(8){width:150px}
html #ldr table.cmp:not(.hkd-m-cards)>thead>tr>th:nth-child(9){width:226px}
}
@media (min-width:641px){html #ldr table.cmp>tbody>tr>td[colspan]{white-space:normal!important}}
@media (min-width:641px){html #ldr table.cmp:not(.hkd-m-cards)>tbody>tr>td:nth-child(2):not([colspan]){max-width:96px;white-space:normal!important;word-break:break-all;font-size:11px!important;line-height:1.2!important}}

