@charset "utf-8";
/* CSS Document */

.collapsible {
  color: #174f9b;
  cursor: pointer;
  width: 100%;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  text-align: left;
  outline: none;
  font-size: 15px;
}

.collapsible.active,
.collapsible:hover {
  background-color: #f2f6fb;
}

.collapsible_content {
  padding: 8px 12px;
  display: none;
  overflow: hidden;
  background-color: #f9f9f9;
  border: 1px solid #e4e4e4;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.myButton,
.myButton_med,
.myButton_small {
  box-shadow: inset 0 1px 0 0 #fff6af;
  background: linear-gradient(to bottom, #ffec64 5%, #ffab23 100%);
  background-color: #ffec64;
  border-radius: 6px;
  border: 1px solid #ffaa22;
  display: inline-block;
  cursor: pointer;
  color: #333333;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 1px 0 #ffee66;
}

.myButton {
  font-size: 14px;
  padding: 6px 16px;
}

.myButton_med {
  font-size: 12px;
  padding: 4px 8px;
}

.myButton_small {
  font-size: 11px;
  padding: 3px 7px;
}

.myButton:hover,
.myButton_med:hover,
.myButton_small:hover {
  background: linear-gradient(to bottom, #ffab23 5%, #ffec64 100%);
  background-color: #ffab23;
  color: #333333;
}

.myButton:active,
.myButton_med:active,
.myButton_small:active {
  position: relative;
  top: 1px;
}

.modal_menu {
  align-content: center;
  height: 50px;
}

.ui-autocomplete {
  z-index: 9999999 !important;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-column-gap: 5px;
}

.grid-item {
  align-content: center;
  align-items: center;
  text-align: center;
}

body {
  padding-top: 50px;
  height: 100%;
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.35;
}

.main-dashboard {
  width: 100%;
}

.main-dashboard,
.main-dashboard table,
.main-dashboard th,
.main-dashboard td,
.main-dashboard .card-subtitle,
.main-dashboard .display-4 {
  font-family: "Roboto Condensed", Arial, sans-serif !important;
}

.main-dashboard .display-4,
.main-dashboard .card-subtitle.mbr-fonts-style.mb-3.display-4 {
  font-size: 0.98rem !important;
  line-height: 1.3 !important;
}

.main-dashboard table th,
.main-dashboard table td {
  font-size: 0.98rem;
  vertical-align: middle;
}

.main-dashboard h3,
.main-dashboard h4,
.main-dashboard .modal-title {
  font-family: "Roboto Condensed", Arial, sans-serif !important;
  font-size: 1.25rem;
  line-height: 1.25;
}

.main-dashboard .row.justify-content-center {
  margin-left: 0;
  margin-right: 0;
}

.main-dashboard .item.features-image {
  float: none;
}

.main-dashboard .item.features-image .item-wrapper {
  margin: 0 auto;
}

/* Use available viewport height instead of fixed 500px panel caps. */
#student_info,
#myDiv {
  max-height: calc(100vh - 170px) !important;
}

.box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.box select {
  background-color: #0563af;
  color: white;
  padding: 12px;
  width: 250px;
  border: none;
  font-size: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  -webkit-appearance: button;
  appearance: button;
  outline: none;
}

.box::before {
  content: "\f13a";
  font-family: FontAwesome;
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 100%;
  text-align: center;
  font-size: 28px;
  line-height: 45px;
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.box:hover::before {
  color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.2);
}

.box select option {
  padding: 30px;
}

.enlarge-onhover:hover {
  transform: scale(10);
  vertical-align: center;
  z-index: 0;
  display: block;
  visibility: visible;
  left: 70%;
  top: 25%;
  position: absolute;
}

.attendance-heading-filter {
  width: 100%;
  min-width: 90px;
  font-size: 11px;
  border: 1px solid #b7c4d6;
  border-radius: 4px;
  padding: 2px 4px;
  background: #fff;
  color: #1f2a36;
}

.attendance-clear-filter {
  margin-top: 2px;
  font-size: 10px;
  padding: 1px 8px;
  border: 1px solid #6f8fb6;
  border-radius: 3px;
  background: #eef5ff;
  color: #2f4f79;
  cursor: pointer;
}

.attendance-clear-filter:hover {
  background: #ddeaff;
}

.attendance-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin: 0 0 8px 0;
  padding: 6px 8px;
  border: 1px solid #d8e2f0;
  border-radius: 6px;
  background: #f6f9ff;
}

.attendance-filter-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 130px;
}

.attendance-filter-item label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #2d3f57;
}

.attendance-filter-item-action {
  min-width: auto;
}

.attendance-filter-item-action .attendance-clear-filter {
  height: 28px;
  margin: 0;
  padding: 0 10px;
}

/* Keep attendance filters visible even when other CSS overrides table/select behavior. */
#myDiv thead {
  display: table-header-group !important;
}

#myDiv #attendanceDisciplineFilter,
#myDiv #attendanceActivityFilter,
#myDiv #attendanceClearFilters,
#myDiv #attendanceClearFilter,
#myDiv .attendance-heading-filter,
#myDiv .attendance-clear-filter {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.attendance-photo-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.attendance-photo-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #d0d0d0;
}

.attendance-photo-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.74);
  z-index: 1065;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.attendance-photo-dialog {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  background: #111;
  border-radius: 6px;
  padding: 10px;
}

#attendancePhotoLarge {
  display: block;
  max-width: 88vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  background: #fff;
}

.attendance-photo-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #222;
  cursor: pointer;
  font-weight: bold;
  line-height: 1;
}

.student-detail-modal .modal-body {
  max-height: 78vh;
  overflow: auto;
}

.student-qr-modal .modal-body {
  padding: 8px;
}

.academy-kpi-card {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.academy-kpi-card:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

#academyKpiMembership table th,
#academyKpiMembership table td {
  font-size: 13px;
}

/* Message Centre modal: compact typography and tighter vertical rhythm */
#myModal .modal-header {
  padding: 0.45rem 0.65rem;
}

#myModal .modal-title {
  font-size: 1rem;
  line-height: 1.2;
}

#myModal .modal-body {
  padding: 0.55rem 0.65rem;
}

#myModal .message-centre-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.35rem;
  height: auto;
}

#myModal .message-centre-menu #message_template_select {
  width: min(100%, 320px);
  font-size: 0.92rem;
  padding: 0.22rem 0.45rem;
}

#myModal .message-centre-content {
  padding-top: 0;
}

#myModal .message-centre-comms {
  height: auto !important;
}

#myModal .message-centre-table {
  width: 100%;
  margin: 0 auto;
  table-layout: fixed;
}

#myModal .message-centre-table tr td {
  padding: 0.28rem 0;
  vertical-align: top;
}

#myModal .message-centre-label {
  width: 38%;
  font-size: 0.92rem;
  line-height: 1.2;
  color: #2d3a49;
}

#myModal .message-centre-label strong {
  font-size: 0.96rem;
  line-height: 1.2;
}

#myModal .message-centre-hint {
  margin-top: 0.08rem;
  font-size: 0.82rem;
  color: #606d7d;
}

#myModal .message-centre-field {
  width: 62%;
}

#myModal .message-centre-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

#myModal .message-centre-radio-group label {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.2;
}

#myModal #activity_comms input[type="text"],
#myModal #activity_comms textarea {
  width: 100%;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.2;
  padding: 0.28rem 0.4rem;
}

#myModal #activity_comms textarea {
  min-height: 96px;
}

#myModal .modal-footer {
  padding: 0.45rem 0.65rem;
}

#myModal .modal-footer .myButton {
  font-size: 0.9rem;
  padding: 0.3rem 0.58rem;
}

/* Log Activity modal formatting */
#myModal .log-activity-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  justify-content: center;
  align-items: center;
  height: auto;
  margin-bottom: 0.35rem;
}

#myModal .log-activity-content {
  padding-top: 0;
}

#myModal .log-activity-panel {
  height: auto !important;
}

#myModal .log-activity-panel table {
  width: 100%;
  margin: 0 auto;
  table-layout: fixed;
}

#myModal .log-activity-panel td {
  padding: 0.24rem 0.2rem;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.2;
}

#myModal .log-activity-panel .card-subtitle {
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
}

#myModal .log-activity-panel input[type="text"],
#myModal .log-activity-panel input[type="date"],
#myModal .log-activity-panel select,
#myModal .log-activity-panel textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.92rem;
  line-height: 1.25;
  padding: 0.26rem 0.36rem;
}

#myModal .log-activity-panel textarea {
  min-height: 86px;
}

@media (max-width: 1100px) {
  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body {
    padding-top: 36px;
  }

  .collapsible_content {
    padding: 8px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    grid-row-gap: 8px;
  }

  .myButton {
    padding: 6px 12px;
  }

  #myModal .modal-title {
    font-size: 1rem;
  }

  #myModal .modal-body {
    padding: 0.42rem 0.5rem;
  }

  #myModal .message-centre-table tr td {
    padding: 0.2rem 0;
  }

  #myModal .message-centre-label,
  #myModal .message-centre-field {
    display: block;
    width: 100%;
  }

  #myModal .message-centre-label {
    margin-bottom: 0.08rem;
    font-size: 0.88rem;
  }

  #myModal .message-centre-label strong {
    font-size: 0.92rem;
  }

  #myModal .message-centre-hint {
    font-size: 0.8rem;
  }

  #myModal .message-centre-radio-group {
    gap: 0.36rem 0.5rem;
  }

  #myModal .message-centre-radio-group label {
    font-size: 0.84rem;
  }

  #myModal #activity_comms input[type="text"],
  #myModal #activity_comms textarea {
    font-size: 0.9rem;
    padding: 0.22rem 0.32rem;
  }

  #myModal #activity_comms textarea {
    min-height: 88px;
  }

  #myModal .log-activity-menu {
    gap: 0.25rem;
    justify-content: flex-start;
  }

  #myModal .log-activity-menu .myButton_med {
    font-size: 0.82rem;
    padding: 0.2rem 0.4rem;
  }

  #myModal .log-activity-panel table,
  #myModal .log-activity-panel tbody,
  #myModal .log-activity-panel tr,
  #myModal .log-activity-panel td {
    display: block;
    width: 100% !important;
  }

  #myModal .log-activity-panel td {
    padding: 0.16rem 0 !important;
    font-size: 0.84rem;
  }

  #myModal .log-activity-panel .card-subtitle {
    margin-bottom: 0.2rem !important;
    font-size: 0.84rem !important;
  }

  #myModal .log-activity-panel input[type="text"],
  #myModal .log-activity-panel input[type="date"],
  #myModal .log-activity-panel select,
  #myModal .log-activity-panel textarea {
    font-size: 0.88rem;
    padding: 0.22rem 0.32rem;
  }
}

/* Student Form hard fallback (2026): compact and single-line rows */
body .student-form-layout,
body .student-form-layout table,
body .student-form-layout td,
body .student-form-layout th,
body .student-form-layout .display-4,
body .student-form-layout .display-5,
body .student-form-layout .card-subtitle.mbr-fonts-style.mb-3.display-4,
body .student-form-layout label,
body .student-form-layout strong {
  font-size: 0.94rem !important;
  line-height: 1.28 !important;
}

body .student-form-layout h3 {
  font-size: 1.15rem !important;
  line-height: 1.2 !important;
}

body .student-form-layout .student-form-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

body .student-form-layout .student-form-label {
  flex: 0 0 110px !important;
  max-width: 110px !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body .student-form-layout .student-form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body .student-form-layout .student-form-control input[type="text"],
body .student-form-layout .student-form-control input[type="email"],
body .student-form-layout .student-form-control input[type="tel"],
body .student-form-layout .student-form-control input[type="date"],
body .student-form-layout .student-form-control input[type="password"],
body .student-form-layout .student-form-control select,
body .student-form-layout .student-form-control textarea {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 0.94rem !important;
  line-height: 1.25 !important;
  padding: 0.24rem 0.34rem !important;
}

/* Center student image in form photo panel */
.student-photo-panel,
.student-photo-panel #my_camera {
  display: flex;
  justify-content: center;
  align-items: center;
}

.student-photo-panel .student-photo-preview {
  display: block;
  margin: 0 auto;
}
