
/* V293 — Chuẩn hóa toàn bộ danh sách/bảng dữ liệu trên desktop.
   Mobile/tablet <1100px không thay đổi. */

@media (min-width:1100px){

  .v293-desktop-lists{
    --v293-row-h: 50px;
    --v293-cell-x: 14px;
    --v293-cell-y: 11px;
    --v293-head-h: 42px;
  }

  /* Khối dữ liệu chính */
  .v293-desktop-lists .ledger-cell,
  .v293-desktop-lists [class*="rounded"][class*="border"]{
    min-width:0;
  }

  /* Wrapper bảng */
  .v293-desktop-lists [class*="overflow-x-auto"]{
    width:100%;
    max-width:100%;
    scrollbar-width:thin;
  }

  /* Bảng chung */
  .v293-desktop-lists table{
    width:100%!important;
    max-width:100%!important;
    border-collapse:separate!important;
    border-spacing:0!important;
    table-layout:auto!important;
    font-size:12px!important;
    line-height:1.35!important;
  }

  .v293-desktop-lists thead th{
    height:var(--v293-head-h)!important;
    padding:8px var(--v293-cell-x)!important;
    vertical-align:middle!important;
    background:color-mix(in srgb,var(--muted) 72%,var(--background))!important;
    border-bottom:1px solid var(--border)!important;
    color:var(--muted-foreground)!important;
    font-size:10.5px!important;
    font-weight:750!important;
    letter-spacing:.035em!important;
    text-transform:uppercase;
    white-space:nowrap!important;
  }

  .v293-desktop-lists tbody tr{
    min-height:var(--v293-row-h)!important;
    transition:background-color .14s ease,border-color .14s ease;
  }

  .v293-desktop-lists tbody tr:hover{
    background:color-mix(in srgb,var(--muted) 42%,transparent)!important;
  }

  .v293-desktop-lists tbody td{
    min-width:0!important;
    padding:var(--v293-cell-y) var(--v293-cell-x)!important;
    vertical-align:middle!important;
    border-bottom:1px solid color-mix(in srgb,var(--border) 78%,transparent)!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }

  .v293-desktop-lists tbody tr:last-child td{
    border-bottom:0!important;
  }

  /* Tên / mô tả: dễ đọc hơn */
  .v293-desktop-lists td strong,
  .v293-desktop-lists td .font-medium,
  .v293-desktop-lists td .font-semibold{
    line-height:1.35!important;
  }

  /* Mã, tiền, số lượng, ngày giờ giữ một dòng */
  .v293-desktop-lists .tabular,
  .v293-desktop-lists .font-mono,
  .v293-desktop-lists [class*="font-mono"],
  .v293-desktop-lists td[class*="text-right"],
  .v293-desktop-lists th[class*="text-right"]{
    white-space:nowrap!important;
    font-variant-numeric:tabular-nums;
  }

  /* Nút thao tác */
  .v293-desktop-lists td button,
  .v293-desktop-lists td a[class*="inline"],
  .v293-desktop-lists td a[class*="flex"]{
    white-space:nowrap!important;
  }

  .v293-desktop-lists td > .flex{
    min-width:0!important;
  }

  .v293-desktop-lists td > .flex.gap-2,
  .v293-desktop-lists td > .flex.gap-3{
    gap:7px!important;
  }

  /* Filter/search toolbar */
  .v293-desktop-lists input,
  .v293-desktop-lists select,
  .v293-desktop-lists [data-slot="select-trigger"]{
    min-width:0;
  }

  .v293-desktop-lists input[type="search"],
  .v293-desktop-lists input[placeholder*="Tìm"],
  .v293-desktop-lists input[placeholder*="tìm"]{
    min-height:36px;
  }

  /* Card list desktop */
  .v293-desktop-lists .v275-supplier-debt-row,
  .v293-desktop-lists .v285-supplier-card{
    box-shadow:0 1px 2px rgba(15,23,42,.035);
  }

  /* Orders — ưu tiên tên khách / mã / tiền / trạng thái */
  .v293-desktop-lists .v270-orders-fluid table{
    table-layout:auto!important;
  }

  .v293-desktop-lists .v270-orders-fluid td,
  .v293-desktop-lists .v270-orders-fluid th{
    vertical-align:middle!important;
  }

  /* Products */
  .v293-desktop-lists .v271-products-table{
    table-layout:fixed!important;
  }

  .v293-desktop-lists .v271-products-table td:nth-child(2),
  .v293-desktop-lists .v271-products-table td:nth-child(3){
    line-height:1.4!important;
  }

  /* Công nợ NCC */
  .v293-desktop-lists .v275-supplier-debt-row{
    padding:14px 16px!important;
    border-radius:7px!important;
  }

  .v293-desktop-lists .v275-supplier-debt-actions{
    gap:10px!important;
  }

  /* Pagination thống nhất */
  .v293-desktop-lists .v285-pagination,
  .v293-desktop-lists .v289-ncc-pagination{
    min-height:48px;
    padding-top:12px!important;
    margin-top:12px!important;
  }

  /* Không để các khối danh sách bị bó giữa màn hình lớn */
  .v293-desktop-lists .max-w-5xl,
  .v293-desktop-lists .max-w-6xl,
  .v293-desktop-lists .max-w-7xl{
    max-width:none!important;
    width:100%!important;
  }
}

/* Laptop 1100–1366 */
@media (min-width:1100px) and (max-width:1366px){
  .v293-desktop-lists{
    --v293-cell-x: 10px;
    --v293-cell-y: 9px;
    --v293-row-h: 46px;
  }

  .v293-desktop-lists table{
    font-size:11.5px!important;
  }

  .v293-desktop-lists thead th{
    font-size:10px!important;
  }
}

/* 1440 / 1600 */
@media (min-width:1367px) and (max-width:1919px){
  .v293-desktop-lists{
    --v293-cell-x: 14px;
    --v293-cell-y: 11px;
  }
}

/* Full HD / 2K */
@media (min-width:1920px){
  .v293-desktop-lists{
    --v293-cell-x: 18px;
    --v293-cell-y: 12px;
    --v293-row-h: 54px;
    --v293-head-h: 44px;
  }

  .v293-desktop-lists table{
    font-size:12.5px!important;
  }

  .v293-desktop-lists thead th{
    font-size:10.75px!important;
  }
}

/* Ultrawide */
@media (min-width:2400px){
  .v293-desktop-lists{
    --v293-cell-x: 22px;
    --v293-cell-y: 13px;
    --v293-row-h: 56px;
  }

  .v293-desktop-lists table{
    font-size:13px!important;
  }
}
