@charset "UTF-8";
.btn.btn-primary {
  background-color: #243C77;
  border-color: #243C77;
  color: #FFFFFF;
}
.btn.btn-primary:hover, .btn.btn-primary:active, .btn.btn-primary:focus {
  background-color: #FDDA1C !important;
  border-color: #FDDA1C !important;
  color: #243C77 !important;
}
.btn.btn-secondary {
  background-color: #FDDA1C;
  border-color: #FDDA1C;
  color: rgba(0, 0, 0, 0.6);
}
.btn.btn-secondary:hover, .btn.btn-secondary:active, .btn.btn-secondary:focus {
  background-color: #FDDA1C !important;
  border-color: #FDDA1C !important;
  color: #000000 !important;
}

.sorting,
.sorting_asc,
.sorting_desc,
.sorting_asc_disabled,
.sorting_desc_disabled {
  cursor: pointer;
  *cursor: hand;
  background-repeat: no-repeat;
  background-position: center right;
}

.sorting {
  background-image: url(https://datatables.net/media/images/sort_both.png);
}

.sorting_asc {
  background-image: url(https://datatables.net/media/images/sort_asc.png);
}

.sorting_desc {
  background-image: url(https://datatables.net/media/images/sort_desc.png);
}

.sorting_asc_disabled {
  background-image: url(https://datatables.net/media/images/sort_asc_disabled.png);
}

.sorting_desc_disabled {
  background-image: url(https://datatables.net/media/images/sort_desc_disabled.png);
}

.dataTables_paginate .pagination {
  float: right;
}

.dataTables_length label, .dataTables_filter label {
  display: inline-flex;
}

.main-sidebar.sidebar-dark-primary {
  background: #243C77;
}
.main-sidebar .brand-link {
  text-align: center;
}
.main-sidebar .brand-link .brand-image {
  display: none;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
  background-color: #FDDA1C;
  color: #262626;
}

.sidebar-collapse .main-sidebar .brand-link .brand-image {
  max-height: 40px;
  margin: 0;
  float: none;
  position: relative;
  display: inline-block;
}
.sidebar-collapse .main-sidebar .brand-link .brand-text {
  display: none !important;
}

.main-footer {
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
}

.card .card-header .card-tools .fas.fa-chevron-down {
  transition: all 0.3s;
}

.card.collapsed-card .card-header .card-tools .fas.fa-chevron-down {
  transform: rotate(180deg);
}

.widget-user-header {
  position: relative;
}
.widget-user-header h3, .widget-user-header h5 {
  position: relative;
  z-index: 10;
}
.widget-user-header:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 5;
  background: linear-gradient(0deg, rgba(2, 0, 36, 0.3) 0%, rgba(36, 60, 119, 0.8) 35%, rgba(36, 60, 119, 0.97) 100%);
}

.judgifyEvent-create-form__thumbnail-placeholder {
  position: relative;
  width: 200px;
  height: 200px;
  padding-top: 50px;
  display: inline-block;
  background: #f6f6f6;
  border: 2px dashed #CCC;
  color: #CCC;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
}
.judgifyEvent-create-form__thumbnail-placeholder i {
  font-size: 80px;
  width: 100%;
}
.judgifyEvent-create-form__thumbnail-placeholder:hover {
  background: #EDEDED;
  color: #ABABAB;
}
.judgifyEvent-create-form__thumbnail-input, .judgifyEvent-create-form__thumbnail-change-button {
  display: none;
}
.judgifyEvent-create-form__thumbnail {
  position: relative;
  width: 200px;
  max-height: 200px;
  overflow: hidden;
  text-align: center;
  background: #f6f6f6;
  border: 1px solid #CCC;
  display: none;
}
.judgifyEvent-create-form__thumbnail img {
  max-width: 100%;
}

.judgifyEvent-list .event-image {
  width: 200px;
  height: 200px;
  overflow: hidden;
  float: left;
  margin-right: 15px;
}
.judgifyEvent-list .event-image img {
  max-width: 100%;
}
.judgifyEvent-list .event-image .noImage {
  width: 200px;
  height: 200px;
  background: #ededed;
  color: #CCC;
  font-size: 120px;
  text-align: center;
  padding-top: 15px;
}

/* Filter form */
#filter-form .big-board-grid {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 12px;
}

#filter-form .big-board-grid td {
  border: 1px solid #ccc;
  padding: 5px 8px;
  vertical-align: middle;
}

#filter-form .bb-label {
  font-weight: 600;
  background: #f0f0f0;
  white-space: nowrap;
  width: 1%;
}

#filter-form .bb-control {
  background: #fff;
  padding: 4px 6px;
  vertical-align: top;
}

#filter-form .bb-control select,
#filter-form .bb-control input[type=text] {
  width: 100%;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  border: 1px solid #ccc;
  background: #fff;
  padding: 2px 4px;
  color: #222;
}

#filter-form .bb-control select[multiple] {
  height: 58px;
  resize: none;
}

#filter-form .bb-control select:not([multiple]) {
  height: 22px;
}

#filter-form .bb-control input[type=text] {
  height: 22px;
}

#filter-form .bb-hint-row td {
  background: #f0f0f0;
  font-size: 11px;
  color: #999;
  padding: 3px 8px;
  border: 1px solid #ccc;
}

#filter-form .bb-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 0 4px;
  flex-wrap: wrap;
}

#filter-form .bb-btn {
  padding: 4px 12px;
  border: 1px solid #999;
  background: #fff;
  border-radius: 3px;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  cursor: pointer;
}

#filter-form .bb-btn:hover {
  background: #f5f5f5;
}

#filter-form .bb-btn-primary {
  font-weight: 600;
  border-color: #777;
}

#filter-form .bb-spacer {
  flex: 1;
}

#filter-form .date-input-wrap {
  display: flex;
  gap: 2px;
  align-items: center;
}

#filter-form .date-input-wrap input {
  flex: 1;
}

#filter-form .date-input-wrap .input-group-text {
  padding: 1px 6px;
  font-size: 11px;
  border: 1px solid #ccc;
  background: #f0f0f0;
  cursor: pointer;
  height: 22px;
  display: flex;
  align-items: center;
}

/* Class results */
.bb-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
}

.bb-results-table th {
  background: #f0f0f0;
  font-weight: 600;
  padding: 5px 8px;
  text-align: left;
  border: 1px solid #ccc;
  white-space: nowrap;
}

.bb-results-table td {
  padding: 4px 8px;
  border: 1px solid #ccc;
  white-space: nowrap;
}

.bb-results-table tbody tr:hover td {
  filter: brightness(0.96);
}

.bb-results-count {
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  margin-bottom: 6px;
}

.bb-results-table .bb-open-btn {
  padding: 2px 10px;
  border: 1px solid #999;
  background: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-family: "Segoe UI", sans-serif;
  cursor: pointer;
}

.bb-results-table .bb-open-btn:hover {
  background: #f5f5f5;
}

.bb-results-table td.bb-notes-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

#bb-results th.bb-sortable {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

#bb-results th.bb-sortable:hover {
  background: #e0e0e0;
}

#bb-results th.sort-asc::after {
  content: " ▲";
  font-size: 0.75em;
}

#bb-results th.sort-desc::after {
  content: " ▼";
  font-size: 0.75em;
}

/* Class details */
.class-details {
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  padding: 16px;
}

.class-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.class-details-id {
  font-weight: 700;
}

.class-details-name {
  font-weight: 600;
  color: #333;
}

.class-details-header-actions {
  display: flex;
  gap: 6px;
}

.class-details-btn-outline {
  padding: 4px 12px;
  border: 1px solid #999;
  background: #fff;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
}

.class-details-btn-outline:hover {
  background: #f5f5f5;
}

.class-details-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  font-size: 12px;
}

.class-details-detail-table td {
  border: 1px solid #ccc;
  padding: 5px 8px;
}

.class-details-detail-table td.class-details-label {
  font-weight: 600;
  background: #f0f0f0;
  white-space: nowrap;
}

.class-details-detail-table td.class-details-hint {
  color: #999;
  font-size: 11px;
}

.class-details-recalc {
  font-size: 11px;
  color: #555;
  cursor: pointer;
  margin-left: 4px;
  text-decoration: underline;
}

.class-details-roster-link-row {
  margin-bottom: 6px;
}

.class-details-roster-link {
  font-size: 12px;
  color: #333;
}

.class-details-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.class-details-roster-table th {
  background: #f0f0f0;
  font-weight: 600;
  padding: 5px 8px;
  text-align: left;
  border: 1px solid #ccc;
}

.class-details-roster-table td {
  padding: 5px 8px;
  border: 1px solid #ccc;
}

.class-details-roster-table tr:hover td {
  filter: brightness(0.96);
}

.class-details-roster-table td.class-details-notes-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.class-details-row-teacher td {
  background: #ffffff;
}

.class-details-row-enrolled td {
  background: #e6f4ea;
}

.class-details-row-waitlist td {
  background: #fff3e0;
}

.class-details-row-dropped td {
  background: #f0f0f0;
  color: #888;
}

/* Payroll table */
.class-details-teacher-payroll-header {
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0 6px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.class-details-payroll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.class-details-payroll-table th {
  background: #f0f0f0;
  font-weight: 600;
  padding: 5px 8px;
  text-align: left;
  border: 1px solid #ccc;
}

.class-details-payroll-table td {
  padding: 5px 8px;
  border: 1px solid #ccc;
}

.class-details-payroll-table tr:hover td {
  filter: brightness(0.96);
}

/* Teacher info panel */
.class-details-teacher-info-panel {
  padding: 16px 0;
}

.class-details-teacher-info-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.class-details-teacher-info-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.class-details-teacher-info-photo {
  flex-shrink: 0;
  width: 100px;
  border-radius: 4px;
}

.class-details-teacher-info-bio-text {
  font-size: 13px;
  line-height: 1.5;
  color: #444;
}

.class-details-teacher-info-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

/* Add Substitute modal */
.class-details-teacher-info-add-substitute-dialog {
  max-width: 380px;
}

.class-details-teacher-info-add-substitute-modal {
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  color: #222;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.class-details-teacher-info-add-substitute-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px;
  border-bottom: 1px solid #eee;
}

.class-details-teacher-info-add-substitute-title {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.class-details-teacher-info-add-substitute-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
  padding: 0;
}
.class-details-teacher-info-add-substitute-close:hover {
  color: #555;
}

.class-details-teacher-info-add-substitute-errors {
  margin: 12px 18px 0;
  padding: 8px 12px;
  background: #fff5f5;
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  font-size: 12px;
  color: #c0392b;
  line-height: 1.6;
}

.class-details-teacher-info-add-substitute-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.class-details-teacher-info-add-substitute-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.class-details-teacher-info-add-substitute-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #888;
}

.class-details-teacher-info-add-substitute-select {
  height: 28px;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  padding: 0 6px;
  color: #222;
  width: 100%;
}
.class-details-teacher-info-add-substitute-select:focus {
  outline: none;
  border-color: #aaa;
}

.class-details-teacher-info-add-substitute-sessions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.class-details-teacher-info-add-substitute-session-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: normal;
  color: #333;
  cursor: pointer;
  margin: 0;
}
.class-details-teacher-info-add-substitute-session-row input[type=checkbox] {
  margin: 0;
  cursor: pointer;
}
.class-details-teacher-info-add-substitute-session-row:hover span {
  color: #000;
}

.class-details-teacher-info-add-substitute-rate-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.class-details-teacher-info-add-substitute-rate-input,
.class-details-teacher-info-add-substitute-bonus-input {
  height: 28px;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  padding: 0 6px;
  color: #222;
}
.class-details-teacher-info-add-substitute-rate-input:focus,
.class-details-teacher-info-add-substitute-bonus-input:focus {
  outline: none;
  border-color: #aaa;
}

.class-details-teacher-info-add-substitute-rate-input {
  width: 64px;
}

.class-details-teacher-info-add-substitute-bonus-input {
  width: 60px;
}

.class-details-teacher-info-add-substitute-unit-select {
  width: auto;
}

.class-details-teacher-info-add-substitute-muted {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.class-details-teacher-info-add-substitute-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #eee;
}

.class-details-teacher-info-add-substitute-btn-cancel {
  padding: 5px 14px;
  background: none;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  color: #666;
  cursor: pointer;
}
.class-details-teacher-info-add-substitute-btn-cancel:hover {
  background: #f5f5f5;
  color: #222;
}

.class-details-teacher-info-add-substitute-btn-save {
  padding: 5px 18px;
  background: #3a5fc8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  cursor: pointer;
}
.class-details-teacher-info-add-substitute-btn-save:hover {
  background: #2f50b0;
}

/* Email list panel */
.bb-email-panel {
  font-family: "Segoe UI", sans-serif;
  font-size: 12px;
  background: #fff;
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 2px;
}

.bb-email-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 8px;
  background: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
}

.bb-email-panel-title {
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.bb-email-copy-btn {
  padding: 2px 10px;
  font-size: 11px;
  font-family: "Segoe UI", sans-serif;
  border: 1px solid #aaa;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.bb-email-copy-btn:hover {
  background: #f0f0f0;
}

.bb-email-classes-row {
  padding: 5px 8px;
  font-size: 11px;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
  line-height: 1.5;
  word-break: break-word;
}

.bb-email-classes-label {
  font-weight: 600;
  margin-right: 4px;
  color: #444;
}

.bb-email-classes-value {
  color: #222;
}

.bb-email-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.bb-email-table thead th {
  background: #f0f0f0;
  font-weight: 600;
  padding: 4px 8px;
  text-align: left;
  border-bottom: 2px solid #c0c0c0;
  border-top: none;
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #444;
}

.bb-email-table tbody tr {
  border-bottom: 1px solid #e8e8e8;
}
.bb-email-table tbody tr:last-child {
  border-bottom: none;
}
.bb-email-table tbody tr:hover td {
  background: #f5f8ff;
}

.bb-email-table tbody td {
  padding: 4px 8px;
  color: #222;
}

.bb-email-num {
  width: 32px;
  color: #999;
  font-size: 11px;
  text-align: right;
  padding-right: 12px !important;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.bb-email-no-results {
  padding: 10px 8px;
  font-size: 12px;
  color: #666;
}

/* Switch mode */
#bb-mode-hint-emails {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bb-mode-inline-label {
  font-weight: 600;
  font-size: 11px;
  font-family: "Segoe UI", sans-serif;
  white-space: nowrap;
  background: #e8e8e8;
  border: 1px solid #ccc;
  padding: 1px 6px;
  height: 22px;
  display: flex;
  align-items: center;
}

.bb-mode-inline-select {
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  border: 1px solid #ccc;
  background: #fff;
  padding: 2px 4px;
  height: 22px;
  color: #222;
}

.bb-mode-toggle {
  display: flex;
  gap: 0;
  margin-bottom: 6px;
}

.bb-mode-option {
  display: flex;
  align-items: center;
  padding: 4px 14px;
  font-size: 12px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  border: 1px solid #999;
  background: #fff;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  margin-right: -1px;
}
.bb-mode-option:first-child {
  border-radius: 3px 0 0 3px;
}
.bb-mode-option:last-child {
  border-radius: 0 3px 3px 0;
  margin-right: 0;
}
.bb-mode-option input[type=radio] {
  display: none;
}
.bb-mode-option.bb-mode-active {
  background: #e8e8e8;
  border-color: #555;
  z-index: 1;
  position: relative;
}
.bb-mode-option:hover:not(.bb-mode-active) {
  background: #f5f5f5;
}

.class_cancelled {
  background-color: black !important;
  color: white !important;
}

.class_full {
  background-color: red !important;
  color: white !important;
}

.class_almost_full {
  background-color: #f2f1d4 !important;
}
