/* V5.7 - cho phép hai cột có chữ dài xuống dòng; giữ toàn bộ 11 cột trong trang. */
#detailGridView .detail-fit-table td:nth-child(3),
#detailGridView .detail-fit-table td:nth-child(5){
 white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important;
 word-break:normal!important;line-height:1.4!important;vertical-align:top!important;
}
#detailGridView .detail-fit-table td:nth-child(3) .detailTypeChip{
 white-space:normal!important;overflow:visible!important;text-overflow:clip!important;
 overflow-wrap:anywhere!important;max-width:100%!important;line-height:1.25!important;
 padding:4px 5px!important;text-align:center;
}
#detailGridView .detail-fit-table td:nth-child(5){font-size:clamp(11.1px,.86vw,13px)!important}
#detailGridView .detail-fit-table tr{height:auto!important}
/* Duy trì thu gọn số và ngày; không tăng min-width, không phát sinh kéo ngang. */
#detailGridView .detail-fit-table td:nth-child(10),
#detailGridView .detail-fit-table td:nth-child(11){white-space:nowrap!important}
/* Hồ sơ User: hiển thị tại cả hai tab, gồm nợ cũ và cảnh báo vật tư chưa có giá. */
.user-snapshot-grid{grid-template-columns:repeat(3,minmax(0,1fr)) minmax(90px,.68fr)!important;gap:10px!important}
.user-snapshot-grid article{min-width:0;padding:12px 13px!important}
.user-snapshot-grid article:nth-child(3){border-top:4px solid #307fd1}
.user-snapshot-grid article:nth-child(4){border-top:4px solid #6b75c9}
.user-snapshot-grid article:nth-child(3) strong{color:#bb2e40}
.user-snapshot-grid .olddebt-review{color:#a85a13;font-size:13px;font-weight:800}
.user-snapshot .debt-amount,.user-snapshot .red-money{font-size:20px!important;font-weight:850;white-space:nowrap}
.user-snapshot .red-money.zero{color:#00865a!important}
.snapshot-price-issues{margin-top:12px;border:1px solid #e7bd67;border-radius:12px;background:#fff9e9;color:#845207;padding:11px 13px;font-size:12px;line-height:1.5}
.snapshot-price-issues>strong{display:inline;color:#9f5604;margin-right:6px}
.snapshot-price-issues>span{font-weight:650}
#snapPriceItems{margin-top:7px;display:grid;gap:4px}
.snap-price-row{display:grid;grid-template-columns:140px minmax(0,1fr) 180px;gap:9px;border-top:1px solid #e7d4a6;padding-top:6px;align-items:start}
.snap-price-row b{color:#153b6b;font-variant-numeric:tabular-nums}
.snap-price-row span{min-width:0;overflow-wrap:anywhere}
.snap-price-row em{font-style:normal;font-weight:750;color:#98530d;text-align:right}
.snap-price-more{font-weight:650}
.dark .snapshot-price-issues{background:#43361f;border-color:#85622a;color:#ffe7ac}
.dark .snapshot-price-issues>strong,.dark .snap-price-row em{color:#ffd08b}
.dark .snap-price-row{border-color:#6b5430}
.dark .snap-price-row b{color:#cae5ff}
.dark .user-snapshot-grid article:nth-child(3) strong{color:#ff8992}
@media(max-width:1100px){.user-snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.snap-price-row{grid-template-columns:100px minmax(0,1fr)}.snap-price-row em{grid-column:2;text-align:left}}
@media(max-width:740px){.user-snapshot-grid{grid-template-columns:1fr!important}.snap-price-row{grid-template-columns:1fr}.snap-price-row em{grid-column:1}}
.user-snapshot-grid article:nth-child(3) .red-money.positive{color:#bb1736!important}
.user-snapshot-grid article:nth-child(3) .red-money.zero,
.user-snapshot-grid article:nth-child(3) .red-money.credit{color:#087a54!important}
.dark .user-snapshot-grid article:nth-child(3) .red-money.positive{color:#ff8b9a!important}
.dark .user-snapshot-grid article:nth-child(3) .red-money.zero,
.dark .user-snapshot-grid article:nth-child(3) .red-money.credit{color:#71e9b7!important}
