.nn-parents-page,
.nn-bulk-parents {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.nn-parents-page__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.nn-parents-page__eyebrow {
  margin: 0 0 5px;
  color: #087982;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nn-parents-page__head h1 { margin: 0; }
.nn-parents-page__head p:not(.nn-parents-page__eyebrow) { margin: 7px 0 0; color: #64748b; }

.nn-parents-page__search {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px 18px;
}

.nn-parents-page__search label { font-size: .78rem; font-weight: 750; color: #475467; }
.nn-parents-page__search > div { display: flex; gap: 9px; }
.nn-parents-page__search input { flex: 1; min-width: 0; }

.nn-parents-page__list { overflow: hidden; }
.nn-parents-page__list-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e5e7eb; }
.nn-parents-page__list-head h2 { margin: 0; font-size: 1.05rem; }
.nn-parents-page__list-head span { color: #667085; font-size: .78rem; }
.nn-parents-page__table-wrap { overflow-x: auto; }
.nn-parents-page__table { width: 100%; border-collapse: collapse; }
.nn-parents-page__table th,
.nn-parents-page__table td { padding: 13px 16px; border-bottom: 1px solid #edf0f2; text-align: left; vertical-align: top; }
.nn-parents-page__table th { background: #f8fafc; color: #667085; font-size: .7rem; letter-spacing: .03em; text-transform: uppercase; }
.nn-parents-page__table tr:last-child td { border-bottom: 0; }
.nn-parents-page__students { display: flex; flex-wrap: wrap; gap: 5px 12px; }
.nn-parents-page__students a { color: #087982; font-weight: 650; text-decoration: none; }

.nn-parent-status {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #475467;
  font-size: .67rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.nn-parent-status.is-active { border-color: #a7d8c2; color: #18724a; background: #f1faf5; }
.nn-parent-status.is-disabled { border-color: #d8dee5; color: #667085; background: #f8fafc; }
.nn-parents-page__empty { padding: 42px 20px; text-align: center; }
.nn-parents-page__empty h3 { margin: 0 0 6px; }
.nn-parents-page__empty p { margin: 0; color: #667085; }

.nn-bulk-parent-table th:nth-child(1),
.nn-bulk-parent-table th:nth-child(2) { width: 15%; }
.nn-bulk-parent-table th:nth-child(3) { width: 24%; }
.nn-bulk-parent-table th:nth-child(4) { width: 32%; }
.nn-bulk-parent-table th:nth-child(5) { width: 14%; }
.nn-bulk-parent-table th:last-child { width: 74px; }
.nn-bulk-parent-table select[multiple] { min-height: 78px; padding: 4px; background-image: none; }
.nn-bulk-parent-table td small { display: block; margin-top: 4px; color: #7b8494; font-size: .64rem; line-height: 1.3; }
.nn-bulk-parent-table tr.has-staging-error { background: #fffaf7; }
.nn-bulk-parent-status strong { color: #18724a; font-size: .7rem; }
.nn-bulk-parent-table tr.has-staging-error .nn-bulk-parent-status strong { color: #a53a35; }
.nn-bulk-staging-error { display: block; margin-top: 6px; color: #a53a35; font-size: .68rem; line-height: 1.35; }
.nn-bulk-parent-actions { white-space: nowrap; text-align: center !important; }
.nn-bulk-duplicate-row { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; margin-right: 3px; padding: 0; border: 1px solid #d8dee5; border-radius: 7px; background: #fff; color: #64748b; cursor: pointer; }
.nn-bulk-duplicate-row:hover,
.nn-bulk-duplicate-row:focus-visible { border-color: #8acbd0; color: #087982; background: #f1fbfb; }
.nn-bulk-parent-result { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }

.nn-bulk-parent-paste { display: grid; gap: 12px; margin-bottom: 18px; padding: 20px; }
.nn-bulk-parent-paste__head h2 { margin: 0; font-size: 1.08rem; }
.nn-bulk-parent-paste__head p:not(.nn-bulk-parent-paste__eyebrow) { margin: 6px 0 0; color: #64748b; font-size: .8rem; }
.nn-bulk-parent-paste__eyebrow { margin: 0 0 5px; color: #087982; font-size: .68rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.nn-bulk-parent-paste > label { color: #344054; font-size: .75rem; font-weight: 800; }
.nn-bulk-parent-paste textarea { width: 100%; min-height: 154px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; line-height: 1.5; }
.nn-bulk-parent-paste__help { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #667085; font-size: .72rem; }
.nn-bulk-parent-paste__help p { margin: 0; }
.nn-bulk-parent-paste__help code { flex-basis: 100%; padding: 7px 9px; overflow-wrap: anywhere; border: 1px solid #e2e8f0; border-radius: 4px; background: #f8fafc; color: #475467; }
.nn-bulk-parent-paste__actions { display: flex; justify-content: flex-end; }
.nn-bulk-parse-notice { margin: 0 0 16px; padding: 11px 14px; border-left: 3px solid #0f9fa8; background: #f5fbfb; color: #52606d; font-size: .76rem; }
.nn-bulk-parent-review-links { display: grid; gap: 6px; margin-top: 3px; padding-top: 9px; border-top: 1px solid #edf0f2; }
.nn-bulk-parent-review-links > strong { color: #344054; font-size: .72rem; }
.nn-bulk-parent-review-links ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nn-bulk-parent-review-links li { color: #1f2937; font-size: .78rem; }

@media (min-width: 701px) and (max-width: 820px) {
  .nn-bulk-parents .nn-bulk-table-wrap { margin: 12px 12px 0; overflow: visible; border: 0; }
  .nn-bulk-parents .nn-bulk-table { min-width: 0; table-layout: auto; }
  .nn-bulk-parents .nn-bulk-table thead { display: none; }
  .nn-bulk-parents .nn-bulk-table,
  .nn-bulk-parents .nn-bulk-table tbody,
  .nn-bulk-parents .nn-bulk-table tr,
  .nn-bulk-parents .nn-bulk-table td { display: block; width: 100%; }
  .nn-bulk-parents .nn-bulk-table tr { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; padding: 14px 48px 14px 14px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
  .nn-bulk-parents .nn-bulk-table td { padding: 0; border: 0; }
  .nn-bulk-parents .nn-bulk-table td::before { display: block; margin-bottom: 4px; color: #64748b; content: attr(data-label); font-size: .67rem; font-weight: 800; }
  .nn-bulk-parents .nn-bulk-table td:nth-child(4) { grid-column: 1 / -1; }
  .nn-bulk-parents .nn-bulk-parent-actions { position: absolute; top: 10px; right: 8px; width: auto !important; }
  .nn-bulk-parents .nn-bulk-parent-actions::before { display: none; }
}

@media (max-width: 760px) {
  .nn-parents-page__head { flex-direction: column; }
  .nn-parents-page__head .btn { width: 100%; }
  .nn-parents-page__search > div { align-items: stretch; flex-direction: column; }
  .nn-parents-page__table-wrap { overflow: visible; }
  .nn-parents-page__table thead { display: none; }
  .nn-parents-page__table,
  .nn-parents-page__table tbody,
  .nn-parents-page__table tr,
  .nn-parents-page__table td { display: block; width: 100%; }
  .nn-parents-page__table tr { padding: 13px 15px; border-bottom: 1px solid #e5e7eb; }
  .nn-parents-page__table td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 6px 0; border: 0; }
  .nn-parents-page__table td::before { content: attr(data-label); color: #667085; font-size: .7rem; font-weight: 750; }
  .nn-bulk-parents .nn-bulk-table td:nth-child(4) { grid-column: 1 / -1; }
  .nn-bulk-parents .nn-bulk-parent-actions { position: absolute; top: 10px; right: 8px; width: auto !important; }
  .nn-bulk-parents .nn-bulk-parent-actions::before { display: none; }
  .nn-bulk-parent-result { grid-template-columns: 1fr; }
  .nn-bulk-parent-paste { padding: 16px; }
  .nn-bulk-parent-paste__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .nn-parents-page__table td { grid-template-columns: 94px minmax(0, 1fr); }
}
