@media print {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  main {
    margin: 0 !important;
    padding: 0 !important;
  }
  body {
    font-family: Arial, sans-serif;
    color: #000;
    background: #fff;
    margin: 0 !important;
    padding: 0 !important;
  }
  .main-submitted {
    padding: 0px !important;
  }
  title {
    font-size: 100px;
  }
  p {
    line-height: 1.8 !important;
    margin: 0 !important;
  }

  .container-print {
    visibility: visible !important;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  /* .grid-container {
        height: 0 !important;
        display: none !important;
    } */
  .grid-container {
    display: block; /* Change display for print */
    page-break-inside: avoid; /* Prevent breaks inside this container */
  }

  ::-webkit-scrollbar {
    display: none !important;
  }

  .no-print {
    display: none !important;
  }
  .header-details {
    margin-bottom: 5px !important;
  }

  .detail-ROP {
    font-family: "Old English Five", sans-serif;
    font-size: x-small !important;
  }
  .detail-address {
    font-family: "Crimson Text", serif;
    font-size: small !important;
  }
  /* .container-compose {
        background-color: #edbfd9;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        margin: 0px !important;
        padding: 0px !important;
        border-radius: 107px 0px 200px 18px;
        -webkit-border-radius: 107px 0px 200px 18px;
        -moz-border-radius: 107px 0px 200px 18px;
    } */
  .container-compose {
    margin: 0px !important;
    padding: 0px !important;
  }
  .sub-details {
    width: 350px;
    margin-left: 0 !important;
  }
  .cityLogo {
    width: 5.5em !important;
  }
  .header-print {
    width: 100% !important;
    height: 1in;
  }
  /* Style the content area */
  /* .print-container {
        width: 100%;
        margin: 0;
        padding: 0;
    } */
  .header-title-con {
    height: auto !important;
  }
  .table-containerPrint {
    margin: 20px 0 20px 0;
  }
  #barcode {
    width: 200px;
    height: min-content;
  }

  /* Adjust table styles for printing */
  table {
    width: 100%;
    border-collapse: collapse;
  }

  table,
  th,
  td {
    border: 2px solid #000000;
    text-overflow: ellipsis;
    font-size: 15px !important;
  }

  th,
  td {
    padding: 3px;
    text-align: left;
  }
  th,
  td,
  input {
    padding: 3px;
    text-align: left;
    font-size: 10px !important;
  }
  .long-values {
    min-width: 300px;
  }
  /* .meduim-values {
        min-width: 160px;
    } */
  /* .small-values {
        max-width: 90px;
    } */
  #viewSubject {
    min-height: 34px !important; /* Ensure it has a minimum height */
    resize: none; /* Prevent manual resizing */
    overflow-y: hidden; /* Hide the scrollbar */
    box-sizing: border-box;
  }

  .center-layout-print {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 550px 550px !important;
    /* grid-template-areas:
            "gridFirst"
            "gridFirst gridSecond"; */
  }

  /* .grid-item1 {
        grid-area: gridFirst;
    }
    .grid-item2 {
        grid-area: gridSecond;
    } */

  /* Prevent page breaks in certain elements */
  /* .no-break {
        page-break-inside: avoid;
    } */
}
