@charset "utf-8";
/* 🖋 Marksheet Template - Full Green Theme Print Safe */

/* Force A4 page size */
@page {
    size: A4 portrait;
    margin: 8mm;  /* Safe margins */
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    font-family: Calibri, sans-serif;
    box-sizing: border-box;
}
.images{
    height:40px;
    width:50px;
}

/* Container */
.container_marksheet_template1 {
    width: 97%;
    height: auto;
    page-break-after: always;
    border: 2px solid black; /* green border */
    margin: 1% auto;
    background: #f8fafc;
    padding: 20px 1.5%;
}

/* Content */
.content_container_template1 {
    padding: 10px 1%;
}

/* Header */
.header_template1 {
    font-size: 12pt;
    text-transform: capitalize;
    font-family: Calibri, sans-serif;
    margin-bottom: 15px;
}
.heading_template1 {
    font-size: 20pt;
    text-transform: uppercase;
    font-weight: bold;
    color: #0b722d; /* green */
}
.fullstretch {
    width: 100%;
}
.heading_report_template1 {
    font-size: 26pt;
    font-weight: bold;
    margin-top: 11px;
    font-family: Calibri, sans-serif;
    color: #0b722d; /* green */
}

/* Table 1 */
.table1_container_template1 {
    margin-top: 20px;
}
.table1_template1 {
    border-collapse: collapse;
    width: 100%;
    border-radius: 3.5px;
    overflow: hidden;
}
.table1_template1 td,
.table1_template1 th {
    padding: 4px 6px;
    border: 1px solid #cbd5e1;
}
.table1_template1 th {
    background-color: #0b722d; /* green header */
    color: white;
    font-weight: 550;
    font-size: 0.9rem;
    letter-spacing: 0.26px;
}
.table1_template1 td {
    background-color: #ffffff;
}
/* Force green for tbody rows */
.table1_template1 tbody tr:nth-child(even) td {
    background-color: #e8f5e9; /* light green even rows */
}
.table1_template1 tbody tr:nth-child(odd) td {
    background-color: #ffffff; /* white odd rows */
}
.table1_template1 tbody tr:hover td {
    background-color: #d4efdf; /* lighter green hover */
}

/* Student Info */
.student_info_template1 {
    width: 40%;
    display: inline-block;
    /*border-top: 1px solid black;*/
        margin-right: 30px;
}

.student_info_table_template1 td {
    padding-right: 5px;
}
.student_info_table_template1 td.info-label {
    font-weight: 600;
    color: #0b722d; /* green */
}

/* Evaluation Table */
.evaluation_table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}
.evaluation_table th,
.evaluation_table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}

/* Make all headers green even if <td> in first row */
.evaluation_table th,
.evaluation_table tr:first-child td,
.subject-header {
    background-color: #0b722d !important; /* dark green */
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* Alternate row colors in tbody */
.evaluation_table tbody tr:nth-child(even) td {
    background-color: #e8f5e9; /* light green even rows */
}
.evaluation_table tbody tr:nth-child(odd) td {
    background-color: #ffffff; /* white odd rows */
}
.evaluation_table tbody tr:hover td {
    background-color: #d4efdf; /* lighter green hover */
}
/* Subject headers */
.subject-header {
    background-color: #0b722d !important; /* green */
    color: white !important;
    text-transform: uppercase;
}

/* Signature */
.principal_signature_template1 {
    text-align: center;
    margin-top: 75px;
}
.signature_div {
    margin-top: 40px;
}
.signature_line {
    border-top: 1px solid #0b722d; /* green */
}

/* Buttons */
.btn-upload {
    background: linear-gradient(135deg, #4CAF50, #0b722d);
    padding:10px 20px;
    border-radius:5px;
}
.btn-upload:hover {
    background: linear-gradient(135deg, #43A047, #084119);
}

/* Success Badge */
/*.success-badge {*/
/*    background: linear-gradient(135deg, #4CAF50, #0b722d);*/
/*}*/
#template_table_edit{
    margin-top:20px;
    width:100%;
    border:1px solid black;
}
/* Template table edit headers */
#template_table_edit th,td {
    /*background-color: #0b722d !important;*/
    /*color: black;*/
    /*font-weight: 600;*/
    text-transform: uppercase;
    text-align: center;
    /*border:1px solid black;*/
}
.table tbody tr:nth-child(even) td {
    background-color: #e8f5e9;
}
.table tbody tr:nth-child(even) th {
    background-color: #e8f5e9;
}
#template_table_edit .head {
    background-color: #0b722d;
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
}

/* Inputs */
#template_table_edit input[type="number"],
#template_table_edit input[type="text"],
#template_table_edit input[type="file"] {
    border: 1px solid #0b722d; /* green */
}

/* Force green everywhere else */
.heading_template1,
.heading_report_template1,
.student_info_table_template1 td.info-label {
    color: #0b722d !important;
}

.info {
    border: 1px solid black;
    margin: 5px 0px;
}
.sign .student_info_template1{
    border-top:1px solid black;
}
/* Print Media Query */
@media print {
    @page{
         size: A4 portrait;
         margin: 30px; 
    }
    * {
        color: #000 !important;
        background: none !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body, html {
        font-size: 9.5pt !important;
        /*margin: 0.2cm !important;*/
    }

    /* Container & tables: remove extra styles */
    .container_marksheet_template1{
        broder:1px solid black;
        page-break-after:always;
}
    .content_container_template1,
    .evaluation_table,
    .table1_template1 {
        padding: 1px !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
        background: none !important;
    }

    table, th, td {
        border: 1px solid #000 !important; /* single black border */
        font-size: 8.8pt !important;
        background: none !important;
        color: #000 !important;
    }

    /* Remove logos and school heading */
    .header_template1 img,
    .heading_template1 {
        display: none !important;
    }

    /* Add horizontal line in header */
    .header_template1 {
        border-bottom: 1px solid #000 !important;
        margin-bottom: 10px !important;
        padding-bottom: 5px !important;
    }

    /* Report heading color */
    .heading_report_template1 {
        background: none !important;
        color: #000 !important;
    }

    /* Student Info: add border */
    .student_info_template1 {
        padding: 5px !important;
        margin-bottom: 10px !important;
        width: 40%;
        display: inline-block;
    /*border-top: 1px solid black;*/
        margin-right: 30px;

    }
    .student_info_table_template1,
    .student_info_table_template1 td {
        border: none !important;
        padding: 2px 5px !important;
    }

    /* Signature lines: add horizontal line for Class Incharge & Principal */
    .signature_div {
        border-top: 1px solid #000 !important;
        margin-top: 20px !important;
        padding-top: 5px !important;
        text-align: center;
    }

    .principal_signature_template1 {
        border-top: 1px solid #000 !important;
        padding-top: 5px !important;
        margin-top: 20px !important;
        text-align: center;
    }

    /* Force default tbody colors for printing */
    .table1_template1 tbody tr:nth-child(even) td,
    .evaluation_table tbody tr:nth-child(even) td,
    .table1_template1 tbody tr:nth-child(odd) td,
    .evaluation_table tbody tr:nth-child(odd) td,
    .table1_template1 tbody tr:hover td,
    .evaluation_table tbody tr:hover td {
        background: none !important;
        color: #000 !important;
    }

    /* Inputs */
    #template_table_edit input {
        border: none;
        background: transparent;
        width: auto;
        color: #000 !important;
    }
    #template_table_edit .head {
        background-color: transparent !important;
        color: white !important;
        font-weight: 600;
        text-transform: uppercase;
        text-align: center;
    }
    .evaluation_table th, .evaluation_table tr:first-child td, .subject-header{
        background-color: transparent !important;
        color: black !important;
    }

    /* Table edit headers */
    #template_table_edit th {
        background: none;
        /*color: #000 !important;*/
    }
    #template_table_edit th, td {
        padding: 3px 6px;
}
    .info {
    border: 1px solid black;
    width:auto;
    margin: 5px auto;
}
label{
    margin-top:20px !important;
}
#template_table_edit input[type="number"], #template_table_edit input[type="text"], #template_table_edit input[type="file"] {
    border: 1px solid black;
}
.sign .student_info_template1{
    border-top:0.5px solid black;
}
}

