/* Keep proposal/estimate item grids contained when inox technical fields add many columns. */
._transaction_form .s_table.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
}

._transaction_form .s_table.table-responsive > .table.items {
  min-width: 1480px;
  table-layout: fixed;
  margin-bottom: 0;
}

._transaction_form .table.items thead > tr > th,
._transaction_form .table.items tbody > tr > td {
  white-space: normal;
  vertical-align: top;
}

._transaction_form .table.items thead > tr > th:nth-child(2),
._transaction_form .table.items tbody > tr > td.description {
  width: 230px;
  min-width: 230px;
}

._transaction_form .table.items thead > tr > th:nth-child(3),
._transaction_form .table.items tbody > tr > td:nth-child(3) {
  width: 280px;
  min-width: 280px;
}

._transaction_form .table.items thead > tr > th.custom_field:not(.custom_field_stack),
._transaction_form .table.items tbody > tr > td.custom_field:not(.custom_field_stack) {
  width: 145px;
  min-width: 145px;
  max-width: 145px;
}

._transaction_form .table.items thead > tr > th.custom_field:not(.custom_field_stack) {
  font-size: 12px;
  line-height: 1.25;
  word-break: normal;
}

._transaction_form .table.items tbody > tr > td.custom_field .form-group {
  margin-bottom: 0;
}

._transaction_form .table.items tbody > tr > td.custom_field .form-control,
._transaction_form .table.items tbody > tr > td.custom_field .bootstrap-select {
  max-width: 100%;
}

._transaction_form .table.items thead > tr > th.custom_field_stack,
._transaction_form .table.items tbody > tr > td.custom_field_stack {
  width: 520px;
  min-width: 520px;
}

._transaction_form .table.items tbody > tr > td.custom_field_stack {
  padding: 10px;
}

._transaction_form .item-technical-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
}

._transaction_form .item-technical-field .form-group {
  margin: 0;
}

._transaction_form .item-technical-field .control-label {
  display: block;
  min-height: 31px;
  margin-bottom: 5px;
  font-size: 12px;
  line-height: 1.25;
}

._transaction_form .item-technical-field .form-control,
._transaction_form .item-technical-field .bootstrap-select {
  width: 100%;
}

@media only screen and (max-width: 760px),
  (min-device-width: 768px) and (max-device-width: 1024px) {
  ._transaction_form .s_table.table-responsive {
    border: 0;
    border-radius: 0;
  }

  ._transaction_form .s_table.table-responsive > .table.items {
    min-width: 1140px;
  }

  ._transaction_form .table.items thead > tr > th.custom_field_stack,
  ._transaction_form .table.items tbody > tr > td.custom_field_stack {
    width: 440px;
    min-width: 440px;
  }

  ._transaction_form .item-technical-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
