/* v639: chuan hoa bo cuc desktop (1280px tro len) */
@media (min-width:1280px){
  /* le noi dung deu hai ben */
  html body main.v228-page-main{padding-left:24px!important;padding-right:24px!important}
  /* chu trong nut-the (Cai dat, lua chon dang the) duoc xuong dong, khong tran khung */
  html body main button p,html body main button.text-left{white-space:normal!important}
  html body main button.text-left{min-width:0}
  /* grid/flex con khong day tran cha */
  html body main .grid>*{min-width:0}
}
@media (min-width:1024px){
  /* ===== Bang Don hang: vua khung, khong phai cuon ngang ===== */
  html body main .v195-order-table-scroll>div,html body main .v195-order-table-scroll .responsive-report-table{width:100%!important;min-width:0!important}
  html body main .v195-order-table-scroll table{min-width:0!important;width:100%!important}
  html body main .v195-order-table-scroll table th:nth-child(n):nth-child(n),html body main .v195-order-table-scroll table td:nth-child(n):nth-child(n){min-width:0!important;width:auto!important;padding-left:6px!important;padding-right:6px!important}
  html body main .v195-order-table-scroll table th:nth-child(1):nth-child(n),html body main .v195-order-table-scroll table td:nth-child(1):nth-child(n){width:32px!important;text-align:center}
  html body main .v195-order-table-scroll table td:nth-child(2):nth-child(n),html body main .v195-order-table-scroll table td:nth-child(3):nth-child(n){white-space:nowrap!important}
  html body main .v195-order-table-scroll table td:nth-child(4):nth-child(n),html body main .v195-order-table-scroll table td:nth-child(5):nth-child(n),html body main .v195-order-table-scroll table td:nth-child(6):nth-child(n){white-space:normal!important;overflow-wrap:break-word}
  html body main .v195-order-table-scroll table th:nth-child(4):nth-child(n){min-width:120px!important}
  html body main .v195-order-table-scroll table th:nth-child(n+7):nth-child(-n+11),html body main .v195-order-table-scroll table td:nth-child(n+7):nth-child(-n+11){text-align:right!important;white-space:nowrap!important}
  html body main .v195-order-table-scroll table th:nth-child(6):nth-child(n),html body main .v195-order-table-scroll table th:nth-child(12):nth-child(n),html body main .v195-order-table-scroll table td:nth-child(12):nth-child(n){text-align:left!important}
  html body main .v195-order-table-scroll table td:last-child:nth-child(n){white-space:normal!important}
  html body main .v195-order-table-scroll .v192-order-list-actions{min-width:0!important;width:136px;flex-wrap:wrap!important;gap:4px!important}
  html body main .v195-order-table-scroll .v192-order-list-actions .v437s-history-btn{height:28px!important;white-space:nowrap!important;padding:0 8px!important}
  html body main .v195-order-table-scroll .v192-order-list-actions .v192-order-print{height:28px!important}
  /* o dem trang thai don: du cot cho tat ca trang thai, khong con o trong */
  html body main .grid.gap-px.bg-border.md\:grid-cols-5{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))!important}
  /* ===== Ton kho: thanh nut xuong dong thay vi tran ra ngoai ===== */
  html body main .v206-inventory-toolbar{flex-wrap:wrap!important;justify-content:flex-end}
  /* ===== Bao gia: dong them san pham chua co ===== */
  html body main .v392-temp-product{grid-template-columns:minmax(0,1fr) 72px 104px auto!important}
  html body main .v392-temp-product>.v392-temp-head{grid-column:1/-1}
  html body main .v392-temp-product>button{white-space:normal!important;line-height:1.2}
  /* ===== Xuat bao cao: Tu thang / Den thang ===== */
  html body main .v353-export-month-range{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html body main .grid:has(> .v353-export-month-range){grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr)!important}
  html body main .v353-export-month-range button{min-width:0;width:100%}
  html body main .v353-export-month-range button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  /* ===== Ke toan thue: tab xuong dong ===== */
  html body main .v436-tax-tabs{flex-wrap:wrap!important;overflow-x:visible!important;row-gap:6px}
  /* ===== Bang San pham, Phan tich nhu cau: vua khung ===== */
  html body main .v271-products-table-wrap table,html body main .v363-table-wrap table{min-width:0!important}
}
@media (min-width:1024px){
  html body main .v195-order-table-scroll table thead th:nth-child(n):nth-child(n){white-space:normal!important;line-height:1.25}
  html body main table.v271-products-table,html body main .v271-products-page table.v437x-products-table{min-width:0!important}
  html body main table td .v437x-product-actions-inner.v437x-product-actions-inner.flex{flex-wrap:wrap!important;justify-content:flex-end;row-gap:4px}
  html body main .v363-table-wrap thead th{white-space:normal!important;line-height:1.25}
}
