/* ==========================================================================
   KHULAASAA UNIVERSAL A4 PRINT & PDF EXPORT SYSTEM
   Clean document rendering for CV Creator and Corporate Profiles
   ========================================================================== */


@page {
  size: A4 portrait;
  margin: 0; /* Tells browsers NOT to print default system headers and footers */
}

@media print {
  *, *:before, *:after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    width: 210mm !important;
    min-height: 297mm !important;
  }

  body * {
    visibility: hidden;
  }

  /* Completely suppress all browser system UI, headers, navigation, sidebars, buttons, modals */
  .site-nav, header, nav, footer, button, .print\:hidden, .border-b,
  #authModal, #proModal, #alertModal, form, #cvForm, .lg\:col-span-5,
  .mobile-bottom-nav, .cv-floating-actions, .app-icon-btn, #filterDrawer {
    display: none !important;
    visibility: hidden !important;
  }

  /* 1. CV Paper Printing */
  #cvPaper, #cvPaper * {
    visibility: visible;
  }

  #cvPaper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 14mm 16mm !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }

  .cv-theme-executive .cv-exec-sidebar {
    background: #f8fafc !important;
    -webkit-print-color-adjust: exact !important;
  }
  .cv-theme-executive .cv-exec-timeline-dot {
    background: #059669 !important;
    -webkit-print-color-adjust: exact !important;
  }
  .cv-theme-modern .cv-mod-badge {
    background: #e0e7ff !important;
    color: #3730a3 !important;
    -webkit-print-color-adjust: exact !important;
  }
  .cv-theme-modern .cv-mod-chip {
    background: #eef2ff !important;
    color: #312e81 !important;
    -webkit-print-color-adjust: exact !important;
  }

  /* 2. Corporate Paper Printing */
  #corporatePaper, #corporatePaper * {
    visibility: visible;
  }

  #corporatePaper {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  .page-sheet {
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 20mm 18mm !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }

  /* 3. Bid Workspace Interactive Documents Printing */
  .active-print-target, .active-print-target * {
    visibility: visible !important;
  }
  .active-print-target {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 210mm !important;
    max-width: 210mm !important;
    min-height: 297mm !important;
    margin: 0 !important;
    padding: 14mm 16mm !important;
    box-sizing: border-box !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
  }
}
