/* Shared professional pullsheet table layout — 2026-07-22 */
.pullsheet-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 6px;
}

.professional-pull-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: var(--surface, #fff);
}

.professional-pull-table th,
.professional-pull-table td {
  box-sizing: border-box;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.professional-pull-table thead th {
  height: 42px;
  padding: 7px 6px;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
}

.professional-pull-table tbody tr:not(.department-row):not(.section-row) {
  min-height: 44px;
}

.professional-pull-table tbody td {
  padding: 6px;
}

.professional-pull-table input,
.professional-pull-table select,
.professional-pull-table textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* New pullsheet inventory selector */
.pull-table.professional-pull-table {
  min-width: 1120px;
}
.pull-table.professional-pull-table col.new-col-select { width: 64px; }
.pull-table.professional-pull-table col.new-col-qty { width: 72px; }
.pull-table.professional-pull-table col.new-col-item { width: 23%; }
.pull-table.professional-pull-table col.new-col-notes { width: 25%; }
.pull-table.professional-pull-table col.new-col-stock { width: 66px; }
.pull-table.professional-pull-table col.new-col-status { width: 104px; }
.pull-table.professional-pull-table col.new-col-return { width: 88px; }
.pull-table.professional-pull-table col.new-col-color { width: 112px; }

.pull-table.professional-pull-table th:nth-child(1),
.pull-table.professional-pull-table th:nth-child(2),
.pull-table.professional-pull-table th:nth-child(5),
.pull-table.professional-pull-table th:nth-child(6),
.pull-table.professional-pull-table th:nth-child(7),
.pull-table.professional-pull-table th:nth-child(8),
.pull-table.professional-pull-table th:nth-child(9),
.pull-table.professional-pull-table td:nth-child(1),
.pull-table.professional-pull-table td:nth-child(2),
.pull-table.professional-pull-table td:nth-child(5),
.pull-table.professional-pull-table td:nth-child(6),
.pull-table.professional-pull-table td:nth-child(7),
.pull-table.professional-pull-table td:nth-child(8),
.pull-table.professional-pull-table td:nth-child(9) {
  text-align: center;
}

.pull-table.professional-pull-table .qty-input {
  width: 58px;
  min-width: 0;
  text-align: center;
}
.pull-table.professional-pull-table .notes-input {
  width: 100%;
  min-height: 38px;
  resize: vertical;
}
.pull-table.professional-pull-table .inv-cell,
.pull-table.professional-pull-table .loaded-cell,
.theatrix-table.professional-pull-table .inv-cell,
.theatrix-table.professional-pull-table .loaded-cell {
  white-space: nowrap;
  text-align: center;
}
.pull-table.professional-pull-table .initials-input,
.theatrix-table.professional-pull-table .initials-input {
  width: 48px;
  min-width: 42px;
  margin-left: 4px;
  text-align: center;
}
.pull-table.professional-pull-table select {
  width: 100%;
  min-width: 0;
}

/* Existing event and master pullsheets */
.existing-pullsheet-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
  border: 1px solid var(--border, #d0d5dd);
  border-radius: 10px;
  background: var(--surface, #fff);
}

/* Event/Pullsheet viewing layout: use comfortable fixed columns instead of
   percentage widths that squeeze the controls on the right side. */
.theatrix-table.professional-pull-table {
  min-width: 1300px;
  border-collapse: separate;
  border-spacing: 0;
}
.theatrix-table.professional-pull-table col.qty-col { width: 78px; }
.theatrix-table.professional-pull-table col.item-col { width: 300px; }
.theatrix-table.professional-pull-table col.notes-col { width: 360px; }
.theatrix-table.professional-pull-table col.inv-col { width: 140px; }
.theatrix-table.professional-pull-table col.loaded-col { width: 140px; }
.theatrix-table.professional-pull-table col.return-col { width: 120px; }
.theatrix-table.professional-pull-table col.color-col { width: 110px; }
.theatrix-table.professional-pull-table col.delete-col { width: 72px; }
.theatrix-table.professional-pull-table .qty-cell,
.theatrix-table.professional-pull-table .check-cell,
.theatrix-table.professional-pull-table .return-cell,
.theatrix-table.professional-pull-table .color-cell {
  text-align: center;
}
.theatrix-table.professional-pull-table .cell-input,
.theatrix-table.professional-pull-table .cell-textarea,
.theatrix-table.professional-pull-table select {
  width: 100%;
  min-width: 0;
}

.theatrix-table.professional-pull-table thead th {
  padding: 12px 10px;
  letter-spacing: .035em;
  white-space: nowrap;
}
.theatrix-table.professional-pull-table tbody td {
  padding: 10px;
}
.theatrix-table.professional-pull-table .gear-row td {
  border-bottom: 1px solid var(--border, #d9dee7);
}
.theatrix-table.professional-pull-table .gear-row:hover td {
  background: color-mix(in srgb, var(--surface, #fff) 93%, #6b7280 7%);
}
.theatrix-table.professional-pull-table .inv-cell,
.theatrix-table.professional-pull-table .loaded-cell {
  padding-left: 12px;
  padding-right: 12px;
}
.theatrix-table.professional-pull-table .inv-cell input[type="checkbox"],
.theatrix-table.professional-pull-table .loaded-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.theatrix-table.professional-pull-table .initials-input {
  width: 62px;
  min-width: 62px;
  height: 34px;
  margin-left: 8px;
  padding: 5px 7px;
}
.theatrix-table.professional-pull-table .return-cell select,
.theatrix-table.professional-pull-table .color-cell select {
  min-height: 36px;
  padding: 5px 8px;
}
.theatrix-table.professional-pull-table .delete-cell {
  text-align: center;
  padding-left: 14px;
  padding-right: 14px;
}
.theatrix-table.professional-pull-table .delete-cell input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Keep trucking manifests aligned with the same visual rhythm. */
.trucking-assignment-table th,
.trucking-assignment-table td {
  height: 42px;
  vertical-align: middle;
}

@media (max-width: 760px) {
  .pullsheet-table-scroll {
    border: 1px solid var(--border, #d0d5dd);
  }
  .pull-table.professional-pull-table { min-width: 980px; }
  .theatrix-table.professional-pull-table { min-width: 1180px; }
  .professional-pull-table th,
  .professional-pull-table td { padding: 5px 4px; }
}

@media print {
  .pullsheet-table-scroll,
  .existing-pullsheet-scroll {
    overflow: visible !important;
    border: 0 !important;
  }
  .theatrix-table.professional-pull-table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: fixed !important;
  }
  .theatrix-table.professional-pull-table col.qty-col { width: 7% !important; }
  .theatrix-table.professional-pull-table col.item-col { width: 32% !important; }
  .theatrix-table.professional-pull-table col.notes-col { width: 31% !important; }
  .theatrix-table.professional-pull-table col.inv-col { width: 11% !important; }
  .theatrix-table.professional-pull-table col.loaded-col { width: 10% !important; }
  .theatrix-table.professional-pull-table col.return-col { width: 9% !important; }
  .professional-pull-table th,
  .professional-pull-table td {
    height: auto;
    overflow-wrap: anywhere;
  }
}
