@media print {
  /* Hide elements that shouldn't be printed */
  .no-print,
  button:not(.print-button),
  .print-buttons {
    display: none !important;
  }

  /* Ensure proper page layout */
  body {
    margin: 0;
    padding: 10mm;
    font-size: 12pt;
    line-height: 1.4;
    font-family: Arial, sans-serif;
    /* background-color: #f0f579; */
  }

  /* Table styles for printing */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: avoid;
  }

  /* table, th, td {
    border: 1px solid black !important;
  } */

  th, td {
    padding: 4pt !important;
    font-size: 10pt !important;
  }

  /* Header styles */
  .text-3xl {
    font-size: 18pt !important;
  }

  .text-2xl {
    font-size: 16pt !important;
  }

  .text-lg {
    font-size: 14pt !important;
  }

  /* Avoid page breaks inside important elements */
  .avoid-break {
    page-break-inside: avoid;
  }

  /* Force page breaks */
  .page-break {
    page-break-before: always;
  }

  /* Print-specific colors */
  .bg-blue-900,
  .bg-blue-700,
  .bg-blue-500 {
    background-color: #e5e7eb !important;
    color: black !important;
  }

  .text-white {
    color: black !important;
  }

  /* Remove shadows and rounded corners for better printing */
  * {
    box-shadow: none !important;
    border-radius: 0 !important;
  }
}

/* Container section */
.avoid-break {
    break-inside: avoid;
  }
  
  /* Header */
  .text-center {
    text-align: center;
  }
  .relative {
    position: relative;
  }
  .mb-6 {
    margin-bottom: 1.5rem;
  }
  
  /* Heading: INDIAN NAVAL SHIP MAINTENANCE AUTHORITY */
  .text-3xl {
    font-size: 1.875rem; /* 30px */
    line-height: 2.25rem; /* 36px */
  }
  .font-bold {
    font-weight: 700;
  }
  .text-red-700 {
    color: #b91c1c;
  }
  .mb-2 {
    margin-bottom: 0.5rem;
  }
  
  /* Subheading */
  .text-2xl {
    font-size: 1.5rem; /* 24px */
    line-height: 2rem;  /* 32px */
  }
  .font-semibold {
    font-weight: 600;
  }
  .text-blue-900 {
    color: #1e3a8a;
  }
  .mb-4 {
    margin-bottom: 1rem;
  }
  
  /* Top right corner: Date and Time */
  .text-lg {
    font-size: 1.125rem; /* 18px */
    line-height: 1.75rem;
  }
  .font-medium {
    font-weight: 500;
  }
  .text-gray-700 {
    color: #374151;
  }
  /* .absolute {
    position: absolute;
  } */
  .top-10 {
    top: 5.5rem;
    float: right;
    font-size: 8px;
    /* display: none; */
  }
  .right-5 {
    right: 1.25rem;
  }
  .z-10 {
    z-index: 10;
  }
  
  /* Report parameter box */
  .bg-gray-100 {
    background-color: #f3f4f6;
  }
  .py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .border {
    border-width: 1px;
    border-color: #d1d5db;
  }
  
  /* Grid layout for parameters */
  .grid {
    display: grid;
  }
  .grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-6 {
    /* Will work as 6 cols on medium screens and above */
    @media (min-width: 480px) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    @media (min-width: 768px) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    @media (min-width: 1024px) {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    @media (min-width: 1280px) {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
  }
  
  /* Flex for label:value */
  .flex {
    display: flex;
  }
  
  /* Label styling */
  .text-blue-700 {
    color: #1d4ed8;
  }
  
  /* Value text */
  .text-gray-800 {
    color: #1f2937;
  }
  
  /* Table styling */
  .table-auto {
    table-layout: auto;
  }
  .w-full {
    width: 100%;
  }
  .text-center {
    text-align: center;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .border-gray-400 {
    border-color: #9ca3af;
  }
  .p-2 {
    padding: 0.5rem;
  }
  
  /* Header rows */
  .bg-blue-900 {
    background-color: #1e3a8a;
    color: #ffffff;
  }
  .bg-blue-700 {
    background-color: #1d4ed8;
    color: #ffffff;
  }
  .bg-blue-500 {
    background-color: #3b82f6;
    color: #ffffff;
  }
  .text-white {
    color: #ffffff;
  }
  
  /* Header row font weights */
  .font-bold {
    font-weight: 700;
  }
  .font-semibold {
    font-weight: 600;
  }
  
  /* Body row alternating colors */
  .bg-gray-50 {
    background-color: #f9fafb;
  }
  .bg-white {
    background-color: #ffffff;
  }
  
  /* Row hover */
  .hover\:bg-blue-50:hover {
    background-color: #eff6ff;
  }
  
  /* Transition for hover effect */
  .transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-duration: 150ms;
    transition-timing-function: ease-in-out;
  }
  