@charset "utf-8";

@page {
	margin: 0;
	padding: 0;
	size: auto;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
   MAIN CONTAINER
   =========================== */
 .container_marksheet_template1 {
      width: 97%;
      height: auto;
      page-break-after: always;
      border: double medium #2a6fba;
      margin: 1% auto;
      background: #f9fbff;
      font-family: Calibri, sans-serif;
      font-size: 9pt;
      position: relative;
    }

    .content_container_template1 {
      padding: 10px 2%;
    }

/* ===========================
   HEADER SECTION
   =========================== */
    .header_template1 {
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 8px 0;
    }

    .logo_div_img_template1 img {
      width: 70px;
      height: auto;
      margin-right: 20px;
    }

    .header_institution {
      margin-left: 10px;
      text-align: center;
    }

    .heading_template1 {
      font-size: 20pt;
      text-transform: uppercase;
      font-weight: bold;
      color: #1d3557;
      letter-spacing: 1px;
      margin-bottom: 2px;
    }

    .heading_code_info_template1 {
      font-size: 10pt;
      font-weight: bold;
      color: #666;
    }

    .heading_address_template1, .contact_template1 {
      font-size: 9pt;
      font-weight: bold;
      color: #666;
    }
    
    .header_info_container {
        text-align: center;
        margin: 5px;
    }
    
    .heading_report_template1 {
      font-size: 16pt;
      font-weight: bold;
      color: #2a6fba;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }

    .year_template1 {
      font-size: 12pt;
      font-weight: normal;
      color: #666;
    }

    .head1 {
      font-size: 11pt;
      font-weight: bold;
    }
    
    .head2 {
      font-size: 11pt;
    }

/* ===========================
   LAYOUT BLOCKS
   =========================== */
.container1,
.container4,
.container5 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.container2 {
  width: 60%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.container3 {
  width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
}

.images {
  width: 80px;
  height: 80px;
}

.student_info_template1 {
  width: 38%;
  display: inline-block;
  font-size: 0.9rem;
}


/* ===========================
   TABLE STYLING
   =========================== */
.table,
.table1_template1 {
  width: 90%;
  border-collapse: collapse;
  text-align: center;
  margin: 8px auto;
  font-size: 0.85rem;
}

.table th,
.table td,
.table1_template1 th,
.table1_template1 td {
  border: 1px solid #444;
  padding: 4px;
}

.table th,
.table1_template1 th {
  background-color: #dbeafe;
  font-size: 0.9rem;
  color: #1e3a8a;
  font-weight: bold;
}

.transparent_table {
	border-collapse: collapse;
	max-width: 99%;
	min-width: 60%;
	background: none;
	border: none transparent;
}

.evaluation_table {
	max-width: 90%;
	min-width: 60%;
}

.tablelayout_fixed {
  table-layout: fixed;
  width: 100%;
}

/* ===========================
   TEXT UTILITIES
   =========================== */
.fullstretch {
  width: 100%;
}

.margintop20,
.margintop35,
.margintop50,
.margintop5 {
  margin-top: 12px !important;
}

.fontsize11 {
  font-size: 11pt;
}

.alignleft {
  text-align: left;
}

.alignright {
  text-align: right;
}

.aligncenter {
  text-align: center;
}

.line-height1-4 {
  line-height: 1.4;
}

.congratulate_message {
	font-weight: normal;
	margin-top: 4px;
	margin-bottom: 2px;
	font-size: 12pt;
	font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
/* ===========================
   FOOTER / SIGNATURES
   =========================== */
.principal_signature_template1 {
  text-align: center;
  margin-top: 40px;
}

.signature_div {
  margin-top: 35px;
}

.flexbox-row-center-start,
.flexbox-row-spacearound-start {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
}
.form-control {
  display: block;
  width: 100%;
  max-width: 300px;
  padding: 8px 12px;
  font-size: 11pt;
  line-height: 1.5;
  color: #495057;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin: 8px auto;
}

.form-control:focus {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.mt-2 {
  margin-top: 8px;
}

.form-control.mb-2 {
  margin-bottom: 8px;
}

.form-control.mt-2.mb-2 {
  margin-top: 8px;
  margin-bottom: 8px;
}

.table1_container_template1:last-child {
  margin-top: 20px;
  padding: 15px;
  border-top: 1px dashed #2a6fba;
  text-align: center;
}

.table1_container_template1:last-child label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #1d3557;
  font-size: 11pt;
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* ===========================
   BUTTON (if used)
   =========================== */
#submit_marksheet {
  background-color: #2a6fba;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12pt;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

#submit_marksheet:hover {
  background-color: #1d3557;
}
/* ===========================
   MESSAGE DISPLAY STYLING
   =========================== */
#error_div, #displayadd_homework_success {
  padding: 10px;
  margin: 15px 0;
  border-radius: 4px;
  text-align: center;
}

#error_div {
  background-color: #ffebee;
  border: 1px solid #f44336;
  color: #c62828;
}

#displayadd_homework_success {
  background-color: #e8f5e9;
  border: 1px solid #4caf50;
  color: #2e7d32;
}


@media (max-width: 768px) {
  body, .container_marksheet_template1 {
    font-size: 8.5pt;
  }

  /* Header stacks vertically */
  .header_template1 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .logo_div_img_template1 img {
    max-width: 90px;
    height: auto;
    margin: 0 auto 6px auto;
  }

  .heading_template1 {
    font-size: 16pt;
  }

  .heading_report_template1 {
    font-size: 14pt;
  }

  .student_info_template1 {
    width: 100% !important;
    display: block;
    margin: 5px 0;
    font-size: 0.8rem;
  }

  table, 
  .table, 
  .table1_template1 {
    width: 100% !important;
    font-size: 12px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .flexbox-row-center-start,
  .flexbox-row-spacearound-start {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  body, .container_marksheet_template1 {
    font-size: 8pt;
  }

  .heading_template1 {
    font-size: 14pt;
  }

  .heading_report_template1 {
    font-size: 12pt;
  }

  table, 
  .table, 
  .table1_template1 {
    font-size: 11px;
  }

  .congratulate_message {
    font-size: 10pt;
    text-align: center;
  }
}

/* ===========================
   PRINT OVERRIDES
   =========================== */
@media print {
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    height: 100%;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .container_marksheet_template1 {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 10px !important;
    background: #fff !important;
    page-break-inside: avoid;
    page-break-after: always;
  }

  .header_template1,
  .student_info_template1,
  table,
  .principal_signature_template1 {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .logo_div_img_template1 img {
    width: 65px !important;
    margin: 0 auto 6px auto !important;
  }
}
