@charset "utf-8";
/* CSS Document – Kindergarten Modern Theme (Flat & Modern School Look) */

/* === 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: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 8px !important;
        page-break-inside: avoid;
        break-inside: avoid;
        box-sizing: border-box;
    }

    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;
    }

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

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

/* === Main Container – Modern School Border === */
.container_marksheet_template1 {
    width: 97%;
    min-height: 94vh;
    page-break-after: always;
    border: 8px double #a3d5ff; /* brighter blue border */
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    border-radius: 20px;
    margin: 1% auto;
    font-family: Calibri, Arial, sans-serif;
    overflow: hidden;
    position: relative;
    padding: 10px;
}

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

.heading_template1 {
    font-size: 20pt;
    text-transform: uppercase;
    font-weight: bold;
    color: #1a5276; /* deep pastel blue */
    page-break-inside: avoid;
    padding-bottom: 4px;
}

.heading_report_template1 {
    font-size: 26pt;
    font-weight: bold;
    margin-top: 10px;
    /*font-family: "Monotype Corsiva", cursive;*/
    color: #2980b9;
    text-shadow: 1px 1px #d6eaf8;
    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: linear-gradient(135deg,#eaf6ff 0%,#d4ebff 100%);
    /*padding: 8px;*/
    /*border-radius: 12px;*/
    border: 1px solid black;
    margin-right:10px;
}

.student_info_table_template1 td {
    padding-right: 6px;
    padding-bottom: 4px;
}

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

/* === Modern Flat Tables === */
.evaluation_table,
.template_table_edit {
    border-collapse: collapse;
    width: 100%;
    margin: 10px 0;
    font-size: 10.5pt;
    background: #ffffff;
    border: 2px solid #b4d9ff;
    /*border-radius: 10px;*/
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Table Headers */
.evaluation_table th,
.template_table_edit th {
    padding: 6px 8px;
    border-bottom: 2px solid #cce0ff;
    background: linear-gradient(135deg, #dff6ff 0%, #b3e0ff 100%);
    color: #2c3e50;
    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 #eee;
    background: #ffffff;
    color: #34495e;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Last Row Edge */
.evaluation_table tr:last-child td,
.template_table_edit tr:last-child td {
    border-bottom: none;
}

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

/* Inputs in Table Cells */
.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 #ccc;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
    font-size: 10pt;
    color: #333;
    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: #5dade2;
    background: #fefefe;
    box-shadow: 0 0 6px rgba(93,173,226,0.5);
    outline: none;
}

/* === Sections – Flat Panels === */
.section {
    padding: 15px;
    margin: 10px auto;
    max-width: 100%;
    background: linear-gradient(135deg,#f9fbfd 0%,#f0f8ff 100%);
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    page-break-inside: avoid;
    border-left: 6px solid #a3d5ff;
}

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

/* Buttons – Minimal Modern Look */
button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
button:hover {
    background: #357ab8;
    transform: translateY(-2px);
}

/* Messages – Flat Colors */
#error_div {
    background-color: #fdecea;
    color: #c2185b;
    border: 1px solid #f5a3a3;
}
#displayadd_homework_success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #b3f0b3;
}

/* Footer */
.date_footer {
    margin-top: 20px;
    font-size: 12px;
    color: #555;
    text-align: left;
    page-break-inside: avoid;
}

/* === Print Enhancements === */
@media print {
    .page-break-before { page-break-before: always; }
    .page-break-after  { page-break-after: always; }
    h1,h2,h3,h4,h5,h6 { page-break-after: avoid; page-break-inside: avoid; }
    img { max-width: 100% !important; height: auto !important; }
    .section { padding: 12px !important; margin: 5px 0 !important; }
    #template_table_edit{
            border-collapse: collapse;
    }
      @page {
    margin: 30px;
    size: A4;
}
}
