/* Zakupki v1.9.34 — landscape phone spacing for the positions table.
   Reserve a real right-side column for PTO "Отгружено" instead of letting the
   last header touch/clip at the viewport edge. Portrait mobile cards are not changed. */

@media (orientation:landscape) and (max-height:600px) and (max-width:1280px){
  #items .v194-table{
    width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }

  /* 100% total: 26 + 5 + 8 + 9 + 7 + 19 + 10 + 16. */
  #items .v194-table col:nth-child(1){width:26%!important}
  #items .v194-table col:nth-child(2){width:5%!important}
  #items .v194-table col:nth-child(3){width:8%!important}
  #items .v194-table col:nth-child(4){width:9%!important}
  #items .v194-table col:nth-child(5){width:7%!important}
  #items .v194-table col:nth-child(6){width:19%!important}
  #items .v194-table col:nth-child(7){width:10%!important}
  #items .v194-table col:nth-child(8){width:16%!important}

  #items .v194-table th,
  #items .v194-table td{
    padding-left:3px!important;
    padding-right:3px!important;
  }

  #items .v194-table th:nth-child(1),
  #items .v194-table td:nth-child(1){padding-left:8px!important}

  #items .v194-table th:nth-child(8),
  #items .v194-table td:nth-child(8){
    padding-left:8px!important;
    padding-right:10px!important;
    text-align:center!important;
    overflow:visible!important;
  }

  #items .v194-table th:nth-child(8){
    white-space:nowrap!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    font-size:10px!important;
  }

  /* Keep the editable PTO quantity visually compact, with spare room around it. */
  #items .v1923-pto-qty-cell{display:flex!important;justify-content:center!important;align-items:center!important;min-width:0!important}
  #items .v1923-pto-qty-input{
    width:68px!important;
    min-width:54px!important;
    max-width:68px!important;
    height:32px!important;
    padding:4px 5px!important;
    margin:0 auto!important;
  }
}
