@media print {
    .card {
    -webkit-print-color-adjust: exact !important;   /* Chrome, Safari, Edge */
    print-color-adjust: exact !important;           /* Firefox 97+, Safari 15.4+ */
  }

    @page {
        size: A4 portrait;
        margin: 10mm !important;
        visibility: visible;
        width: 100%;
    }

    .repeat-me {
        position: fixed;
        top: 0;
        width: 100%;
        display: block;
        margin-bottom: 460px;
    }



    body {
        zoom: 80%;
        /* Shrinks the entire layout to 80% of its size */
    }

    .just-print {
        display: block !important;
    }

    .hidden-item {
        height: auto;
    }

    .not-printable {
        display: none !important;
    }

    .printable {
        margin: 0 !important;
        padding: 0 !important;
        padding-top: 0px !important;
    }

    /* Single clearance under fixed header (smaller print-header_new.jpg).
       Avoid stacking this with a large @page margin-top or page 1 runs out of room. */
    .printable.print-margine {
        margin-top: 30vh !important;
        padding-top: 0.5rem !important;
    }

    .page-break {
        display: block;
        break-before: page;
        /* Modern standard */
    }

    /* Prevent images or tables from splitting in half */
    img,
    .card,
    .keep-together {
        break-inside: avoid;
    }

    .side-padding {
        padding: 0 !important;
    }

    .print-header {
    position: fixed;
    top: 0;
  }
  .print-footer {
    position: fixed;
    bottom: 0;
   
  }
  @page {
    /* Keep modest — print-margine handles clearance under the fixed header */
    margin-top: 12mm;
  }

#print-watermark {
    display: block;
    position: fixed;
    opacity: 0.03;
    top: 50%;
    left: 50%;
    scale: 1.5;
    transform: translate(-30%, -30%) rotate(0deg);
    /* font-size: 80pt;
    color: rgba(200, 200, 200, 0.1); Light grey with transparency */
    z-index: 1000;
    pointer-events: none; /* Ensure it doesn't interfere with interaction */
    white-space: nowrap;
  }


}

/* Hide everything in the body by default */