/* PT EMR Sim - Accessible Print Styles
  Note: Keep print overrides minimal and avoid !important unless absolutely necessary. */

@media print {
  /* Hide interactive elements */
  .no-print,
  .btn,
  .chart-navigation,
  .topbar,
  .footer {
    display: none;
  }

  /* Print-friendly layout */
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
    margin: 0;
    padding: 0;
  }

  /* Remove shadows and backgrounds for print */
  .panel,
  .inline-card,
  .pt-field-group {
    box-shadow: none;
    border: 1px solid #000;
    background: #fff;
    color: #000;
  }

  /* Ensure page breaks work properly */
  .subjective-section,
  .objective-section,
  .assessment-section,
  .plan-section,
  .billing-section,
  .soap-section {
    break-inside: avoid;
    margin-bottom: 1rem;
    page-break-inside: avoid;
  }

  /* Hide interactive table elements */
  .editable-table__add-btn,
  .editable-table__delete-btn {
    display: none;
  }

  /* Print-friendly form elements */
  .editable-table__input,
  .editable-table__select,
  input,
  textarea,
  select {
    border: 1px solid #000;
    background: transparent;
    color: #000;
    font-size: 10pt;
  }

  /* Print typography */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #000;
    page-break-after: avoid;
  }

  h1 {
    font-size: 18pt;
  }
  h2 {
    font-size: 16pt;
  }
  h3 {
    font-size: 14pt;
  }
  h4 {
    font-size: 12pt;
  }
  h5,
  h6 {
    font-size: 11pt;
  }

  /* Print table styling */
  .table,
  .editable-table__table {
    border-collapse: collapse;
    border: 1px solid #000;
  }

  .table th,
  .table td,
  .editable-table__header-cell,
  .editable-table__cell {
    border: 1px solid #000;
    background: #fff;
    color: #000;
    padding: 4pt;
  }

  /* Print links */
  a {
    color: #000;
    text-decoration: underline;
  }

  /* Print page setup */
  @page {
    margin: 1in;
    size: letter;
  }
}
