/* Parent Dashboard v2 */
body.nn-parent-dashboard-view {
  background: #f6f7f9;
}

.nn-parent-dashboard {
  display: grid;
  gap: 18px;
  width: min(1180px, 100%);
  margin-inline: auto;
  color: #1f2937;
}

.nn-parent-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  background: #fff;
}

.nn-parent-banner__content {
  min-width: 0;
}

.nn-parent-banner__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #0f7d83;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nn-parent-banner h1 {
  margin: 0;
  color: #17212b;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.nn-parent-banner p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 0.9rem;
}

.nn-parent-banner__actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.nn-parent-child-switcher {
  display: grid;
  gap: 4px;
  min-width: 210px;
  margin: 0;
}

.nn-parent-child-switcher label {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
}

.nn-parent-child-switcher select {
  width: 100%;
  min-height: 38px;
  padding: 7px 34px 7px 10px;
  border: 1px solid #d5dce1;
  border-radius: 7px;
  background-color: #fff;
  color: #1f2937;
  font: inherit;
}

.nn-parent-account-link,
.nn-parent-dashboard__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid #d5dce1;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nn-parent-account-link:hover,
.nn-parent-dashboard__back:hover {
  border-color: #aebcc4;
  background: #f8fafb;
  color: #17212b;
  text-decoration: none;
}

.nn-parent-account-link i,
.nn-parent-dashboard__back i {
  color: #0f7d83;
}

.nn-parent-dashboard__back {
  justify-self: start;
}

.nn-parent-password-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #bcd9dc;
  border-radius: 9px;
  background: #f2fafa;
}

.nn-parent-password-prompt strong {
  display: block;
  margin-bottom: 2px;
}

.nn-parent-password-prompt p {
  margin: 0;
  color: #52606d;
  font-size: 0.86rem;
}

.nn-parent-dashboard__emptyPage {
  padding: 26px;
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  background: #fff;
}

.nn-parent-dashboard__emptyPage h2,
.nn-parent-dashboard__emptyPage p {
  margin-top: 0;
}

.nn-parent-dashboard__emptyPage p {
  margin-bottom: 0;
  color: #667085;
}

.nn-parent-dashboard__primaryGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.nn-parent-dashboard__featureGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}

.nn-parent-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe4e8;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025);
}

.nn-parent-card__heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.nn-parent-card__heading h2 {
  margin: 0;
  color: #29343d;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.25;
}

.nn-parent-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 7px;
  background: #edf7f7;
  color: #0f7d83;
  font-size: 0.76rem;
}

.nn-parent-card__badge {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 750;
}

.nn-parent-card__badge.is-overdue {
  background: #fff0ee;
  color: #b42318;
}

.nn-parent-card__lead,
.nn-parent-card__metric {
  margin: 0;
  color: #17212b;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 750;
  line-height: 1.2;
}

.nn-parent-card__sublead {
  margin: 3px 0 0;
  color: #0f7d83;
  font-size: 1rem;
  font-weight: 700;
}

.nn-parent-card__status,
.nn-parent-attendance-quality {
  margin: 6px 0 0;
  color: #667085;
  font-size: 0.81rem;
}

.nn-parent-card.is-overdue .nn-parent-card__status {
  color: #b42318;
  font-weight: 700;
}

.nn-parent-card__details {
  display: grid;
  gap: 6px;
  margin: 17px 0 0;
}

.nn-parent-card__details div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef1f3;
}

.nn-parent-card__details div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nn-parent-card__details dt,
.nn-parent-card__details dd {
  margin: 0;
  font-size: 0.79rem;
}

.nn-parent-card__details dt {
  color: #7a8792;
}

.nn-parent-card__details dd {
  color: #344054;
  font-weight: 650;
  text-align: right;
}

.nn-parent-card__empty {
  margin: 0;
  color: #667085;
  font-size: 0.88rem;
  line-height: 1.5;
}

.nn-parent-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 18px;
  color: #0f747a;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.nn-parent-card__link:hover {
  color: #0a5c61;
  text-decoration: underline;
}

.nn-parent-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 16px;
  padding: 8px 13px;
  border-radius: 7px;
  background: #0f7d83;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.nn-parent-card__button:hover {
  background: #0a656a;
  color: #fff;
  text-decoration: none;
}

.nn-parent-attendance-bar {
  height: 6px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edef;
}

.nn-parent-attendance-bar span {
  display: block;
  width: var(--nn-parent-attendance, 0%);
  height: 100%;
  border-radius: inherit;
  background: #28966f;
}

.nn-parent-attendance-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 17px;
  color: #667085;
  font-size: 0.75rem;
}

.nn-parent-attendance-counts strong {
  color: #344054;
}

.nn-parent-card__paid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #18794e;
  font-size: 1.15rem;
  font-weight: 750;
}

.nn-parent-feature-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
}

.nn-parent-feature-card .nn-parent-card__link {
  margin-top: auto;
  padding-top: 18px;
}

.nn-parent-feature-card__count {
  margin: 0;
  color: #29343d;
  font-size: 1.05rem;
  font-weight: 700;
}

.nn-parent-feature-card__meta {
  display: grid;
  gap: 3px;
  margin-top: 15px;
}

.nn-parent-feature-card__meta span {
  color: #7a8792;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nn-parent-feature-card__meta strong {
  color: #344054;
  font-size: 0.9rem;
}

.nn-parent-feature-card__meta small {
  color: #667085;
  font-size: 0.78rem;
}

.nn-parent-latest-lesson {
  padding: 20px;
}

.nn-parent-latest-lesson__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.nn-parent-latest-lesson__head h2 {
  margin: 0;
  color: #17212b;
  font-size: 1.08rem;
}

.nn-parent-latest-lesson__head p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 0.84rem;
}

.nn-parent-latest-lesson__head .nn-parent-card__link {
  flex: 0 0 auto;
  margin-top: 0;
}

.nn-parent-latest-lesson__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0;
  border-top: 1px solid #e8ecef;
}

.nn-parent-latest-lesson__content section {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid #e8ecef;
}

.nn-parent-latest-lesson__content section:first-child {
  padding-left: 0;
}

.nn-parent-latest-lesson__content section:last-child {
  padding-right: 0;
  border-right: 0;
}

.nn-parent-latest-lesson__content h3 {
  margin: 0 0 8px;
  color: #52606d;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nn-parent-latest-lesson__content p {
  margin: 0;
  color: #344054;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .nn-parent-dashboard__primaryGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nn-parent-card--invoice {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nn-parent-dashboard {
    gap: 13px;
  }

  .nn-parent-banner {
    align-items: stretch;
    flex-direction: column;
    padding: 15px;
  }

  .nn-parent-banner__actions {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nn-parent-child-switcher {
    width: 100%;
    min-width: 0;
  }

  .nn-parent-account-link {
    width: 100%;
  }

  .nn-parent-password-prompt {
    align-items: flex-start;
    flex-direction: column;
  }

  .nn-parent-dashboard__primaryGrid,
  .nn-parent-dashboard__featureGrid {
    grid-template-columns: 1fr;
  }

  .nn-parent-card--invoice {
    grid-column: auto;
  }

  .nn-parent-card,
  .nn-parent-latest-lesson {
    padding: 15px;
  }

  .nn-parent-feature-card {
    min-height: 0;
  }

  .nn-parent-latest-lesson__head {
    flex-direction: column;
    gap: 8px;
  }

  .nn-parent-latest-lesson__content {
    grid-template-columns: 1fr;
  }

  .nn-parent-latest-lesson__content section,
  .nn-parent-latest-lesson__content section:first-child,
  .nn-parent-latest-lesson__content section:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid #e8ecef;
  }

  .nn-parent-latest-lesson__content section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}
