/* Print modal — coming soon */
.print-modal-content {
  max-width: 28rem;
}

.print-modal-content--soon {
  max-width: 520px;
}

.print-coming-soon-body {
  text-align: center;
}

.print-coming-soon-hero {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.print-coming-soon-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-2xl, 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-50, #eef2ff) 0%, var(--secondary-50, #f0f9ff) 100%);
  border: 2px solid var(--primary-200, rgba(99, 102, 241, 0.25));
  color: var(--primary-600, #4f46e5);
  box-shadow: var(--shadow-md, 0 4px 12px rgba(99, 102, 241, 0.15));
}

.print-coming-soon-section {
  margin-bottom: var(--space-6);
  text-align: left;
}

.print-coming-soon-title {
  justify-content: center;
}

.print-coming-soon-text p:last-child {
  margin-bottom: 0;
}

.print-modal-footer--center {
  justify-content: center;
}

.print-modal-note {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.print-page-list {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.print-page-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.print-page-option:hover {
  background: var(--color-surface-hover, rgba(0, 0, 0, 0.04));
}

.print-page-option input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary, #2563eb);
}

.print-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-border, #e5e7eb);
}

.print-modal-error {
  margin: var(--space-3) 0 0;
  color: var(--color-danger, #dc2626);
  font-size: var(--font-size-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print preview page */
body.print-preview {
  margin: 0;
  background: #f8fafc;
  color: #0f172a;
  font-family: Inter, system-ui, sans-serif;
}

.print-preview-header {
  display: flex;
  align-items: center;
  gap: var(--space-4, 1rem);
  padding: var(--space-6, 1.5rem) var(--space-8, 2rem);
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.print-preview-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.print-preview-meta h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.print-preview-meta p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.print-now-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 0.5rem;
  background: #2563eb;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.print-now-btn:hover {
  background: #1d4ed8;
}

.print-page {
  margin: var(--space-8, 2rem) auto;
  max-width: 1200px;
  padding: var(--space-8, 2rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.print-page-title {
  margin: 0 0 var(--space-6, 1.5rem);
  padding-bottom: var(--space-4, 1rem);
  border-bottom: 2px solid #e2e8f0;
  font-size: 1.5rem;
  font-weight: 700;
}

.print-page .dashboard-content,
.print-page section {
  max-width: none;
}

@media print {
  @page {
    size: A4;
    margin: 15mm;
  }

  body.print-preview {
    background: #fff;
  }

  .print-preview-header {
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 1rem;
    margin-bottom: 0;
  }

  .print-now-btn,
  .no-print {
    display: none !important;
  }

  .print-page {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    page-break-after: always;
    break-after: page;
  }

  .print-page:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  .print-page-title {
    break-after: avoid;
  }

  canvas,
  svg {
    max-width: 100% !important;
  }
}
