/* Progress board — loaded separately while SCSS build is unavailable */

.subject-board-column {
  min-height: 12rem;
  overflow: hidden;
  border-width: 2px;
  border-style: solid;
}

.subject-board-column-header {
  margin: -1rem -1rem 1rem;
  padding: 0.85rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .subject-board-column-header {
    margin: -1.5rem -1.5rem 1.25rem;
    padding: 1rem 1.25rem;
  }
}

.subject-board-column-header h2 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
}

.subject-board-column-not_set {
  background: #f8fafc;
  border-color: rgba(71, 85, 105, 0.4);
}

.subject-board-column-not_set .subject-board-column-header {
  background: #334155;
  color: #fff;
}

.subject-board-column-in_progress {
  background: #eef4ff;
  border-color: rgba(37, 99, 235, 0.45);
}

.subject-board-column-in_progress .subject-board-column-header {
  background: #2563eb;
  color: #fff;
}

.subject-board-column-complete {
  background: #edf6e4;
  border-color: rgba(122, 154, 58, 0.55);
}

.subject-board-column-complete .subject-board-column-header {
  background: #7a9a3a;
  color: #fff;
}

.subject-board-tree {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.subject-board-item {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.65rem;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.subject-board-item-header {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.subject-board-item-number {
  flex: 0 0 auto;
  min-width: 2.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  line-height: 1.4;
  padding-top: 0.1rem;
}

.subject-board-item-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.subject-board-item-depth-2 {
  margin-left: 0.65rem;
}

.subject-board-item-depth-3 {
  margin-left: 1.3rem;
}

.subject-board-item-actions .subject-index-progress-form {
  display: block;
  width: 100%;
  margin: 0;
}

.subject-board-item-actions .subject-index-progress-select {
  display: block;
  width: 100% !important;
  min-width: 0;
  max-width: none;
  font-size: 0.875rem;
  border-color: rgba(15, 23, 42, 0.15);
  background-color: #fff;
}

.subject-item-progress-dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.2;
  color: #94a3b8;
}

.subject-item-progress-date {
  white-space: nowrap;
}

.subject-item-progress-sep {
  color: #cbd5e1;
  user-select: none;
}

.subject-index-progress-dates-row {
  margin-top: -0.15rem;
}

.subject-index-progress-dates-row .subject-item-progress-dates {
  margin-top: 0;
}

.subject-board-column-in_progress .subject-item-progress-dates {
  color: #64748b;
}

.subject-board-column-in_progress .subject-item-progress-date:first-child {
  color: #3b82f6;
}

.subject-board-column-complete .subject-item-progress-dates {
  color: #64748b;
}

.subject-board-column-complete .subject-item-progress-date:last-child {
  color: #65a30d;
}

.subject-board-column-not_set .subject-board-item {
  border-left: 3px solid #64748b;
}

.subject-board-column-in_progress .subject-board-item {
  border-left: 3px solid #2563eb;
}

.subject-board-column-complete .subject-board-item {
  border-left: 3px solid #7a9a3a;
}

.subject-board-column-in_progress .subject-board-item-name {
  color: #1e3a8a;
}

.subject-board-column-complete .subject-board-item-name {
  color: #365314;
}

.subject-board-column-not_set .subject-board-item-name {
  color: #334155;
}

.student-monthly-report-subject + .student-monthly-report-subject {
  margin-top: 0;
}

.student-monthly-report-topic {
  padding-bottom: 0.5rem;
}

.student-monthly-report-review-table {
  max-width: 42rem;
}

.student-monthly-report-subject .subject-review-levels-table {
  background: #fff;
}

.student-monthly-report-subject .subject-review-levels-stage-col {
  width: 10rem;
  white-space: nowrap;
}

.student-monthly-report-subject .subject-review-levels-depth-col {
  width: 6rem;
  white-space: nowrap;
}

.student-monthly-report-subject .subject-review-levels-label-col {
  width: 100%;
}

.student-monthly-report-subject-summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
}

.student-monthly-report-subject-summary::-webkit-details-marker {
  display: none;
}

.student-monthly-report-subject-summary::before {
  content: "+";
  flex: 0 0 auto;
  width: 1.25rem;
  font-weight: 600;
  color: #64748b;
}

.student-monthly-report-subject[open] .student-monthly-report-subject-summary::before {
  content: "−";
}

.student-monthly-report-subject-name {
  flex: 1 1 auto;
}

.student-dashboard-eyebrow {
  color: #64748b;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.student-dashboard-badge {
  background: rgba(84, 110, 53, 0.12);
  color: #3f5228;
  font-weight: 500;
}

.student-dashboard-badge-outline {
  background: transparent;
  border: 1px solid rgba(100, 116, 139, 0.25);
  color: #64748b;
  font-weight: 500;
}

.student-dashboard-stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1e293b;
}

.student-dashboard-recent-item + .student-dashboard-recent-item,
.student-dashboard-subject-item + .student-dashboard-subject-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(100, 116, 139, 0.15);
}

.student-dashboard-recent-meta {
  margin-top: 0.25rem;
  padding-left: 2.5rem;
}

.student-dashboard-subject-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.subject-level-two-panel,
.subject-level-three-panel {
  border-left: 1px solid rgba(100, 116, 139, 0.18);
  padding-left: 0.5rem;
}

.student-absence-calendar-month {
  font-weight: 600;
  color: #334155;
  text-align: center;
  flex: 1 1 auto;
}

.student-absence-calendar-nav {
  width: 2rem;
  height: 2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.student-absence-calendar-board {
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
}

.student-absence-calendar-weekdays,
.student-absence-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.student-absence-calendar-weekday {
  padding: 0.45rem 0.25rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: rgba(241, 245, 249, 0.9);
  border-bottom: 1px solid rgba(100, 116, 139, 0.12);
}

.student-absence-calendar-day {
  aspect-ratio: 1;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(100, 116, 139, 0.08);
  border-bottom: 1px solid rgba(100, 116, 139, 0.08);
  background: rgba(248, 250, 252, 0.9);
}

.student-absence-calendar-day:nth-child(7n) {
  border-right: 0;
}

.student-absence-calendar-day.is-outside {
  opacity: 0.45;
}

.student-absence-calendar-day.is-today:not(.is-absent) {
  box-shadow: inset 0 0 0 2px rgba(84, 110, 53, 0.45);
}

.student-absence-calendar-day.is-absent {
  background: #dc3545;
  color: #fff;
}

.student-absence-calendar-day.is-absent.is-today {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.student-absence-calendar-day-number {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
}

.student-absence-calendar-legend {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.student-absence-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.student-absence-calendar-legend-swatch {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 0.2rem;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.student-absence-calendar-legend-swatch.is-absent {
  background: #dc3545;
  border-color: #dc3545;
}
