/*
 * Print styling for #print-root (browser print / Save as PDF) and legacy
 * #pdf-export-root rules. Summary uses .loro-pdf-root for capture-friendly layout.
 */
#pdf-export-root {
  position: fixed;
  left: -12000px;
  top: 0;
  width: 794px;
  box-sizing: border-box;
  padding: 0.4in;
  background: #fff;
  color: #06030c;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 10pt;
  line-height: 1.35;
}

#pdf-export-root .print-title {
  font-size: 18pt;
  margin: 0 0 0.25rem;
  color: #f92c53;
}

#pdf-export-root .print-phase {
  font-size: 12pt;
  font-weight: 700;
  margin: 0 0 1rem;
}

#pdf-export-root .print-meta {
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  padding: 0.5rem;
}

#pdf-export-root .print-meta dt {
  font-weight: 700;
  margin-top: 0.35rem;
}

#pdf-export-root .print-meta dd {
  margin: 0 0 0 0.5rem;
}

#pdf-export-root table.print-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  table-layout: fixed;
}

#pdf-export-root table.print-table caption {
  font-weight: 700;
  text-align: left;
  margin: 0.75rem 0 0.35rem;
  font-size: 11pt;
}

#pdf-export-root table.print-table th,
#pdf-export-root table.print-table td {
  border: 1px solid #333;
  padding: 0.25rem 0.35rem;
  vertical-align: top;
  word-break: break-word;
}

#pdf-export-root table.print-table th {
  background: #f0f0f0;
  font-size: 8pt;
}

#pdf-export-root table.print-table th.print-col-priority,
#pdf-export-root table.print-table td.print-col-priority {
  white-space: nowrap;
  width: 4.5em;
  font-size: 7pt;
}

#pdf-export-root .row-removed td {
  text-decoration: line-through;
  color: #666;
}

#pdf-export-root .badge-removed {
  font-size: 8pt;
  font-weight: 700;
  color: #f92c53;
}

#pdf-export-root .print-timeline {
  border: 1px solid #ccc;
  padding: 0.5rem;
  margin: 1rem 0;
  font-size: 9pt;
}

#pdf-export-root .print-timeline h3 {
  margin: 0 0 0.35rem;
  font-size: 10pt;
}

#pdf-export-root .print-approval {
  border: 1px solid #333;
  padding: 0.5rem;
  margin-top: 1rem;
}

#pdf-export-root .print-footer-note {
  margin-top: 1rem;
  font-size: 9pt;
  font-style: italic;
  border-top: 1px solid #ccc;
  padding-top: 0.5rem;
}

#pdf-export-root .print-thumb {
  max-width: 120px;
  max-height: 90px;
  object-fit: contain;
}

#pdf-export-root .empty-cell {
  color: #888;
}

#pdf-export-root .pdf-summary-shell {
  border-top: 4px solid #f92c53;
  padding-top: 4px;
}

#pdf-export-root .pdf-summary-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e8e6ec;
}

#pdf-export-root .pdf-summary-top-col {
  flex: 1;
  font-size: 9pt;
  line-height: 1.35;
  color: #5c5668;
}

#pdf-export-root .pdf-summary-top-col-right {
  text-align: right;
}

#pdf-export-root .pdf-summary-label {
  display: block;
  font-weight: 700;
  color: #06030c;
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

#pdf-export-root .pdf-summary-value {
  font-size: 10pt;
  font-weight: 600;
  color: #06030c;
}

#pdf-export-root .pdf-section-heading {
  font-size: 11pt;
  margin: 14px 0 8px;
  padding-left: 10px;
  border-left: 4px solid #f92c53;
  color: #06030c;
  font-weight: 700;
}

@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  body * {
    visibility: hidden;
  }

  #print-root,
  #print-root * {
    visibility: visible;
  }

  #print-root {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #fff;
    color: #06030c;
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 10pt;
    line-height: 1.35;
    padding: 0.4in;
  }

  #print-root .pdf-summary-shell {
    border-top: 4px solid #f92c53;
    padding-top: 4px;
  }

  #print-root .pdf-summary-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e6ec;
    font-size: 9pt;
    color: #5c5668;
  }

  #print-root .pdf-summary-top-col-right {
    text-align: right;
  }

  #print-root .pdf-summary-label {
    display: block;
    font-weight: 700;
    color: #06030c;
    font-size: 7.5pt;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 3px;
  }

  #print-root .pdf-summary-value {
    font-size: 10pt;
    font-weight: 600;
    color: #06030c;
  }

  #print-root .pdf-section-heading {
    font-size: 11pt;
    margin: 12px 0 6px;
    padding-left: 10px;
    border-left: 4px solid #f92c53;
    font-weight: 700;
  }

  #print-root .print-title {
    font-size: 18pt;
    margin: 0 0 0.25rem;
    color: #f92c53;
  }

  #print-root .print-phase {
    font-size: 12pt;
    font-weight: 700;
    margin: 0 0 1rem;
  }

  #print-root .print-meta {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    padding: 0.5rem;
  }

  #print-root .print-meta dt {
    font-weight: 700;
    margin-top: 0.35rem;
  }

  #print-root .print-meta dd {
    margin: 0 0 0 0.5rem;
  }

  #print-root table.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    page-break-inside: avoid;
    table-layout: fixed;
  }

  #print-root table.print-table caption {
    font-weight: 700;
    text-align: left;
    margin: 0.75rem 0 0.35rem;
    font-size: 11pt;
  }

  #print-root table.print-table th,
  #print-root table.print-table td {
    border: 1px solid #333;
    padding: 0.2rem 0.3rem;
    vertical-align: top;
    word-break: break-word;
    font-size: 8pt;
  }

  #print-root table.print-table th {
    background: #f0f0f0;
    font-size: 7pt;
  }

  #print-root table.print-table th.print-col-priority,
  #print-root table.print-table td.print-col-priority {
    white-space: nowrap;
    width: 4.5em;
    font-size: 7pt;
  }

  #print-root .row-removed td {
    text-decoration: line-through;
    color: #666;
  }

  #print-root .row-removed td::after {
    content: "";
  }

  #print-root .badge-removed {
    font-size: 8pt;
    font-weight: 700;
    color: #f92c53;
  }

  #print-root .print-timeline {
    border: 1px solid #ccc;
    padding: 0.5rem;
    margin: 1rem 0;
    font-size: 9pt;
  }

  #print-root .print-timeline h3 {
    margin: 0 0 0.35rem;
    font-size: 10pt;
  }

  #print-root .print-approval {
    border: 1px solid #333;
    padding: 0.5rem;
    margin-top: 1rem;
  }

  #print-root .print-footer-note {
    margin-top: 1rem;
    font-size: 9pt;
    font-style: italic;
    border-top: 1px solid #ccc;
    padding-top: 0.5rem;
  }

  #print-root .print-thumb {
    max-width: 1.2in;
    max-height: 0.9in;
    object-fit: contain;
  }

  #print-root .empty-cell {
    color: #888;
  }
}
