
@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-specific styles */
@media print {
    /* Show only the transcript content */
    .transcript-container {
        display: block !important;
        margin: 0;
        padding: 20px;
        width: 100%;
        max-width: none;
    }

    /* Hide everything else */
    body > *:not(.transcript-container) {
        display: none !important;
    }

    /* Basic reset */
    body {
        margin: 0;
        padding: 0;
        background: white;
    }

    /* Hide specific elements */
    header, 
    footer, 
    .site-header,
    .site-footer,
    .nav-menu,
    .sidebar,
    .print-button,
    #wpadminbar,
    #colophon,
    #masthead,
    #page > *:not(.transcript-container) {
        display: none !important;
    }

    /* Table styles for print */
    .transcript-table {
        width: 100%;
        border-collapse: collapse;
        page-break-inside: auto;
    }

    .transcript-table th,
    .transcript-table td {
        border: 1px solid #000;
        padding: 8px;
    }

    .transcript-table th {
        background-color: #f8f8f8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .transcript-table tr {
        page-break-inside: avoid;
    }

    /* Ensure content is visible */
    .transcript-header,
    .student-info,
    .transcript-table {
        display: block !important;
        visibility: visible !important;
    }

    /* Logo styling for print */
    .transcript-header img {
        display: block !important;
        max-width: 300px;
        max-height: 150px;
        margin: 0 auto 20px;
    }

    /* Text colors for print */
    .transcript-header h1,
    .student-info h2 {
        color: #000 !important;
    }
}


