@media print {
    /* Reset and Base Styles */
    body {
        font-family: 'DejaVu Sans', 'Segoe UI', Arial, sans-serif;
        font-size: 12px;
        color: #000;
        margin: 0;
        padding: 15px;
        line-height: 1.4;
        background: #fff;
    }

    /* Main Container */
    .container {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Header Styles */
    .header {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #333;
    }

    .school-name {
        font-size: 22px;
        font-weight: bold;
        margin-bottom: 5px;
        color: #1a3d6e;
    }

    .school-address {
        font-size: 11px;
        color: #555;
        margin-bottom: 3px;
    }

    .school-contact {
        font-size: 10px;
        color: #666;
    }

    /* Title */
    .document-title {
        font-size: 18px;
        font-weight: bold;
        text-align: center;
        margin: 15px 0;
        color: #1a3d6e;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Section Styles */
    .section {
        border: 1px solid #ddd;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 4px;
        overflow: hidden;
    }

    .section-title {
        background: #2c5aa6;
        color: #fff;
        padding: 10px 15px;
        font-weight: bold;
        font-size: 14px;
        border-bottom: 1px solid #1a3d6e;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Table Styles */
    table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 0;
    }

    .info-table {
        width: 100%;
        border-collapse: collapse;
    }

    .info-table td {
        padding: 10px 12px;
        vertical-align: top;
        border-bottom: 1px solid #eee;
    }

    .info-table tr:last-child td {
        border-bottom: none;
    }

    .info-table td:first-child {
        font-weight: bold;
        width: 35%;
        background-color: #000;
    }

    .info-table td:last-child {
        width: 65%;
    }

    /* Label Styles */
    .label {
        font-weight: bold;
        color: #333;
        min-width: 150px;
        display: inline-block;
    }

    .value {
        color: #000;
    }

    /* Parent Section (Two Column Layout) */
    .parents-section {
        margin-top: 20px;
    }

    .parent-grid {
        display: flex;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }

    .parent-card {
        flex: 1;
        padding: 15px;
    }

    .parent-card:first-child {
        border-right: 1px solid #ddd;
    }

    .parent-title {
        font-size: 13px;
        font-weight: bold;
        margin-bottom: 10px;
        padding-bottom: 5px;
        border-bottom: 2px solid #2c5aa6;
        color: #2c5aa6;
        text-transform: uppercase;
    }

    .parent-detail {
        margin-bottom: 8px;
    }

    .parent-label {
        font-weight: bold;
        display: inline-block;
        min-width: 80px;
        font-size: 11px;
    }

    /* Student Photo */
    .student-photo {
        float: right;
        margin-left: 15px;
        margin-bottom: 10px;
        text-align: center;
    }

    .student-photo img {
        border: 1px solid #ccc;
        padding: 3px;
        background: #fff;
        max-width: 120px;
        max-height: 140px;
    }

    .photo-label {
        font-size: 10px;
        margin-top: 5px;
        color: #666;
    }

    /* Footer */
    .footer {
        margin-top: 30px;
        text-align: center;
        font-size: 9px;
        color: #999;
        border-top: 1px solid #ddd;
        padding-top: 10px;
    }

    /* Utility Classes */
    .text-center {
        text-align: center;
    }

    .text-right {
        text-align: right;
    }

    .text-left {
        text-align: left;
    }

    .clearfix::after {
        content: "";
        clear: both;
        display: table;
    }

    .page-break {
        page-break-before: always;
    }

    .no-break {
        page-break-inside: avoid;
    }

    /* Remove unwanted elements */
    .no-print {
        display: none;
    }

    /* Links */
    a {
        text-decoration: none;
        color: #000;
    }

    /* Borders */
    .border-top {
        border-top: 1px solid #ddd;
    }

    .border-bottom {
        border-bottom: 1px solid #ddd;
    }

    /* Remove the problematic denifittable styles */
    /* .denifittable,
    .denifittable th,
    .denifittable td {
        all: unset;
    } */
}