
@page {
    size: auto;
    margin: 20mm;
}

@media print {
    html, body {
        width: 210mm;
        height: 297mm;
    }
}

.transcript-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.transcript-header {
    text-align: left;
    margin-bottom: 30px;
}

.transcript-header img {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}

.transcript-header h1 {
    text-align: left;
    color: #45632b;
    font-size: 28px;
    margin: 20px 0;
}

.student-info {
    margin-bottom: 30px;
}

.student-info h2 {
    color: #45632b;
    font-size: 22px;
    margin-bottom: 10px;
}

/* Table styles */
.transcript-table {
    width: 100%;
    
    margin: 20px 0;
}

.transcript-table th,
.transcript-table td {
    border: 1px solid #ddd;
    padding: 12px 8px;
    text-align: left;
}

.transcript-table th {
    background-color: #f5f5f5;
    color: #45632b;
    font-weight: bold;
}

.transcript-table td:nth-child(2),
.transcript-table td:nth-child(3),
.transcript-table td:nth-child(4),
.transcript-table td:nth-child(5) {
    text-align: center;
}

.signature-img{
    max-width: 250px;
}

.print-button{
    margin-top: 15px;
}

/* Print/PDF specific styles */
@media print {
    .transcript-container {
        padding: 0;
    }

    .print-button {
        display: none;
    }

    .transcript-table {
        page-break-inside: auto;
    }

    .transcript-table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .transcript-table th {
        background-color: #f5f5f5 !important;
        -webkit-print-color-adjust: exact;
    }
}

/* Regular styles remain the same */

/* Print preparation styles */
.printing-transcript .transcript-container {
    position: relative !important;
    display: block !important;
    visibility: visible !important;
}

/* Print-specific styles */
@media print {
    /* Basic reset */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
        line-height: 1.4 !important;
    }

    /* Hide non-essential elements */
    .print-button,
    #wpadminbar,
    .admin-bar,
    header:not(.transcript-header),
    footer,
    .site-header,
    .site-footer,
    .nav-menu,
    .sidebar,
    #colophon,
    #masthead,
    .breadcrumb,
    .navigation,
    .comments,
    .widget,
    .advertisement {
        display: none !important;
    }

    /* Ensure transcript content is visible */
    .transcript-container {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 20px !important;
        width: 100% !important;
        max-width: none !important;
        position: static !important;
        background: white !important;
    }

    /* Ensure all transcript elements are visible */
    .transcript-header,
    .student-info,
    .transcript-table,
    .transcript-note,
    .transcript-support-section,
    .authorizes-signature {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Header styling */
    .transcript-header {
        text-align: center !important;
        margin-bottom: 30px !important;
    }

    .transcript-header h2 {
        color: #000 !important;
        font-size: 18pt !important;
        font-weight: bold !important;
        margin: 20px 0 !important;
    }

    /* Logo styling for print */
    .transcript-header img {
        display: block !important;
        max-width: 250px !important;
        max-height: 100px !important;
        margin: 0 auto 20px !important;
    }

    /* Student info styling */
    .student-info {
        margin-bottom: 30px !important;
        font-size: 11pt !important;
    }

    /* Table styles for print */
    .transcript-table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto !important;
        margin: 20px 0 !important;
        font-size: 10pt !important;
    }

    .transcript-table th,
    .transcript-table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        text-align: left !important;
    }

    .transcript-table th {
        background-color: #f0f0f0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        font-weight: bold !important;
    }

    .transcript-table tr {
        page-break-inside: avoid !important;
    }

    /* Signature section */
    .authorizes-signature {
        margin-top: 40px !important;
        page-break-inside: avoid !important;
    }

    .signature-img img {
        max-width: 200px !important;
        max-height: 80px !important;
    }

    /* Notes and support section */
    .transcript-note,
    .transcript-support-section {
        margin: 20px 0 !important;
        font-size: 10pt !important;
    }
}


