/*.sheet {*/
/*  margin: 0;*/
/*  overflow: hidden;*/
/*  position: relative;*/
/*  box-sizing: border-box;*/
/*  page-break-after: always;*/
/*}*/

/** Paper sizes **/
/*body.A3               .sheet { width: 297mm; height: 419mm }*/
/*body.A3.landscape     .sheet { width: 420mm; height: 296mm }*/
/*body.A4               .sheet { width: 210mm; height: 296mm }*/
/*body.A4.landscape     .sheet { width: 297mm; height: 209mm }*/
/*body.A5               .sheet { width: 148mm; height: 209mm }*/
/*body.A5.landscape     .sheet { width: 210mm; height: 147mm }*/
/*body.letter           .sheet { width: 216mm; height: 279mm }*/
/*body.letter.landscape .sheet { width: 280mm; height: 215mm }*/
/*body.legal            .sheet { width: 216mm; height: 356mm }*/
/*body.legal.landscape  .sheet { width: 357mm; height: 215mm }*/

/** Padding area **/
/*.sheet.padding-10mm { padding: 10mm }*/
/*.sheet.padding-15mm { padding: 15mm }*/
/*.sheet.padding-20mm { padding: 20mm }*/
/*.sheet.padding-25mm { padding: 25mm }*/

/** For screen preview **/
/*@media screen {*/
/*  body { background: #e0e0e0 }*/
/*  .sheet {*/
/*    background: white;*/
/*    box-shadow: 0 .5mm 2mm rgba(0,0,0,.3);*/
/*    margin: 5mm auto;*/
/*  }*/
/*}*/

/** Fix for Chrome issue #273306 **/
@media print {
    /*.noPrint{*/
    /*    display:none;*/
    /*}*/
    
    body { 
        margin: 0; 
        padding: 14px;
        font-size: 11px; /* Adjust font size to fit content */
        line-height: 1.5;
    }
    
    body.A3.landscape { width: 420mm }
    body.A3, body.A4.landscape { width: 297mm }
    body.A4, body.A5.landscape { width: 210mm }
    body.A5                    { width: 148mm }
    body.letter, body.legal    { width: 216mm }
    body.letter.landscape       { width: 280mm }
    body.legal.landscape       { width: 357mm }
    
    div, table, h1, h2, h4, th, td {
        page-break-inside: avoid; /* Prevent elements from breaking inside */
        page-break-after: auto;
        page-break-before: auto;
    }

    .panel {
        border: none; /* Remove borders for cleaner print */
        margin: 0;
        padding: 0;
    }

    table {
        width: 100%; /* Ensure tables take up full width */
        border-collapse: collapse; /* Avoid double borders */
    }
    
    table, thead, tbody, th, td{
        border: 1.5px solid #000 !important; /* Add borders for cells */    
    }
    
    th, td {
        font-size: 12px;
        padding: 5px 0 !important;
    }

    h1, h2, h4 {
        text-align: center; /* Center titles for better aesthetics */
        margin: 5px 0;
    }

    .noPrint {
        display: none !important; /* Hide elements not needed for printing */
    }

    .table-responsive {
        overflow: visible !important; /* Ensure table is fully visible */
    }

    /* Class teacher and signature section */
    .teacher-signature {
        display: flex;
        align-items: center;
        margin-top: 20px;
        /*border: 1px solid #111;*/
        border-radius: 2px;
    }

    .teacher-signature h4 {
        background: rgba(0, 0, 0, 0.5);
        color: white;
        padding: 5px;
        margin: 0;
        flex: 1;
    }

    .teacher-signature div {
        border-bottom: 1px solid #111;
        flex: 3;
        height: 20px;
    }
}