/* ==========================================================================
   ATLAS RUGS ISTANBUL — SALE INVOICE LINE-ITEM GRID ENHANCEMENT
   Scoped strictly to body.atlas-sale-route (#/sale-invoice).
   Specificity (0,5,x) overrides Angular's _ngcontent (0,4,2) rules.
   Front View (fills 100% of visible grid width):
     StockNo | BAL# | PIECE# | Purchase | Base Clr | Border Clr |
     Sqmtr (Length | Width | Area) | Party (Rate | Value) | Delete
   All secondary columns sit cleanly to the right of Delete via scroll.
   ========================================================================== */

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table {
  width: max-content !important;
  min-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table .asg-raw-hidden,
html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table .asg-hide-sqrft {
  display: none !important;
}

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table thead tr th,
html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table thead tr th * {
  font-size: 13.5px !important;
  font-weight: 600 !important;
}

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table thead tr th {
  box-sizing: border-box !important;
  letter-spacing: 0.01em !important;
  padding: 7px 5px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table tbody tr td,
html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table tbody tr td * {
  font-size: 14.5px !important;
  line-height: 1.35 !important;
}

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table tbody tr td {
  box-sizing: border-box !important;
  padding: 6px 5px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  font-variant-numeric: tabular-nums !important;
}

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table tbody tr td input.txtTbl {
  width: 74px !important;
  min-width: 68px !important;
  height: 31px !important;
  padding: 2px 6px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  font-variant-numeric: tabular-nums !important;
}

/* Sticky subtle left StockNo column when scrolling right */
html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table tbody tr td:first-child,
html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table thead tr:first-child th:first-child {
  position: sticky !important;
  left: 0 !important;
  z-index: 3 !important;
}

html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table thead tr:first-child th:first-child {
  z-index: 4 !important;
}

/* Subtle right separator after Delete so scroll-right columns feel distinct */
html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table th.asg-del,
html body.atlas-sale-route.atlas-sale-route.atlas-sale-route table.my-table.my-table td.asg-del {
  border-right: 2px solid rgba(185, 147, 76, 0.35) !important;
  text-align: center !important;
}
