@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: 0;
    font-size: 12pt;
    line-height: 1.4;
    font-family: Arial, sans-serif;
  }

  /* Page margin and border */
  @page {
    margin-top: 0.65in;
    margin-bottom: 0.65in;
    margin-left: 0.3in;
    margin-right: 0.3in;
    size: auto;
  }

  /* Table styles for printing */
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: avoid;
  }
  
  table thead tr th {
    background-color: #1e40af !important;
    color: white !important;
  }

  table, th, td {
    border: 1px solid black !important;
  }

  th, td {
    padding: 4pt !important;
    font-size: 10pt !important;
  }

  table tbody tr:nth-child(even) {
    background-color: #cdd0d6 !important;
    color: rgb(16, 15, 15) !important;
  }
  
  table tbody tr:nth-child(odd) {
    background-color: #f9fafb !important;
    color: rgb(17, 14, 14) !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-600,
  .bg-blue-600,
  .bg-blue-600 {
    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;
  }

  /* Ensure content stays within page borders */
  .print-content {
    margin: 0;
    padding: 0;
  }
}

/* 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;
  }
  

 

  .space-y-1{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9fafb;
    border: 1px solid #d1d5db;
    margin-bottom: 0.5rem;
    
  }
  .space-y-1 label{
    width: 50%;
    padding-left: 0.5rem;
  }
  .space-y-1 input{
    width: 50%;
    border: 1px solid #d1d5db;
    background-color: #f9fafb;
    padding-left: 0.3rem;
  }
  input,select{
    border: none;
    background-color: transparent;
  }
  .heading {
    background-color: #1e40af !important;
    padding: 0.5rem 1rem;
    margin-top: 2rem;
  }
  .heading h2{
    color: white !important;
  }
  /* Flex for label:value */
  .flex {
    display: flex;
  }
  .justify-end {
    justify-content: flex-end;
  }
  .items-center {
    align-items: center;
  }
  /* 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;
  }
  .bg-yellow-50 {
    background-color: #fffbeb;
  }
  .border-yellow-200 {
    border-color: #fef08a;
  }
  .rounded-lg {
    border-radius: 0.5rem;
  }
  .note-section {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #fef08a;
    border-radius: 0.7rem;
    margin-top: 1.4rem;
  }

  .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-600 :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;
  }
