/* nps.css - parents.lesbg.com. LES palette; no bold anywhere, emphasis by size. */

:root {
  --purple: #5B2C83;
  --deep: #432062;
  --soft: #7A4AA3;
  --yellow: #F2C94C;
  --tint: #F0EAF6;
  --zebra: #F9F7FC;
  --rule: #E2DCEA;
  --text: #282430;
  --grey: #807A8A;
  --light: #B9B3C2;
  --link: #1D4ED8;
  --red: #B42318;
  --red-tint: #FDECEA;
  --green: #1E7B45;
  --bg: #FFFFFF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
}
b, strong, th, h1, h2, h3, button, label { font-weight: 400; }

a { color: var(--link); text-decoration: underline; text-transform: lowercase; }
a:hover { color: var(--deep); }

.nps-wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* Header */
.nps-head { background: var(--purple); color: #fff; border-bottom: 4px solid var(--yellow); }
.nps-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 12px; }
.nps-brand { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: 0.5px; }
.nps-sub { font-size: 13px; opacity: 0.85; }
.nps-who { text-align: right; font-size: 13px; }
.nps-who-name { display: block; opacity: 0.9; }
.nps-inline { display: inline; margin: 0; }
.nps-linkbtn { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; cursor: pointer; font: inherit; text-transform: lowercase; }

/* Breadcrumb navigation */
.nps-nav { background: var(--tint); font-size: 14px; }
.nps-nav .nps-wrap { padding-top: 8px; padding-bottom: 8px; }
.nps-sep { color: var(--light); margin: 0 6px; }
.nps-here { color: var(--light); text-transform: lowercase; }

.nps-main { padding-top: 18px; padding-bottom: 28px; }
.nps-foot { color: var(--grey); font-size: 12px; padding-bottom: 24px; }

h1 { font-size: 26px; margin: 4px 0 14px; color: var(--deep); }
h2 { font-size: 19px; margin: 0 0 10px; color: var(--purple); }

.nps-muted { color: var(--grey); }
.nps-small { font-size: 13px; }
.nps-note { font-size: 12.5px; color: var(--grey); }
.nps-error { background: var(--red-tint); color: var(--red); padding: 10px 12px; border-radius: 6px; }

/* Hub cards */
.nps-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.nps-card { display: block; border: 1px solid var(--rule); border-top: 4px solid var(--purple); border-radius: 8px; padding: 16px; text-decoration: none; color: var(--text); background: #fff; }
.nps-card:hover { background: var(--zebra); }
.nps-card-title { font-size: 20px; color: var(--link); text-decoration: underline; margin-bottom: 6px; }
.nps-card-text { font-size: 14px; color: var(--grey); text-transform: none; }
.nps-card-admin { border-top-color: var(--yellow); }

/* Sign in */
.nps-login { max-width: 380px; }
.nps-login form { display: flex; flex-direction: column; gap: 6px; }
.nps-login label { font-size: 14px; color: var(--grey); margin-top: 8px; }
.nps-login input { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; }
.nps-login input:focus { outline: 2px solid var(--soft); border-color: var(--soft); }
.nps-button { margin-top: 14px; font: inherit; font-size: 17px; padding: 10px 14px; background: var(--purple); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.nps-button:hover { background: var(--deep); }

/* Statement */
.nps-st-head { margin-bottom: 16px; }
.nps-st-family { font-size: 24px; color: var(--deep); }
.nps-kids { list-style: none; padding: 0; margin: 6px 0; font-size: 15px; }
.nps-actions { margin-top: 8px; font-size: 15px; }

.nps-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 22px; }
.nps-tile { background: var(--zebra); border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; }
.nps-tile-label { font-size: 12.5px; color: var(--grey); }
.nps-tile-value { font-size: 22px; font-variant-numeric: tabular-nums; }
.nps-tile-note { font-size: 12.5px; color: var(--grey); }
.nps-tile-main { background: var(--tint); border-color: var(--soft); }
.nps-tile-main .nps-tile-value { font-size: 26px; color: var(--deep); }
.nps-tile-alert { background: var(--red-tint); border-color: #F3B8B2; }
.nps-tile-alert .nps-tile-value { color: var(--red); }

.nps-block { margin-bottom: 24px; }
.nps-shaded { background: var(--tint); border-left: 5px solid var(--purple); border-radius: 8px; padding: 14px 14px 10px; }

.nps-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.nps-table th { text-align: left; font-size: 12.5px; color: var(--grey); border-bottom: 1px solid var(--rule); padding: 6px 8px; }
.nps-table td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.nps-table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.55); }
.nps-shaded .nps-table td { border-bottom-color: #D9CFE6; }
.nps-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nps-table tfoot td { border-bottom: 0; color: var(--grey); }
.nps-table tfoot .nps-grand td { color: var(--deep); font-size: 17px; border-top: 2px solid var(--yellow); }

.nps-status { font-size: 13px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; }
.nps-status-paid, .nps-status-aid { color: var(--green); background: #E6F4EC; }
.nps-status-overdue { color: var(--red); background: var(--red-tint); }
.nps-status-part { color: #8A5A00; background: #FFF4D6; }
.nps-status-due { color: var(--grey); background: #fff; border: 1px solid var(--rule); }
.nps-row-overdue td:first-child { color: var(--red); }

.nps-list { padding-left: 18px; }
.nps-list li { margin-bottom: 8px; }

/* Admin */
.nps-tabs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; font-size: 15px; }
.nps-tabs .nps-here { color: var(--light); }
.nps-search { display: flex; gap: 8px; margin-bottom: 14px; }
.nps-search input { flex: 1; font: inherit; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 6px; }
.nps-search button { font: inherit; padding: 9px 14px; background: var(--purple); color: #fff; border: 0; border-radius: 6px; cursor: pointer; }
.nps-scroll { overflow-x: auto; }
.nps-table.nps-admin { font-size: 14px; }
.nps-table.nps-admin td, .nps-table.nps-admin th { white-space: nowrap; }
.nps-stat { font-size: 15px; margin-bottom: 12px; }
.nps-stat span { font-size: 24px; color: var(--deep); margin-right: 4px; }

@media (max-width: 560px) {
  .nps-head-row { flex-wrap: wrap; }
  .nps-brand { font-size: 20px; }
  .nps-table { font-size: 14px; }
  .nps-tile-value { font-size: 19px; }
  .nps-tile-main .nps-tile-value { font-size: 22px; }
}

@media print {
  .nps-head, .nps-nav, .nps-actions, .nps-foot { display: none; }
}
.nps-mt { margin-top: 26px; }
.nps-table.nps-admin td.nps-wrapcell { white-space: normal; }

/* Payment schedule on phones: each installment as two lines
   date ............ amount
   payment ......... status
   notes */
@media (max-width: 560px) {
  .nps-sched thead { display: none; }
  .nps-sched tbody tr { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 8px 4px; border-bottom: 1px solid #D9CFE6; }
  .nps-sched tbody td { border: 0; padding: 1px 4px; background: none !important; }
  .nps-sched tbody td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .nps-sched tbody td:nth-child(3) { grid-column: 2; grid-row: 1; font-size: 16px; }
  .nps-sched tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
  .nps-sched tbody td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  .nps-sched tfoot tr { display: flex; justify-content: space-between; padding: 8px 4px 2px; }
  .nps-sched tfoot td { padding: 0 4px; }
  .nps-sched tfoot td.nps-empty { display: none; }
}

/* Admin pages use the full width */
.nps-wide .nps-wrap { max-width: 1240px; }
.nps-table.nps-admin td.nps-wrapcell { min-width: 180px; }

.nps-disclaimer { font-size: 11.5px; color: var(--grey); border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 18px; }

.nps-assign { display: flex; gap: 6px; align-items: center; margin: 0; }
.nps-assign select { font: inherit; padding: 4px 6px; border: 1px solid var(--rule); border-radius: 5px; }
.nps-assign button { font: inherit; padding: 4px 10px; background: var(--purple); color: #fff; border: 0; border-radius: 5px; cursor: pointer; }
