/* Printed documents are independent from workspace appearance. */
.print-document {
  max-width: 48rem;
  margin: .75rem auto;
  color: #1f2937;
}
.print-document--commercial {
  max-width: 50rem;
  padding: 2.2rem;
  border: 1px solid #d5dde7;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
  font-size: .875rem;
  line-height: 1.45;
}
.print-document-masthead {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.35rem;
  border-bottom: 2px solid #17365d;
}
.print-document-company h2 {
  margin: 0 0 .35rem;
  color: #102a43;
  font-size: 1.45rem;
  line-height: 1.15;
}
.print-document-company div {
  color: #52677f;
  font-size: .8rem;
}
.print-document-meta {
  min-width: 15.5rem;
  text-align: right;
}
.print-document-kind {
  color: #102a43;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.print-document-draft {
  display: inline-block;
  margin-top: .25rem;
  padding: .08rem .4rem;
  color: #76540b;
  border: 1px solid #e7c86d;
  background: #fff8df;
  border-radius: 3px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.print-document-meta dl {
  margin: .65rem 0 0;
  display: grid;
  gap: .15rem;
  font-size: .8rem;
}
.print-document-meta dl div {
  display: grid;
  grid-template-columns: max-content auto;
  justify-content: end;
  gap: .5rem;
}
.print-document-meta dt {
  color: #64748b;
  font-weight: 500;
}
.print-document-meta dd {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}
.print-document-bill-to {
  display: grid;
  grid-template-columns: max-content fit-content(22rem) max-content;
  column-gap: .75rem;
  row-gap: .35rem;
  align-items: start;
  margin: 1.45rem 0;
  color: #475569;
}
.print-document-bill-to > span {
  color: #64748b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: .15rem;
}
.print-document-bill-to-identity,
.print-document-bill-to-contact {
  min-width: 0;
}
.print-document-bill-to-identity strong {
  display: block;
  color: #102a43;
  font-size: .95rem;
}
.print-document-bill-to-contact {
  padding-left: 0;
  border-left: 0;
}
.print-document-job {
  margin-top: 1.25rem;
}
.print-document-job-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}
.print-document-job-heading h3 {
  margin: 0;
  color: #102a43;
  font-size: .92rem;
}
.print-document-job-heading span,
.print-document-job-description {
  color: #64748b;
  font-size: .78rem;
}
.print-document-job-description {
  margin: .2rem 0 .6rem;
}
.print-document-table {
  border-top: 1px solid #aebdce;
}
.print-document-table-head,
.print-document-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem 6.5rem;
  gap: .75rem;
  align-items: start;
}
.print-document-table-head {
  padding: .4rem .55rem;
  background: #eef3f8;
  color: #405a76;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.print-document-table-head span:not(:first-child),
.print-document-line > span {
  text-align: right;
}
.print-document-line {
  padding: .55rem 0;
  border-bottom: 1px solid #dbe4ef;
}
.print-document-line strong {
  color: #1f2937;
}
.print-document-line small {
  display: block;
  margin-top: .1rem;
  color: #64748b;
  font-size: .77rem;
}
.print-document-line :is(.print-document-line-production, .print-document-line-components) {
  font-size: .77rem;
}
.print-document-line .print-document-line-production {
  color: #1f2937;
}
.print-document-line .print-document-line-production {
  font-weight: 700;
}
.print-document-totals {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  margin-top: 1.25rem;
}
.print-document-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem;
  min-width: 15rem;
  margin-left: auto;
  padding: .65rem .75rem;
  border-top: 2px solid #17365d;
  color: #102a43;
  font-size: 1rem;
}
.print-document-totals strong {
  font-size: 1.05rem;
}
@media print {
@page print-document { size: letter; margin: .35in; }
body:has(.customer-document-preview[open]) *,
body:has(.job-document-preview[open]) * {
  visibility: hidden;
}
body:has(.customer-document-preview[open]) .customer-document-preview[open],
body:has(.customer-document-preview[open]) .customer-document-preview[open] *,
body:has(.job-document-preview[open]) .job-document-preview[open],
body:has(.job-document-preview[open]) .job-document-preview[open] * {
  visibility: visible;
}
.customer-document-preview[open],
.job-document-preview[open] {
  display: block;
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  transform: none;
}
.customer-document-preview-content,
.job-document-preview .customer-document-preview-content {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  max-height: none;
  overflow: visible;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.customer-document-preview-content > header,
.customer-document-preview-content > footer {
  display: none;
}
.print-document--commercial {
  page: print-document;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
}
@media print {
body[data-ui-system="v1"] .main-content {
  background-image: none;
}
}
body[data-ui-system="v1"] .print-document-line--tbd > span:last-child {
  color: #9a6700;
  font-style: italic;
}
body[data-ui-system="v1"] .print-document--commercial {
  --document-financial-width: 19.5rem;
}
body[data-ui-system="v1"] .print-document-table-head,
body[data-ui-system="v1"] .print-document-line {
  grid-template-columns: minmax(0, 1fr) calc(var(--document-financial-width) - 7.25rem) 6.5rem;
}
body[data-ui-system="v1"] .print-document-line {
  align-items: center;
}
body[data-ui-system="v1"] .print-document-line > div:first-child > :first-child {
  margin-top: 0;
}
body[data-ui-system="v1"] .print-document-subtotal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .02rem .75rem;
  width: var(--document-financial-width);
  max-width: 100%;
  margin: .45rem 0 0 auto;
  text-align: left;
}
body[data-ui-system="v1"] .print-document-subtotal--tbd > strong:last-of-type {
  color: #9a6700;
  font-style: italic;
}
body[data-ui-system="v1"] .print-document-subtotal small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: .72rem;
}
body[data-ui-system="v1"] .print-document-financials {
  grid-column: 2 / 4;
  display: grid;
  align-content: start;
  gap: 0;
}
body[data-ui-system="v1"] .print-document-financial-line,
body[data-ui-system="v1"] .print-document-adjustment,
body[data-ui-system="v1"] .print-document-order-adjustment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  text-align: left;
}
body[data-ui-system="v1"] .print-document-table-head span:nth-child(2) {
  text-align: left;
}
body[data-ui-system="v1"] .print-document-table-head {
  padding-inline: 0;
}
body[data-ui-system="v1"] .print-document-adjustment {
  color: #64748b;
  font-size: .78rem;
}
body[data-ui-system="v1"] .print-document-adjustment span,
body[data-ui-system="v1"] .print-document-order-adjustment span {
  overflow-wrap: anywhere;
}
body[data-ui-system="v1"] .print-document-adjustment span {
  grid-column: 1;
}
body[data-ui-system="v1"] .print-document-adjustment span + span {
  grid-column: 2;
}
body[data-ui-system="v1"] .print-document-order-adjustment {
  grid-column: 1 / 3;
}
body[data-ui-system="v1"] .print-document-order-adjustment strong {
  font-size: inherit;
}
body[data-ui-system="v1"] .print-document-subtotal > span {
  text-align: left;
}
body[data-ui-system="v1"] .print-document-financial-line > :last-child,
body[data-ui-system="v1"] .print-document-adjustment > :last-child,
body[data-ui-system="v1"] .print-document-order-adjustment > :last-child,
body[data-ui-system="v1"] .print-document-subtotal > strong,
body[data-ui-system="v1"] .print-document-totals strong {
  text-align: right;
  white-space: nowrap;
}
body[data-ui-system="v1"] .print-document-adjustment > :last-child {
  font-weight: 700;
}
body[data-ui-system="v1"] .print-document-financial-line,
body[data-ui-system="v1"] .print-document-adjustment,
body[data-ui-system="v1"] .print-document-order-adjustment,
body[data-ui-system="v1"] .print-document-subtotal > span,
body[data-ui-system="v1"] .print-document-subtotal > strong,
body[data-ui-system="v1"] .print-document-totals > div,
body[data-ui-system="v1"] .print-document-totals strong {
  font-size: .85rem;
  line-height: 1.15;
}
body[data-ui-system="v1"] .print-document-totals > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem .75rem;
  width: var(--document-financial-width);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: .65rem 0;
}
body[data-ui-system="v1"] .print-document-totals small {
  display: block;
  margin-top: .15rem;
  color: #64748b;
  font-size: .72rem;
  text-align: right;
}
body[data-ui-system="v1"] .print-document-totals > div small {
  grid-column: 1 / -1;
}
@media print {
header.app-header,
aside,
.sidebar,
.report-actions,
.report-filters,
.report-location-form,
.report-tabs,
.inventory-ledger-filters,
.inventory-ledger .ui-dialog-actions button,
.inventory-ledger .ui-column-resizer {
  display: none !important;
}
main,
.app-main,
.main-content {
  margin: 0;
  padding: 0;
  width: auto;
}
body[data-ui-system="v1"] .inventory-report :is(.ui-data-table-scroll, .inventory-ledger-scroll) {
  overflow: visible;
  max-height: none;
}
body[data-ui-system="v1"] .inventory-report table {
  width: 100%;
  min-width: 0;
}
body[data-ui-system="v1"] .inventory-report .report-summary-area {
  display: block;
}
body[data-ui-system="v1"] .inventory-report .report-location-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
body[data-ui-system="v1"] .inventory-report .report-summary-area {
  grid-column: 1;
}
body[data-ui-system="v1"] .inventory-report [data-report-summary][aria-hidden="true"] {
  display: none;
}
body[data-ui-system="v1"] .inventory-report tr {
  break-inside: avoid;
}
body[data-ui-system="v1"] .inventory-report tfoot {
  display: table-row-group;
}
body[data-ui-system="v1"] .inventory-report .inventory-ledger .ui-data-table {
  display: table;
  width: 100%;
  min-width: 0;
}
body[data-ui-system="v1"] .inventory-report .inventory-ledger :is(thead, tbody) {
  display: table-row-group;
}
body[data-ui-system="v1"] .inventory-report .inventory-ledger tr {
  display: table-row;
}
body[data-ui-system="v1"] .inventory-report .inventory-ledger :is(th, td) {
  display: table-cell;
  white-space: normal;
  overflow-wrap: anywhere;
}
}
@media print {
.saved-print-document-viewer [data-document-status] {
  display: none;
}
}
