:root {
  --brand: #799237;
  --brand-dark: #506826;
  --gold: #c1a530;
  --gold-deep: #9d8216;
  --ink: #173c35;
  --warm: #f8f7f2;
  --muted: #6d7772;
  --line: #e1e4db;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: clip;
  max-width: 100%;
  position: relative;
  min-height: 100%;
}

body,
.app-shell {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  color: var(--ink);
  font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 6% 2%, rgba(193, 165, 48, 0.12), transparent 22rem),
    radial-gradient(circle at 94% 7%, rgba(121, 146, 55, 0.12), transparent 26rem),
    #f2f3ed;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(121, 146, 55, 0.35);
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  --bs-btn-disabled-bg: #a9b77e;
  --bs-btn-disabled-border-color: #a9b77e;
}

.btn-outline-primary {
  --bs-btn-color: var(--brand-dark);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
}

.app-nav {
  min-height: 88px;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ecede7;
}

.app-nav .navbar-toggler {
  border-color: var(--line);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;
  color: inherit;
}

.brand-mark img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
}

.brand-mark__text strong,
.brand-mark__text small {
  display: block;
}

.brand-mark__text strong {
  max-width: 220px;
  color: var(--brand-dark);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 800;
}

.brand-mark__text small {
  margin-top: 3px;
  color: #8b9188;
  font-size: 0.72rem;
}

.app-nav .nav-link {
  color: #7c8580;
  border-radius: 10px;
  padding: 10px 13px;
}

.app-nav .nav-link:hover,
.app-nav .nav-link.active {
  color: var(--brand-dark);
  background: #f0f3e7;
  font-weight: 800;
}

.teacher-chip {
  margin-inline: 8px;
  padding: 5px 11px 5px 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  min-height: 44px;
}

.teacher-chip i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.app-main {
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.cal-page {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cal-page__new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0 0 1rem;
  align-self: flex-start;
  padding-inline: 1.15rem;
}

.cal-page__empty {
  margin: 0;
  color: var(--muted);
}

.cal-item {
  background: #fff;
}

.cal-item__date {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.cal-item__hijri {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.cal-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.cal-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(121, 146, 55, 0.12);
  color: var(--brand-dark);
}

.cal-chip--holiday {
  background: rgba(193, 165, 48, 0.18);
  color: var(--gold-deep);
}

.cal-chip--study {
  background: rgba(121, 146, 55, 0.16);
  color: var(--brand-dark);
}

.cal-item__reason {
  margin: 10px 0 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.cal-item__actions .btn,
.cal-item__actions .enrollment-card__withdraw {
  flex: 1 1 calc(50% - 8px);
}

.cal-item__actions .btn {
  min-height: 44px;
  width: 100%;
}

.cal-form {
  background: #fff;
}

.cal-kind .form-check {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
}

.cal-form__actions {
  flex-direction: column;
}

.cal-form__actions .btn {
  width: 100%;
  min-height: 44px;
}

@media (min-width: 768px) {
  .cal-page {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 16px;
    align-items: start;
  }

  .cal-page .page-head {
    grid-column: 1;
    margin: 0;
    padding: 0;
    border-bottom: none;
  }

  .cal-page__new {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    margin: 0;
    align-self: center;
    padding-inline: 1.25rem;
  }

  .cal-page__empty,
  .cal-list,
  .cal-page .enrollment-table,
  .cal-form {
    grid-column: 1 / -1;
  }

  .cal-form__actions {
    flex-direction: row;
  }

  .cal-form__actions .btn {
    width: auto;
  }
}

.page-head,
.page-hero {
  margin: 0 0 1rem;
  padding: 0 0 0.85rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  background: none;
  border-radius: 0;
}

.page-head .eyebrow,
.page-hero .eyebrow {
  display: inline-flex;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.page-head h1,
.page-hero h1,
.app-main > h1.h4,
.student-page__title {
  margin: 0.2rem 0 0.35rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}

.page-head p,
.page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.92rem;
}

.app-main > h1.h4 + p,
.student-page__title + p {
  margin-top: 0;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dash-card {
  display: block;
  padding: 16px 18px;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-height: 44px;
}

.dash-card:hover {
  border-color: #cbd5b7;
  box-shadow: 0 8px 22px rgba(52, 74, 58, 0.07);
}

.dash-card strong,
.dash-card span {
  display: block;
}

.dash-card strong {
  font-size: 1rem;
  color: var(--brand-dark);
}

.dash-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.app-nav .dropdown-menu {
  border-color: var(--line);
  border-radius: 12px;
}

.app-nav .dropdown-item {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.auth-card {
  width: min(420px, 100%);
  margin: 2rem auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(38, 62, 46, 0.08);
}

.auth-card .brand-mark {
  margin-bottom: 1.25rem;
}

.container,
.container-fluid {
  max-width: 100%;
}

main {
  min-width: 0;
  max-width: 100%;
}

.navbar-brand,
.navbar-toggler {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

.navbar-nav .nav-link,
.btn,
.btn-sm {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-page {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding-inline: 1.15rem;
}

.row-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.75rem, 1fr));
  gap: 8px;
  align-items: stretch;
  min-width: 8.5rem;
  max-width: 22rem;
  margin: 0;
}

.row-actions form {
  display: flex;
  margin: 0;
  min-width: 0;
}

.row-actions > .btn,
.row-actions form > .btn {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding-inline: 0.65rem;
  white-space: nowrap;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.form-actions .btn {
  min-height: 44px;
  flex: 1 1 8rem;
}

.form-control,
.form-select,
.form-control-sm {
  min-height: 44px;
  font-size: 16px;
}

small,
.small {
  font-size: 0.875rem;
}

.validation-summary-errors,
.validation-summary-valid {
  display: none;
}

.app-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  border-inline-start-width: 4px;
}

.app-alert-label {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  line-height: 1.4;
}

.app-alert-body {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.app-alert-list {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.app-alert-success {
  color: #0a3622;
  background: #d1e7dd;
  border-color: #a3cfbb;
  border-inline-start-color: #198754;
}

.app-alert-success .app-alert-label {
  color: #fff;
  background: #198754;
}

.app-alert-danger {
  color: #58151c;
  background: #f8d7da;
  border-color: #f1aeb5;
  border-inline-start-color: #dc3545;
}

.app-alert-danger .app-alert-label {
  color: #fff;
  background: #dc3545;
}

.app-alert-warning {
  color: #664d03;
  background: #fff3cd;
  border-color: #ffe69c;
  border-inline-start-color: #ffc107;
}

.app-alert-warning .app-alert-label {
  color: #212529;
  background: #ffc107;
}

.app-alert-info {
  color: #055160;
  background: #cff4fc;
  border-color: #9eeaf9;
  border-inline-start-color: #0dcaf0;
}

.app-alert-info .app-alert-label {
  color: #052c65;
  background: #9eeaf9;
}

@media (max-width: 767.98px) {
  main .table {
    font-size: 0.9rem;
  }

  .row {
    margin-right: 0;
    margin-left: 0;
  }
}

.student-page {
  min-width: 0;
  max-width: 100%;
}

.student-page__title {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.student-section {
  margin-block: 24px;
}

.student-section__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.student-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-bottom: 8px;
}

.student-actions__form {
  margin: 0;
}

.student-card {
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  min-width: 0;
  max-width: 100%;
}

.student-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
  margin: 0;
}

.student-facts__item {
  min-width: 0;
}

.student-facts__item dt {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: 0.8125rem;
  font-weight: 600;
}

.student-facts__item dd {
  margin: 0;
  color: #101828;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.student-facts__ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

.student-facts__sub {
  display: block;
  margin-top: 2px;
  color: #667085;
}

.student-section__hint {
  margin: -4px 0 12px;
  color: #667085;
  font-size: 0.875rem;
}

.detail-cards {
  display: grid;
  gap: 12px;
}

.plan-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.plan-chip--flexible {
  color: #175cd3;
  background: #eff8ff;
}

.plan-chip--structured {
  color: #6941c6;
  background: #f4ebff;
}

.plan-chip--open {
  color: #067647;
  background: #ecfdf3;
}

.plan-status {
  font-size: 0.75rem;
  font-weight: 700;
  color: #667085;
}

.plan-status--active {
  color: #067647;
}

.plan-card__lines {
  margin: 10px 0 0;
  padding-right: 1.1rem;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
}

.plan-card--past {
  background: #f9fafb;
}

.plan-history {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .student-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-facts__item--wide {
    grid-column: 1 / -1;
  }

  .detail-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

  dl.student-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

dl.student-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px 16px;
  margin: 0;
}

.student-summary__item {
  min-width: 0;
}

.student-summary__item--wide {
  grid-column: 1 / -1;
}

.student-summary__label {
  display: block;
  margin-bottom: 3px;
  color: #667085;
  font-size: 0.8125rem;
}

.student-summary__value {
  margin: 0;
  color: #101828;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.student-summary__sub {
  display: block;
  margin-top: 2px;
  color: #667085;
}

.enrollment-cards {
  display: none;
}

.session-cards {
  display: grid;
  gap: 12px;
}

.enrollment-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.enrollment-card__meta {
  min-width: 0;
}

.enrollment-card__title {
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.enrollment-card__sub,
.enrollment-card__kind {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.enrollment-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: stretch;
}

.enrollment-card__withdraw {
  margin: 0;
}

.form-group {
  margin-bottom: 14px;
}

.plan-assign-fields {
  display: grid;
  gap: 0;
  min-width: 0;
}

.action-panel {
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

.action-panel--inline {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.action-panel > summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}

.action-panel > summary::-webkit-details-marker {
  display: none;
}

.action-panel[open] > summary {
  border-bottom: 1px solid #e4e7ec;
}

.action-panel__body {
  padding: 16px;
}

@media (max-width: 767.98px) {
  .enrollment-table {
    display: none;
  }

  .enrollment-cards {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.calendar-date-picker .form-select {
  min-height: 44px;
}

.calendar-date-picker .btn-group .btn {
  min-height: 44px;
}

.session-att-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.session-att-group .btn {
  flex: 1 1 calc(50% - 8px);
  min-height: 44px;
}

.session-accordion .accordion-button {
  gap: 8px;
  min-height: 52px;
  align-items: center;
}

.session-acc-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
  text-align: start;
}

.session-acc-name {
  font-weight: 700;
  color: var(--ink);
}

.session-acc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.session-acc-plan,
.session-status-text {
  font-size: 0.8rem;
  color: var(--muted);
}

.session-status-text {
  font-weight: 700;
  color: var(--brand-dark);
}

.session-counter {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink);
}

.session-clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 12px;
}

.session-clock {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: 0;
}

.session-clock--start {
  border-color: rgba(121, 146, 55, 0.35);
}

.session-clock--end {
  border-color: rgba(193, 165, 48, 0.45);
}

.session-clock__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
}

.session-clock__value {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  direction: ltr;
  unicode-bidi: isolate;
  color: var(--ink);
  line-height: 1.25;
}

.session-clock__hint {
  display: block;
  margin-top: 1px;
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--muted);
}

.session-chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.session-chip--open {
  background: rgba(121, 146, 55, 0.12);
  color: var(--brand-dark);
}

.session-chip--done {
  background: rgba(193, 165, 48, 0.16);
  color: var(--gold-deep);
}

.student-list-cards {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.prayer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.prayer-card {
  margin: 0;
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.prayer-card__name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.prayer-card__time {
  display: block;
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-head .student-section__head {
  margin-bottom: 0;
}

.page-head .student-section__head > div {
  min-width: 0;
}

.student-card .session-clocks {
  margin-top: 8px;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .session-clock {
    padding: 10px 12px;
  }

  .session-clock__value {
    font-size: 1.15rem;
  }
}

.session-reset {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #fda29b;
  border-radius: 12px;
  background: #fff;
}

.session-reset__title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #b42318;
}

.session-reset__lead {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #475467;
}

.session-reset__list {
  margin: 0 0 12px;
  padding-right: 1.2rem;
  font-size: 0.9rem;
}

.session-reset__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.session-reset__confirm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  font-size: 0.9rem;
}

.session-reset__confirm input {
  margin-top: 4px;
  min-width: 20px;
  min-height: 20px;
}

@media (min-width: 768px) {
  .session-reset__form .btn {
    align-self: flex-start;
  }
}

.session-summary-list {
  padding-right: 1.2rem;
  margin-top: 12px;
}

.session-path-banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eef6ff;
  border: 1px solid #b6d4fe;
  color: #084298;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
}

.session-path-banner--done {
  background: #e8f5e9;
  border-color: #a5d6a7;
  color: #1b5e20;
}

.session-path-from {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  margin-bottom: 4px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #d0d5dd;
}

.session-path-from__label {
  color: #667085;
  font-weight: 700;
  min-width: 2rem;
}

.session-path-from__value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #101828;
}

.session-lesson-detail {
  margin: 0;
}

.session-lesson-detail__row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  min-height: 36px;
}

.session-lesson-detail dt {
  margin: 0;
  min-width: 2.5rem;
  color: #667085;
  font-weight: 600;
}

.session-lesson-detail dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.progress-filter {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}

@media (min-width: 768px) {
  .progress-filter {
    max-width: 28rem;
  }
}

.progress-list {
  display: grid;
  gap: 12px;
}

.progress-batch {
  display: grid;
  gap: 12px;
}

.progress-batch__bar {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.progress-batch__bar label {
  display: grid;
  gap: 6px;
  color: #53645d;
  font-size: 0.8rem;
  font-weight: 700;
}

.progress-batch__all {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.9rem;
}

.progress-batch__all input {
  width: 22px;
  height: 22px;
}

.progress-batch__bar .btn {
  min-height: 44px;
}

.progress-batch__hint {
  margin: 0;
  color: #66736e;
  font-size: 0.8rem;
}

.progress-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.progress-pick {
  display: grid;
  place-items: start center;
  min-height: 44px;
  min-width: 44px;
  padding-top: 22px;
  margin: 0;
}

.progress-pick input {
  width: 22px;
  height: 22px;
}

.progress-batch-result {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.progress-batch-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.progress-batch-status--sent { color: #53732d; background: #edf4df; }
.progress-batch-status--skipped { color: #68736d; background: #eef0ea; }
.progress-batch-status--failed { color: #a34e47; background: #fae9e6; }

@media (min-width: 768px) {
  .progress-batch__bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto;
    align-items: end;
  }

  .progress-batch__all {
    padding-bottom: 8px;
  }
}

.serenity-student {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.serenity-student[open],
.serenity-student:hover {
  border-color: #cbd5b7;
  box-shadow: 0 10px 28px rgba(52, 74, 58, 0.07);
}

.student-summary {
  list-style: none;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.student-summary::-webkit-details-marker {
  display: none;
}

.student-summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-inline-end: 2px solid #8b948e;
  border-bottom: 2px solid #8b948e;
  transform: rotate(45deg);
  justify-self: end;
}

.serenity-student[open] .student-summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.student-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 13px;
  background: linear-gradient(145deg, #799237, #4d6828);
  font-weight: 800;
}

.student-identity strong,
.student-identity small {
  display: block;
}

.student-identity strong {
  font-size: 0.95rem;
}

.student-identity small {
  margin-top: 3px;
  color: #8b948e;
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.attendance {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: normal;
  text-align: start;
  min-height: 32px;
}

.attendance i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.attendance--present { color: #53732d; background: #edf4df; }
.attendance--present i { background: #6f923d; }
.attendance--late { color: #8e7110; background: #fff5cd; }
.attendance--late i { background: #c1a530; }
.attendance--absent { color: #a34e47; background: #fae9e6; }
.attendance--absent i { background: #ba6258; }
.attendance--none { color: #68736d; background: #eef0ea; }
.attendance--none i { background: #9da59f; }
.attendance--unevaluated { color: #8e4b12; background: #fef0c7; }
.attendance--unevaluated i { background: #dc6803; }

.progress-block {
  margin-top: 4px;
}

.progress-plan-head {
  margin: 0;
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475467;
}

.progress-share-form {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
}

.progress-share-form__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.progress-share-form__fields label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475467;
}

.progress-share-gate {
  max-width: 22rem;
}

@media (max-width: 767px) {
  .progress-share-form__fields {
    grid-template-columns: 1fr;
  }
}

.progress-empty {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f8f4;
  color: #667085;
  font-size: 0.875rem;
}

.serenity-details {
  padding: 0 16px 16px;
  display: grid;
  gap: 16px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.achievement-grid article {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e8eae3;
  border-radius: 12px;
  background: #fff;
}

.achievement-grid small,
.achievement-grid strong {
  display: block;
}

.achievement-grid small {
  color: #8b948e;
  font-size: 0.7rem;
}

.achievement-grid strong {
  margin-top: 4px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.score-ring {
  --score-degrees: 0deg;
  width: 52px;
  height: 52px;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 61%, transparent 63%),
    conic-gradient(var(--brand) var(--score-degrees), #e6eadf 0);
  font-weight: 800;
  font-size: 0.85rem;
}

.score-ring small {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  color: #8b948e;
}

.progress-days {
  display: grid;
  gap: 10px;
}

.progress-day {
  padding: 12px;
  border: 1px solid #e8eae3;
  border-radius: 12px;
  background: #f7f8f4;
}

.progress-day__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.progress-day__head time {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.progress-day__plan {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
}

.progress-day__none {
  margin: 0;
  font-size: 0.85rem;
  color: #667085;
}

.progress-day__sections {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.progress-day__sections li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  min-height: 36px;
  font-size: 0.85rem;
}

.progress-day__score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

@media (max-width: 767px) {
  .progress-day__sections li {
    grid-template-columns: 1fr auto;
  }

  .progress-day__sections li strong {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .achievement-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .student-summary {
    grid-template-columns: 1fr auto 20px;
  }

  .session-att-group .btn {
    flex: 1 1 auto;
  }

  .prayer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .dash-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prayer-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .brand-mark__text {
    display: none;
  }

  .brand-mark img {
    width: 52px;
    height: 52px;
  }
}