﻿/* General Styles for Web Viewing */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #002060;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

.container {
    background-color: #fff;
    border: 2px solid #000;
    padding: 30px;
    max-width: 800px;
    margin: auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 80px; /* adjust size */
}

.header-content {
    text-align: center;
    flex: 1;
}

.left-logo {
    text-align: left;
}

.right-logo {
    text-align: right;
}

.header {
    text-align: center;
    margin-bottom: 5px;
    padding-bottom: 5px;
}

    .header h1 {
        margin: 2px;
        font-size: 18pt;
    }

    .header h2 {
        margin: 2px;
        font-size: 14px;
        font-weight: 600;
    }

    .header p {
        margin: 2px;
        font-size: 10pt;
    }

.header-content-small {
    text-align: center;
    flex: 1;
    display: flex;
}

.lefthead {
    width: 650px;
}

.candidImg {
    width: 150px;
    height: 150px;
}

    .candidImg img {
        max-width: 100%;
    }

.imgtable {
    margin: 0;
    padding: 0;
}

    .imgtable td {
        border: 2px solid #000;
    }

.m-0 {
    margin: 0 !important;
}

.student-info {
    display: flex;
    justify-content: space-between;
    text-align: left !important;
    margin: 15px 0 0;
    font-size: 14px;
}

    .student-info p {
        margin: 0;
        padding: 0;
        line-height: 1.5;
    }

.info-column {
    width: 48%;
}

.info-row {
    margin-bottom: 5px;
}

.label {
    font-weight: bold;
    display: inline-block;
    width: 140px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
 margin-top:-2px;
}
.summary-table th {
    text-align:center !important;
}
    .summary-table th, .summary-table td {
        border: 2px solid #000;
        padding: 6px 8px;
        text-align: left;
        font-size: 10pt;
    }

    .summary-table th {
        background-color: #f2f2f2;
        text-transform: uppercase;
        font-size: 9pt;
    }
    .summary-table td:nth-child(1) {
        width:17%;
    }
      .summary-table td:nth-child(2) {
        width:8%;
    }
.gradetable {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 0;
}

    .gradetable th, .gradetable td {
        border: 2px solid #000;
        padding: 6px 8px;
        text-align: left;
        font-size: 10pt;
    }

    .gradetable th {
        background-color: #f2f2f2;
        text-transform: uppercase;
        font-size: 9pt;
    }

    .gradetable td:nth-child(1) {
        width: 18%;
        text-align: center;
    }

    .gradetable td:nth-child(2) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(3) {
        width: 50%;
    }

    .gradetable td:nth-child(4) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(5) {
        width: 9%;
        text-align: center;
    }

    .gradetable td:nth-child(6) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(7) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(8) {
        width: 5%;
        text-align: center;
    }

    .gradetable td:nth-child(9) {
        width: 5%;
        text-align: center;
    }

.summary-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}
 

    .summary-table td {
        font-weight: bold;
    }

.footergradesheet {
    margin-top: 50px;
    display: flex;font-size:15px;
    justify-content: space-between;
}
.footergradesheet{

}
.signature-box {
    text-align: center;
    width: 200px;
}

.sig-line {
    border-top: 1.5px solid #000;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 10pt;
}

/* Print Specific CSS */
@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    body {
        background-color: #fff;
        padding: 0;
    }

    .container {
        border: 2px solid #000;
        box-shadow: none;
        width: 100%;
        max-width: none;
        height: auto;
    }

    button {
        display: none;
    }
    /* Hide print buttons if any */

    table td {
        border: 2px solid #000;
    }

    table {
        width: 100%;
        border-collapse: collapse;
        border: 2px solid #000;
    }

    table, th, td {
        border: 2px solid #000000 !important;
    }


    * {
        -webkit-print-color-adjust: exact !important; /* Chrome, Safari, Edge */
        print-color-adjust: exact !important; /* Firefox */
    }

    .marksheet-container {
        border: 1px solid #000 !important; /* Outer container border */
        margin: 0;
        width: 100%;
    }
     .gradetable td:nth-child(1) {
        width: 30%;
        text-align: center;
    }

    .gradetable td:nth-child(2) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(3) {
        width: 50%;
    }

    .gradetable td:nth-child(4) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(5) {
        width: 9%;
        text-align: center;
    }

    .gradetable td:nth-child(6) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(7) {
        width: 8%;
        text-align: center;
    }

    .gradetable td:nth-child(8) {
        width: 5%;
        text-align: center;
    }

    .gradetable td:nth-child(9) {
        width: 5%;
        text-align: center;
    }

}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    body {
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        padding: 15px; /* reduce from 30px */
        box-sizing: border-box;
        page-break-inside: avoid;
    }

    table {
        page-break-inside: avoid;
        border: 0 !important;
    }
}
