
.pullsheet-page {
  width: 980px;
  margin: 0 auto;
  background: #fff;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.sheet-top,
.sheet-bottom {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}

.print-header {
  display: grid;
  grid-template-columns: 1fr 360px 1fr;
  align-items: start;
  gap: 14px;
  margin-bottom: 4px;
}

.header-left,
.header-right {
  font-size: 14px;
  line-height: 1.35;
}

.header-right {
  justify-self: end;
  min-width: 170px;
  width: max-content;
  text-align: right;
}

.header-right > div {
  white-space: nowrap;
}

.header-right .date-print-input {
  text-align: right;
}

.brand {
  text-align: center;
  line-height: 1;
}

.brand-main {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 54px;
  letter-spacing: -2px;
  font-weight: 500;
}

.brand-sub {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  font-size: 18px;
  letter-spacing: 8px;
}

.brand-sub .dots {
  color: #e0ad00;
  letter-spacing: 4px;
  font-size: 24px;
}

.event-title-input,
.print-location,
.date-print-input {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
}

.print-location {
  width: 260px;
  height: 36px;
  resize: none;
  vertical-align: top;
}

.print-date-text {
  display: none;
  font-weight: 700;
}

.theatrix-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.1;
  background: white;
}

.theatrix-table th,
.theatrix-table td {
  border: 1px solid #888;
  padding: 4px 6px;
  vertical-align: middle;
}

.theatrix-table th {
  background: #ffe524;
  font-style: italic;
  font-weight: 800;
  text-align: center;
}

.qty-col { width: 48px; }
.item-col { width: 270px; }
.notes-col { width: 300px; }
.inv-col { width: 95px; }
.loaded-col { width: 85px; }
.return-col { width: 75px; }
.color-col { width: 110px; }
.delete-col { width: 40px; }

.section-row td {
  background: #d1d1d1 !important;
  font-weight: 800;
  text-align: center;
}

.qty-cell,
.check-cell,
.pull-cell,
.return-cell,
.center {
  text-align: center;
}

.cell-input,
.cell-textarea,
.return-cell select {
  width: 100%;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0;
}

.cell-input {
  text-align: center;
  font-weight: 700;
}

.cell-textarea {
  min-height: 24px;
  resize: vertical;
  line-height: 1.1;
}

.print-check,
.print-return {
  display: none;
}

.row-color-green td { background: #b7f7b7 !important; }
.row-color-yellow td { background: #fff36d !important; }
.row-color-red td { background: #ff0000 !important; }
.row-color-pink td { background: #ffc0df !important; }
.row-color-turquoise td { background: #7ee9ef !important; }
.row-color-orange td { background: #f5a623 !important; }
.row-color-tan td, .row-color-TAN td { background: #D2B48C !important; color: #111111 !important; }
.row-color-purple td { background: #8e63c7 !important; color: #ffffff !important; }

@media print {
  @page {
    size: letter portrait;
    margin: 0.25in;
  }

  html,
  body {
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden;
  }

  .pullsheet-page,
  .pullsheet-page * {
    visibility: visible;
  }

  .pullsheet-page {
    position: absolute;
    left: 0;
    top: 0;
    width: 7.95in;
    margin: 0;
    font-size: 10px;
  }

  .no-print,
  .sheet-top,
  .sheet-bottom,
  .danger-form,
  .add-inventory-box,
  .color-col,
  .color-cell,
  .delete-col {
    display: none !important;
  }

  .print-header {
    grid-template-columns: 1fr 260px 1fr;
    gap: 6px;
    margin-bottom: 2px;
  }

  .header-left,
  .header-right {
    font-size: 10px;
    line-height: 1.15;
  }

  .brand-main {
    font-size: 38px;
  }

  .brand-sub {
    font-size: 11px;
    letter-spacing: 6px;
    gap: 6px;
  }

  .brand-sub .dots {
    font-size: 16px;
    letter-spacing: 2px;
  }

  .date-print-input {
    display: none;
  }

  .print-date-text {
    display: inline;
  }

  .theatrix-table {
    font-size: 10px;
    line-height: 1.05;
  }

  .theatrix-table th,
  .theatrix-table td {
    border: 0.75px solid #777;
    padding: 2px 4px;
  }

  .theatrix-table th,
  .section-row td,
  .row-color-green td,
  .row-color-yellow td,
  .row-color-red td,
  .row-color-pink td,
  .row-color-turquoise td,
  .row-color-orange td,
  .row-color-tan td,
  .row-color-TAN td,
  .row-color-purple td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .check-cell input[type="checkbox"] {
    display: none;
  }

  .print-check {
    display: inline;
    font-size: 13px;
    font-weight: bold;
  }

  .return-cell select {
    display: none;
  }

  .print-return {
    display: inline;
  }

  input,
  textarea,
  select {
    border: 0 !important;
    background: transparent !important;
    resize: none;
    outline: none;
  }

  tr {
    page-break-inside: avoid;
  }
}

/* =========================================================
   HEADER WIDTH FIX - SCREEN + PRINT
   Keeps the THEATRIX header the same width as the inventory table.
   Added 2026-05-09
========================================================= */

.pullsheet-page,
.print-header,
.theatrix-table {
  box-sizing: border-box;
}

.pullsheet-page {
  width: 100%;
  max-width: 1200px;
}

.print-header {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 420px) minmax(260px, 1fr);
}

.header-left,
.header-right {
  width: 100%;
  max-width: 100%;
}

.header-right {
  justify-self: end;
  width: max-content;
  text-align: right;
}

@media print {
  .pullsheet-page {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .print-header {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 2.7in minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0.08in !important;
    margin: 0 0 0.05in 0 !important;
    box-sizing: border-box !important;
  }

  .header-left,
  .header-right,
  .brand {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-right {
    justify-self: end !important;
    width: max-content !important;
    text-align: right !important;
  }

  .header-right > div {
    white-space: nowrap !important;
  }

  .print-location {
    width: 100% !important;
    max-width: 100% !important;
  }

  .theatrix-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    box-sizing: border-box !important;
  }

  .qty-col { width: 7% !important; }
  .item-col { width: 32% !important; }
  .notes-col { width: 31% !important; }
  .inv-col { width: 11% !important; }
  .loaded-col { width: 10% !important; }
  .return-col { width: 9% !important; }

  .theatrix-table th,
  .theatrix-table td {
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }
}

/* =========================================================
   WEB INITIALS PATCH
   Allows the web user to check the pull checkbox and enter initials.
========================================================= */
.initials-input {
  width: 100%;
  max-width: 56px;
  box-sizing: border-box;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid #999;
  border-radius: 3px;
  padding: 2px 3px;
  background: #fff;
}

.add-initials-input {
  display: block;
  margin: 4px auto 0;
}

.print-initials {
  display: none;
  font-weight: 800;
}

@media print {
  .initials-input {
    display: none !important;
  }

  .print-initials {
    display: inline !important;
  }
}


.general-notes-section {
  margin-top: 20px;
  page-break-inside: avoid;
  border: 2px solid #000;
  padding: 12px;
  min-height: 120px;
}
.general-notes-section h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.general-notes-print {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 90px;
}
@media print {
  .general-notes-section .no-print {
    display: none !important;
  }
  .general-notes-section .print-only {
    display: block !important;
  }
}


.general-notes-history {
  white-space: pre-wrap;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  padding: 12px;
  margin: 8px 0 14px;
  min-height: 48px;
  background: #fff;
}

.general-notes-empty {
  font-style: italic;
  opacity: 0.7;
}

@media print {
  .general-notes-history {
    border: 0;
    padding: 0;
    margin-top: 6px;
  }
}

/* Export toolbar */
.export-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.export-toolbar button,
.export-toolbar .btn {
  white-space: nowrap;
}

/* =========================================================
   SCREEN HEADER DATE ALIGNMENT
   Keeps Set / Show / Strike neat and flush-right in the
   interactive pullsheet generator without changing print/PDF.
   Added 2026-07-13
========================================================= */
@media screen {
  .print-header .header-right {
    justify-self: end;
    align-self: start;
    width: 225px;
    min-width: 225px;
    max-width: 225px;
    text-align: right;
  }

  .print-header .header-right > div {
    display: grid;
    grid-template-columns: 52px 165px;
    align-items: center;
    justify-content: end;
    column-gap: 8px;
    margin-bottom: 5px;
    white-space: nowrap;
  }

  .print-header .header-right > div > b {
    display: block;
    text-align: right;
  }

  .print-header .header-right .date-print-input {
    display: block;
    box-sizing: border-box;
    width: 165px;
    min-width: 165px;
    max-width: 165px;
    height: 30px;
    padding: 3px 6px;
    border: 1px solid #b7b7b7;
    border-radius: 3px;
    background: #fff;
    text-align: right;
  }
}

/* Department hierarchy must remain visible and identical in print/PDF. */
@media print {
  .department-row td {
    background: #0b3d62 !important;
    color: #fff !important;
    font-weight: 800 !important;
    font-size: 11px !important;
    letter-spacing: .08em !important;
    text-align: left !important;
    padding: 4px 6px !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}


/* Crew Scheduler report printing: override the pullsheet-only visibility rule. */
@media print {
  body .crew-report-page,
  body .crew-report-page * {
    visibility: visible !important;
  }

  body .crew-report-page {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000 !important;
    background: #fff !important;
  }

  .crew-report-page .crew-report-filter,
  .crew-report-page .page-header .form-actions,
  .crew-report-page .btn,
  .crew-report-page .small-link {
    display: none !important;
  }

  .crew-report-page .crew-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    margin: 10px 0 !important;
  }

  .crew-report-page .card,
  .crew-report-page table,
  .crew-report-page th,
  .crew-report-page td {
    color: #000 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .crew-report-page table {
    width: 100% !important;
    font-size: 10pt !important;
  }

  .crew-report-page tr {
    break-inside: avoid;
  }
}

/* Trucking manifest printing: override the standard pullsheet-only visibility rule. */
@media print {
  body .trucking-sheet,
  body .trucking-sheet * {
    visibility: visible !important;
  }

  body .trucking-sheet {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body .trucking-sheet table,
  body .trucking-sheet thead,
  body .trucking-sheet tbody,
  body .trucking-sheet tr,
  body .trucking-sheet th,
  body .trucking-sheet td {
    visibility: visible !important;
  }

  body .trucking-sheet .no-print {
    display: none !important;
  }
}

/* Browser Print parity with generated PDF - 2026-08-11 */
@media print {
  .theatrix-table.professional-pull-table col.qty-col       { width: 5% !important; }
  .theatrix-table.professional-pull-table col.item-col      { width: 24% !important; }
  .theatrix-table.professional-pull-table col.notes-col     { width: 25% !important; }
  .theatrix-table.professional-pull-table col.inv-col       { width: 11% !important; }
  .theatrix-table.professional-pull-table col.crossload-col { width: 9% !important; }
  .theatrix-table.professional-pull-table col.loaded-col    { width: 11% !important; }
  .theatrix-table.professional-pull-table col.return-col    { width: 7% !important; }
  .theatrix-table.professional-pull-table col.qc-col        { width: 8% !important; }
}


@media print {
  /* WHGSP PRINT: quantity number only */
  .qty-cell,
  .quantity-cell,
  td.qty,
  td.quantity,
  input.qty,
  input.quantity,
  input[type="number"] {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}

/* WHGSP 2026-08-11: QTY must always print on a white background. */
@media print {
  .theatrix-table.professional-pull-table tbody tr > td.qty-cell,
  .theatrix-table.professional-pull-table tbody tr > td.qty-cell input,
  .theatrix-table.professional-pull-table tbody tr > td.qty-cell .qty-input,
  .professional-pull-table .qty-cell,
  .professional-pull-table .qty-input,
  .professional-pull-table input[type="number"].qty-input {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* =========================================================
   PROFESSIONAL PULLSHEET PRINT LAYOUT - 2026-08-12
   Final authoritative browser-print rules.  Keep the sheet,
   header and all visible columns inside the Letter page.
========================================================= */
@media print {
  @page { size: letter portrait; margin: 0.30in; }

  .pullsheet-page {
    width: 7.90in !important;
    max-width: 7.90in !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .pullsheet-page .existing-pullsheet-scroll,
  .pullsheet-page .pullsheet-table-scroll {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .pullsheet-page .print-header {
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 2.45in minmax(1.72in, .78fr) !important;
    gap: 0.10in !important;
    align-items: start !important;
    margin: 0 0 0.07in !important;
    padding: 0 !important;
  }

  .pullsheet-page .header-left,
  .pullsheet-page .brand,
  .pullsheet-page .header-right {
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
  }

  .pullsheet-page .header-left {
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  .pullsheet-page .header-right {
    justify-self: stretch !important;
    text-align: left !important;
  }

  .pullsheet-page .header-right > div {
    display: grid !important;
    grid-template-columns: 0.48in minmax(0, 1fr) !important;
    column-gap: 0.05in !important;
    align-items: baseline !important;
    width: 100% !important;
    margin: 0 0 2px !important;
    white-space: nowrap !important;
  }

  .pullsheet-page .header-right > div > b {
    display: block !important;
    text-align: right !important;
  }

  .pullsheet-page .header-right .print-date-text {
    display: block !important;
    text-align: right !important;
    min-width: 0 !important;
  }

  .pullsheet-page .print-location {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .pullsheet-page .theatrix-table.professional-pull-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 !important;
  }

  /* Advanced view: eight printed columns, exactly 100%. */
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.qty-col       { width: 5% !important; }
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.item-col      { width: 24% !important; }
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.notes-col     { width: 25% !important; }
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.inv-col       { width: 11% !important; }
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.crossload-col { width: 9% !important; }
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.loaded-col    { width: 11% !important; }
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.return-col    { width: 7% !important; }
  .pullsheet-page.view-advanced .theatrix-table.professional-pull-table col.qc-col        { width: 8% !important; }

  /* Simplified view: six printed columns, exactly 100%. */
  .pullsheet-page.view-simplified .theatrix-table.professional-pull-table col.qty-col    { width: 7% !important; }
  .pullsheet-page.view-simplified .theatrix-table.professional-pull-table col.item-col   { width: 32% !important; }
  .pullsheet-page.view-simplified .theatrix-table.professional-pull-table col.notes-col  { width: 31% !important; }
  .pullsheet-page.view-simplified .theatrix-table.professional-pull-table col.inv-col    { width: 11% !important; }
  .pullsheet-page.view-simplified .theatrix-table.professional-pull-table col.loaded-col { width: 10% !important; }
  .pullsheet-page.view-simplified .theatrix-table.professional-pull-table col.return-col { width: 9% !important; }

  .pullsheet-page .professional-pull-table th,
  .pullsheet-page .professional-pull-table td {
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding: 2px 3px !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .pullsheet-page .professional-pull-table .department-row td,
  .pullsheet-page .professional-pull-table .section-row td {
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .pullsheet-page .professional-pull-table .return-col,
  .pullsheet-page .professional-pull-table .return-cell {
    text-align: center !important;
  }

  .pullsheet-page .professional-pull-table .delete-col,
  .pullsheet-page .professional-pull-table .delete-cell,
  .pullsheet-page.view-simplified .professional-pull-table > thead > tr > th:nth-child(10),
  .pullsheet-page.view-simplified .professional-pull-table > tbody > tr > td:nth-child(10) {
    display: none !important;
  }
}

@media print{.regular-user-pullsheet.view-simplified .professional-pull-table>thead>tr>th:nth-child(2),.regular-user-pullsheet.view-simplified .professional-pull-table>thead>tr>th:nth-child(8),.regular-user-pullsheet.view-simplified .professional-pull-table>thead>tr>th:nth-child(9),.regular-user-pullsheet.view-simplified .professional-pull-table>thead>tr>th:nth-child(10),.regular-user-pullsheet.view-simplified .professional-pull-table>tbody>tr:not(.department-row)>td:nth-child(2),.regular-user-pullsheet.view-simplified .professional-pull-table>tbody>tr:not(.department-row)>td:nth-child(8),.regular-user-pullsheet.view-simplified .professional-pull-table>tbody>tr:not(.department-row)>td:nth-child(9),.regular-user-pullsheet.view-simplified .professional-pull-table>tbody>tr:not(.department-row)>td:nth-child(10){display:none!important}.regular-user-pullsheet.view-simplified .professional-pull-table>thead>tr>th:nth-child(5),.regular-user-pullsheet.view-simplified .professional-pull-table>tbody>tr:not(.department-row)>td:nth-child(5){display:table-cell!important}.regular-user-pullsheet.view-simplified .professional-pull-table col.item-col,.regular-user-pullsheet.view-simplified .professional-pull-table col.qc-col,.regular-user-pullsheet.view-simplified .professional-pull-table col.color-col,.regular-user-pullsheet.view-simplified .professional-pull-table col.delete-col{display:none!important;width:0!important}.regular-user-pullsheet.view-simplified .professional-pull-table col.qty-col{width:9%!important}.regular-user-pullsheet.view-simplified .professional-pull-table col.notes-col{width:37%!important}.regular-user-pullsheet.view-simplified .professional-pull-table col.inv-col{width:13%!important}.regular-user-pullsheet.view-simplified .professional-pull-table col.crossload-col{display:table-column!important;width:14%!important}.regular-user-pullsheet.view-simplified .professional-pull-table col.loaded-col{width:13%!important}.regular-user-pullsheet.view-simplified .professional-pull-table col.return-col{width:14%!important}}

/* WHGSP 2026-08-13 v6: ITEM is part of regular-user Simplified print/PDF. */
@media print {
  .regular-user-pullsheet.view-simplified .professional-pull-table col.item-col {
    display: table-column !important;
    width: 24% !important;
  }
  .regular-user-pullsheet.view-simplified .professional-pull-table > thead > tr > th:nth-child(2),
  .regular-user-pullsheet.view-simplified .professional-pull-table > tbody > tr:not(.department-row) > td:nth-child(2) {
    display: table-cell !important;
  }
}

@media print {
  .regular-user-pullsheet .professional-pull-table col.delete-col {
    display: none !important;
    width: 0 !important;
  }
  .regular-user-pullsheet .professional-pull-table > thead > tr > th:nth-child(10),
  .regular-user-pullsheet .professional-pull-table > tbody > tr:not(.department-row) > td:nth-child(10) {
    display: none !important;
  }
}
