@charset "utf-8";
/* CSS Document – Kindergarten Modern Theme (Green Theme Only) */

/* === Page Setup & Print Rules === */
@page {
    margin: 0.5in;
    padding: 0px;
    size: A4;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .container_marksheet_template1 {
        width: auto;
        height: auto !important;
        margin: 0 !important;
        padding: 8px !important;
        page-break-inside: avoid;
        break-inside: avoid;
        box-sizing: border-box;
        border: 1px solid black !important;
        border-radius:0;
    }

    html, body {
        height: auto !important;
        margin: 0;
        padding: 0;
        font-size: 12pt;
    }

    .evaluation_table,
    .template_table_edit {
        min-width: 100% !important;
        page-break-inside: avoid;
        break-inside: avoid;
        font-size: 11pt;
    }

    .section {
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none !important;
        margin: 10px 0 !important;
    }

    table {
        page-break-inside: avoid;
        break-inside: avoid;
        box-shadow: none !important;
    }

    .student_info_template1,
    .header_template1,
    .heading_template1 {
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .student_info_template1{
        /*border:1px solid black;*/
        border-collapse:collapse;
    }

    button,
    input[type="button"],
    input[type="submit"] {
        display: none !important;
    }
}

/* === Global Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Main Container === */
.container_marksheet_template1 {
    width: auto;
    min-height: 94vh;
    page-break-after: always;
    border: 1px solid #0b722d; /* solid green border */
    background: #ffffff;
    margin: 20px;
    font-family: Calibri, Arial, sans-serif;
    overflow: hidden;
    position: relative;
    padding: 20px;
}

/* === Header & Headings === */
.header_template1 {
    font-size: 12pt;
    text-transform: capitalize;
    font-family: cambria;
    margin-bottom: 10px;
    page-break-inside: avoid;
    color: #0b722d;
}

.heading_template1 {
    font-size: 20pt;
    text-transform: uppercase;
    font-weight: bold;
    color: #0b722d;
    page-break-inside: avoid;
    padding-bottom: 4px;
}

.heading_report_template1 {
    font-size: 26pt;
    font-weight: bold;
    margin-top: 10px;
    color: #0b722d;
    page-break-inside: avoid;
}

/* === Logo & Student Info === */
.logo_div_img_template1 img {
    width: 73px;
    height: auto;
    border-radius: 12px;
    box-shadow: none;
    background: transparent !important;
    padding: 0;
}

.student_info_template1 {
    width: 40%;
    display: inline-block;
    margin-top: 5px;
    vertical-align: top;
    page-break-inside: avoid;
    background: #ffffff;
    padding: 8px;
    margin-bottom:10px;
}
.student_info_table_template1{
    padding:0;
    margin-right:0;
}
.info .student_info_table_template1{
    border:white;
}

/* === Text Utilities === */
.texttransformupper { text-transform: uppercase; }
.alignleft { text-align: left; }
.margintop20 { margin-top: 20px; }
.margintop50 { margin-top: 50px; }

/* === Tables === */
.evaluation_table,
.template_table_edit {
    border:1px solid black;
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 10.5pt;
    background: #ffffff;
    border: 2px solid #0b722d;
    overflow: hidden;
}

/* Table Headers */
.evaluation_table th,
.template_table_edit th {
    padding: 6px 8px;
    border-bottom: 2px solid #0b722d;
    background: #0b722d;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 0.6px;
}

/* Table Cells */
.evaluation_table td,
.template_table_edit td {
    padding: 6px 8px;
    border-bottom: 1px solid #0b722d;
    background: #ffffff;
    color: #0b722d;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.evaluation_table tr:last-child td,
.template_table_edit tr:last-child td {
    border-bottom: none;
}

/* Hover (Screen Only) */
@media screen {
    .evaluation_table tbody tr:hover,
    .template_table_edit tbody tr:hover {
        background: #e6f4ea;
        transition: background 0.3s ease;
    }
}

/* === Inputs === */
.evaluation_table td input[type="text"],
.evaluation_table td input[type="number"],
.template_table_edit td input[type="text"],
.template_table_edit td input[type="number"] {
    border: 1px solid #0b722d;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
    font-size: 10pt;
    color: #0b722d;
    transition: all 0.3s ease;
}
.evaluation_table td input[type="text"]:focus,
.evaluation_table td input[type="number"]:focus,
.template_table_edit td input[type="text"]:focus,
.template_table_edit td input[type="number"]:focus {
    border-color: #0b722d;
    background: #fefefe;
    box-shadow: 0 0 6px rgba(11,114,45,0.5);
    outline: none;
}

/* === Sections === */
.section {
    padding: 15px;
    margin: 10px auto;
    max-width: 100%;
    background: #ffffff;
    border-radius: 15px;
    page-break-inside: avoid;
    border: 2px solid #0b722d;
}

/* === Generic Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    page-break-inside: avoid;
    border: 2px solid #0b722d;
}
table th, table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #0b722d;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
table th {
    background-color: #0b722d;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    color: #ffffff;
}
table td {
    font-size: 12px;
    line-height: 1.3;
    background: #ffffff;
    color: #0b722d;
}

/* === Buttons === */
button {
    display: inline-block;
    width: auto;
    padding: 10px 20px;
    background: #0b722d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}
button:hover {
    background: #09591f;
    transform: translateY(-2px);
}

/* === Messages === */
#error_div {
    background-color: #ffffff;
    color: #0b722d;
    border: 1px solid #0b722d;
}
#displayadd_homework_success {
    background-color: #ffffff;
    color: #0b722d;
    border: 1px solid #0b722d;
}

/* === Footer === */
.date_footer {
    margin-top: 20px;
    font-size: 12px;
    color: #0b722d;
    text-align: left;
    page-break-inside: avoid;
}
.form-control{
    width: 150px;
    margin-right: 200px;
    padding: 10px;
    border-radius: 10px;
    background:#0b722d;
    color:white;
}

/* === Print Enhancements === */
@media print {
    @page {
        margin: 30px;
        size: A4;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color: #000 !important;
        background: #fff !important;
    }

    .logo_div_img_template1 img,
    .heading_template1 {
        display:none;
    }

    .container_marksheet_template1{
        margin-top:30px;
    }

    /* Print Table Borders Fix */
    table,
    .evaluation_table,
    .template_table_edit,
    .remarks {
        border-collapse: collapse !important;
        width: 100% !important;
        border: 1px solid #000 !important;
    }
.remarks{
    margin-top:40px;
}
    table th, table td,
    .evaluation_table th, .evaluation_table td,
    .template_table_edit th, .template_table_edit td,
    .remarks th, .remarks td {
        border: 1px solid #000 !important;
        padding: 6px !important;
        color: #000 !important;
        background: #fff !important;
    }

    /* Remove conflicting outer border for template_table_edit */
    /*.template_table_edit {*/
    /*    border: none !important;*/
    /*}*/

    .form-control{
        margin-top:15px;
    }
    .form-container{
        padding:10px;
    }

    /*.student_info_template1{*/
    /*    border:none !important;*/
    /*}*/

    /* Headings and titles */
    .heading_report_template1,
    .header_template1 {
        color: #000 !important;
    }

    /* Footer */
    .date_footer {
        color: #000 !important;
    }
}
