
.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: 50px; }
.pull-col { width: 65px; }
.loaded-col { width: 65px; }
.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; }

@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 {
    -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: 7% !important; }
  .pull-col { width: 7% !important; }
  .loaded-col { width: 8% !important; }
  .return-col { width: 8% !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;
  }
}
