/* Store portal 1.0.136: Nature look with Apple design language. Loaded after portal.css. */
:root {
  --npc-p-bg: #f2f2f7;
  --npc-p-card: #ffffff;
  --npc-p-ink: #1d1d1f;
  --npc-p-muted: #6e6e73;
  --npc-p-line: #e5e5ea;
  --npc-p-accent: #1a7a4c;
  --npc-p-accent-dark: #0f5132;
  --npc-p-accent-tint: #e8f3ec;
  --npc-p-accent-ink: #ffffff;
  --npc-p-mgmt: #f7f9f8;
  --npc-p-radius: 16px;
  --npc-p-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html,
body.npc-portal-body {
  background: var(--npc-p-bg);
  font-family: var(--npc-p-font);
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.npc-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--npc-p-line);
}
.npc-top__in {
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.npc-top__logo img {
  display: block;
  height: 38px;
  width: auto;
}
.npc-top__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.npc-top__store {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--npc-p-accent-tint);
  color: var(--npc-p-accent-dark);
  font-size: 15px;
  font-weight: 600;
}
.npc-top__logout {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--npc-p-ink);
  font-size: 15px;
  text-decoration: none;
}
.npc-top__logout:hover,
.npc-top__logout:focus-visible {
  background: var(--npc-p-bg);
}

/* Page */
.npc-portal {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}
.npc-portal h1 {
  margin: 0 0 24px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.15;
}
.npc-date {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--npc-p-muted);
}
.npc-date::first-letter {
  text-transform: uppercase;
}
.npc-portal__back {
  margin: 0 0 6px;
}
.npc-portal__back a {
  font-size: 17px;
  font-weight: 500;
  color: var(--npc-p-accent);
  text-decoration: none;
}

/* Home tiles */
.npc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}
.npc-tile {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 20px;
  background: var(--npc-p-card);
  color: var(--npc-p-ink);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.npc-tile:hover,
.npc-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.npc-tile:active {
  transform: scale(0.98);
}
.npc-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.npc-tile__icon--green { background: #1a7a4c; }
.npc-tile__icon--leaf { background: #2f8f5b; }
.npc-tile__icon--amber { background: #b7791f; }
.npc-tile__icon--slate { background: #5b6670; }
.npc-tile__icon--blue { background: #1f6fb2; }
.npc-tile__icon--grey { background: #8e8e93; }
.npc-tile__title {
  display: block;
  font-size: 20px;
  font-weight: 600;
}
.npc-tile__help {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--npc-p-muted);
}

/* Grouped sections and lists */
.npc-group {
  margin: 0 0 28px;
}
.npc-group__head {
  margin: 0 0 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--npc-p-muted);
}
.npc-list {
  background: var(--npc-p-card);
  border-radius: var(--npc-p-radius);
  overflow: hidden;
}
.npc-list__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: var(--npc-p-ink);
  text-decoration: none;
}
.npc-list__row + .npc-list__row {
  border-top: 1px solid var(--npc-p-bg);
}
.npc-list__row:hover {
  background: #fafafa;
}
.npc-list__main {
  flex: 1;
  min-width: 0;
}
.npc-list__title {
  display: block;
  font-size: 17px;
}
.npc-list__sub {
  display: block;
  font-size: 14px;
  color: var(--npc-p-muted);
}
.npc-list__amount {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.npc-badge {
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--npc-p-accent-tint);
  color: var(--npc-p-accent-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Existing forms: softer, rounder, calmer */
.npc-portal__panel,
.npc-panel-block,
.npc-filters {
  border: 0;
  border-radius: var(--npc-p-radius);
  background: var(--npc-p-card);
  box-shadow: none;
}
.npc-panel-block--mgmt {
  background: var(--npc-p-mgmt);
}
.npc-portal label,
.npc-label {
  font-weight: 500;
}
.npc-portal input[type="text"],
.npc-portal input[type="email"],
.npc-portal input[type="tel"],
.npc-portal input[type="date"],
.npc-portal input[type="datetime-local"],
.npc-portal input[type="number"],
.npc-portal input[type="password"],
.npc-portal input[type="search"],
.npc-portal select,
.npc-portal textarea {
  min-height: 48px;
  border: 1px solid var(--npc-p-line);
  border-radius: 12px;
  background: #ffffff;
  font-family: var(--npc-p-font);
  font-size: 17px;
}
.npc-portal input:focus,
.npc-portal select:focus,
.npc-portal textarea:focus {
  outline: none;
  border-color: var(--npc-p-accent);
  box-shadow: 0 0 0 4px rgba(26, 122, 76, 0.15);
}
.npc-choice__opt {
  border-radius: 12px;
  border-color: var(--npc-p-line);
}
.npc-choice__opt:has(input:checked) {
  border-color: var(--npc-p-accent);
  background: var(--npc-p-accent-tint);
}
.npc-portal__btn,
.npc-portal button[type="submit"] {
  min-height: 48px;
  border-radius: 14px;
  font-family: var(--npc-p-font);
  font-size: 17px;
  font-weight: 600;
}
.npc-portal__notice {
  border-radius: 12px;
}

/* Login and password screens use the same look */
.npc-portal .npc-logo img {
  max-width: 280px;
  height: auto;
}

@media (max-width: 640px) {
  .npc-top__in { padding: 10px 16px; }
  .npc-top__logo img { height: 30px; }
  .npc-top__store { display: none; }
  .npc-portal { padding: 20px 16px 48px; }
  .npc-portal h1 { font-size: 28px; }
  .npc-tiles { grid-template-columns: 1fr; }
}

@media print {
  .npc-top { display: none; }
}

/* 1.0.137: saved forms (Continue on computer / on tablet) */
.npc-badge--wait {
  background: #fff4e0;
  color: #8a5a00;
}
.npc-draft-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: var(--npc-p-radius);
  background: #fff4e0;
  color: #5c3d00;
}
.npc-draft-banner__title {
  flex: 1 1 100%;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.npc-draft-banner__sub {
  flex: 1 1 auto;
  margin: 0;
  font-size: 14px;
}
.npc-draft-discard {
  margin: 0;
}
.npc-link-btn {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--npc-p-accent);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.npc-link-btn--danger {
  color: #c0392b;
}
.npc-draft-photos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 8px 0 0;
}
.npc-draft-photos img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--npc-p-line);
}
.npc-draft-photos__label {
  font-size: 14px;
  color: var(--npc-p-muted);
}
.npc-draft-save[disabled] {
  opacity: 0.6;
}
@media print {
  .npc-draft-banner,
  .npc-draft-save,
  .npc-draft-photos {
    display: none !important;
  }
}

/* 1.0.139: paid out of the day */
.npc-list__amount {
  margin-left: auto;
  padding-left: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.npc-pd-head {
  padding: 18px 20px;
  background: var(--npc-p-card);
  border-radius: var(--npc-p-radius);
  text-align: center;
}
.npc-pd-head__label {
  margin: 0;
  font-size: 15px;
  color: var(--npc-p-muted);
}
.npc-pd-head__total {
  margin: 4px 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--npc-p-ink);
  font-variant-numeric: tabular-nums;
}
.npc-pd-head__sub {
  margin: 0;
  font-size: 14px;
  color: var(--npc-p-muted);
}
.npc-pd-alert {
  display: block;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: var(--npc-p-radius);
  background: #fff4e0;
  color: #5c3d00;
  font-weight: 500;
  text-decoration: none;
}
.npc-pd-empty {
  text-align: center;
  margin: 16px 0;
}
.npc-pd-done {
  padding: 16px 20px;
  background: var(--npc-p-accent-tint);
  border-radius: var(--npc-p-radius);
  color: var(--npc-p-accent-dark);
}
.npc-pd-done p {
  margin: 0 0 4px;
}
.npc-pd-kept {
  color: var(--npc-p-accent-dark);
}
.npc-pd-match {
  min-height: 1.4em;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
}
.npc-pd-match.is-ok {
  color: var(--npc-p-accent-dark);
}
.npc-pd-match.is-bad {
  color: #c0392b;
}
.npc-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  font-weight: 500;
  cursor: pointer;
}
.npc-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.npc-switch__ui {
  position: relative;
  flex: 0 0 auto;
  width: 51px;
  height: 31px;
  border-radius: 31px;
  background: #e5e5ea;
  transition: background 0.2s;
}
.npc-switch__ui::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.npc-switch input:checked + .npc-switch__ui {
  background: var(--npc-p-accent);
}
.npc-switch input:checked + .npc-switch__ui::after {
  transform: translateX(20px);
}
.npc-switch input:focus-visible + .npc-switch__ui {
  outline: 2px solid var(--npc-p-accent);
  outline-offset: 2px;
}
input.is-auto {
  background: var(--npc-p-bg);
  color: var(--npc-p-muted);
}
.npc-pd-actions .npc-link-btn--danger,
.npc-portal__btn.npc-link-btn--danger {
  color: #c0392b;
}

/* 1.0.141: in-page confirmation (where popups are blocked) */
.npc-confirm-armed {
  background: #c0392b !important;
  border-color: #c0392b !important;
  color: #fff !important;
}
.npc-confirm-note {
  display: block;
  flex-basis: 100%;
  margin: 6px 0 0;
  font-size: 14px;
  color: #c0392b;
  font-weight: 500;
}

/* 1.0.146: Team → import from Excel */
.npc-import {
  margin: 20px 0;
  padding: 0 18px;
  border-radius: var(--npc-p-radius);
  background: #fff;
}
.npc-import > summary {
  padding: 16px 0;
  font-weight: 600;
  color: var(--npc-p-accent);
  cursor: pointer;
}
.npc-import[open] { padding-bottom: 18px; }
.npc-import__cols { margin: 8px 0 12px 1.2em; padding: 0; }
.npc-import__cols li { margin: 2px 0; }
.npc-import__list .is-skipped { opacity: 0.6; }
.npc-import__list .npc-paid-list__item { align-items: center; }
.npc-badge--ok { background: #e8f3ec; color: #0f5132; }
.npc-badge--muted { background: #eef0f3; color: #4b5563; }

/* 1.0.148: head office portal */
.npc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.npc-list__chev { margin-left: auto; color: #9ca3af; font-size: 22px; line-height: 1; }
.npc-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; padding: 4px; border-radius: 12px; background: #e9e9ee; }
.npc-seg__item { flex: 1 1 auto; padding: 8px 14px; border-radius: 9px; color: #1f2937; font-weight: 500; text-align: center; text-decoration: none; }
.npc-seg__item.is-on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); color: var(--npc-p-accent-dark); font-weight: 600; }
.npc-hop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; }
.npc-hop-bar select { padding: 8px 12px; border-radius: 10px; border: 1px solid #d1d5db; font: inherit; background: #fff; }
.npc-hop-bar__count { color: #6b7280; }
.npc-hop-bar__bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 0 auto; }
.npc-hop-confirm { flex: 1 1 100%; padding: 12px 14px; border-radius: 12px; background: #fdecea; }
.npc-hop-confirm p { margin: 0 0 8px; font-weight: 600; color: #7f1d1d; }
.npc-hop-danger { background: #c0392b !important; }
.npc-hop-list { display: grid; gap: 10px; }
.npc-hop-entry { border-radius: var(--npc-p-radius); background: #fff; }
.npc-hop-entry.is-selected { outline: 2px solid #c0392b; }
.npc-hop-entry > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.npc-hop-entry > summary::-webkit-details-marker { display: none; }
.npc-hop-entry__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.npc-hop-entry__title { font-weight: 600; }
.npc-hop-entry__meta { color: #6b7280; font-size: 14px; }
.npc-hop-entry__body { padding: 0 18px 16px; border-top: 1px solid #f0f0f3; }
.npc-hop-entry__h { margin: 14px 0 6px; font-size: 14px; color: #6b7280; text-transform: uppercase; letter-spacing: .04em; }
.npc-hop-entry__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 18px; margin: 0; }
.npc-hop-entry__grid dt { color: #6b7280; font-size: 13px; }
.npc-hop-entry__grid dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.npc-hop-entry__missing { margin: 12px 0 0; color: #8a5a00; }
.npc-hop-entry__pics { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.npc-hop-entry__pics a { display: flex; flex-direction: column; gap: 4px; width: 120px; font-size: 13px; color: var(--npc-p-accent); text-decoration: none; }
.npc-hop-entry__pics img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; background: #f2f2f7; }
.npc-hop-check { display: inline-flex; align-items: center; gap: 6px; }
.npc-hop-check input { width: 20px; height: 20px; }

/* 1.0.149: other forms restyled — grouped sections, sticky bottom buttons */
.npc-portal__panel:has(> .npc-sect) {
  padding: 0;
  background: transparent;
}
@media screen {
  .npc-portal__panel:has(> .npc-sect) > .npc-logo--form { display: none; }
}
.npc-sect {
  margin: 0 0 16px;
  padding: 18px 20px 6px;
  border-radius: var(--npc-p-radius);
  background: var(--npc-p-card);
}
.npc-sect__title {
  margin: 0 0 12px;
  color: var(--npc-p-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.npc-sect > .npc-field ~ .npc-field { padding-top: 12px; border-top: 1px solid var(--npc-p-line); }
.npc-portal > .npc-hint > a:first-child { color: var(--npc-p-accent); font-weight: 500; text-decoration: none; }
.npc-sect .npc-ack { margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--npc-p-accent-tint); color: var(--npc-p-accent-dark); }
.npc-print-sheet > .npc-portal__actions:last-child,
.npc-pd-close > .npc-portal__actions:last-child {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 8px -4px 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-radius: 16px 16px 0 0;
  background: rgba(242, 242, 247, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 -1px 0 var(--npc-p-line);
}
.npc-print-sheet > .npc-portal__actions:last-child .npc-portal__btn:first-child { flex: 1 1 auto; }
@media print {
  .npc-sect { padding: 0; margin: 0 0 6px; background: none; }
  .npc-sect__title { display: none; }
  .npc-print-sheet > .npc-portal__actions:last-child { position: static; background: none; box-shadow: none; }
}

/* 1.0.150: clean-up pass */
/* Filters on a phone: one field per line so dates aren't cut off */
@media (max-width: 560px) {
  .npc-filters__row { grid-template-columns: minmax(0, 1fr); }
  .npc-filters__actions { display: flex; gap: 10px; }
  .npc-filters__actions .npc-portal__btn { flex: 1 1 0; }
}
/* Team list: name on its own line, details under it, buttons side by side */
.npc-staff-list .npc-paid-list__item { align-items: center; gap: 12px; }
.npc-staff-list .npc-paid-list__item > div:first-child strong { display: block; }
.npc-staff-list .npc-paid-list__item > div:first-child > .npc-hint:first-of-type { display: block; margin-top: 2px; }
.npc-staff-list__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.npc-staff-list__actions form { margin: 0; }
/* Team: the add form as a white card */
.npc-staff-form { padding: 18px 20px; border-radius: var(--npc-p-radius); background: var(--npc-p-card); }
/* Head office preview strip: compact */
.npc-preview-store { margin-bottom: 12px; }
.npc-portal__notice + .npc-preview-store { margin-top: -4px; }
/* Head office home: empty inbox as a calm card */
.npc-hop .npc-hint:only-of-type { padding: 18px 20px; border-radius: var(--npc-p-radius); background: var(--npc-p-card); }
.npc-hop-bar + .npc-hint { padding: 18px 20px; border-radius: var(--npc-p-radius); background: var(--npc-p-card); text-align: center; color: var(--npc-p-muted); }

/* 1.0.156: Accounts / Emails inside the head office portal (admin screens, portal look) */
.npc-portal.npc-hop--wide { max-width: 1120px; }
.npc-admin--portal { margin: 0; max-width: none; }
.npc-admin--portal .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.npc-admin--portal .notice { margin: 0 0 14px; padding: 12px 16px; border: 0; border-radius: 12px; background: #fff; }
.npc-admin--portal .notice p { margin: 0; }
.npc-admin--portal .notice-success { background: var(--npc-p-accent-tint); color: var(--npc-p-accent-dark); }
.npc-admin--portal .notice-error { background: #fdecea; color: #7f1d1d; }
.npc-admin--portal .notice-warning { background: #fff6e5; color: #6b4600; }
.npc-admin--portal .regular-text { width: 100%; max-width: 420px; }
.npc-admin--portal input[type="text"],
.npc-admin--portal input[type="email"],
.npc-admin--portal select,
.npc-admin--portal textarea { padding: 8px 12px; border: 1px solid #d1d1d6; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; }
.npc-admin--portal code { padding: 2px 6px; border-radius: 6px; background: #f2f2f7; font-size: 12px; }
.npc-admin--portal .npc-card { margin-bottom: 16px; background: #fff; }
.npc-admin--portal .npc-btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d1d1d6; background: #fff; color: #1d1d1f; cursor: pointer; font-family: inherit; text-decoration: none; }
.npc-admin--portal .npc-btn--primary { border-color: var(--npc-p-accent); background: var(--npc-p-accent); color: #fff; }
.npc-admin--portal label { margin: 0; }
.npc-admin--portal .npc-field > label,
.npc-admin--portal .npc-ho-form label.npc-field__label { display: block; margin: 0 0 6px; }
.npc-admin--portal input[type="checkbox"], .npc-admin--portal input[type="radio"] { width: auto; margin: 0 6px 0 0; vertical-align: -2px; }
.npc-admin--portal p > label + br { display: none; }
.npc-admin--portal p > label { display: block; margin: 0 0 6px; }

/* 1.0.159 / 1.0.161: store job board (/jobs/) and head office jobs (/ho/jobs/) */
.npc-jobs-add { margin: 0 0 24px; }
.npc-jobs-add .npc-portal__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.npc-jobs .npc-group { margin: 0 0 22px; }
.npc-jobs .npc-list__row {
  min-height: 44px;
  padding: 8px 16px;
  gap: 12px;
  flex-wrap: nowrap;
}
.npc-jobs .npc-list__title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}
.npc-jobs .npc-list__sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.npc-jobs-trail { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.npc-jobs-act { display: flex; margin: 0; }
.npc-jobs-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 6px;
  border: 0;
  background: none;
  color: var(--npc-p-accent);
  font-family: var(--npc-p-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.npc-jobs-ctrl:hover,
.npc-jobs-ctrl:focus-visible { opacity: 0.7; }
.npc-jobs .npc-badge { padding: 3px 8px; font-size: 12px; border-radius: 8px; }
.npc-jobs .npc-list__row.npc-jobs-empty {
  min-height: 52px;
  color: var(--npc-p-muted);
  font-size: 15px;
}
.npc-jobs-meta { display: block; margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--npc-p-muted); }
.npc-jobs-meta--declined { color: #b42318; }
.npc-jobs-meta--approved { color: var(--npc-p-accent); }
.npc-jobs-subhead {
  padding: 12px 16px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--npc-p-muted);
}
.npc-jobs-subhead:not(:first-child) { border-top: 1px solid var(--npc-p-bg); }

/* Head office cards */
.npc-jobs-card { margin: 0 0 12px; padding: 18px 16px 16px; border-radius: var(--npc-p-radius); background: var(--npc-p-card); }
.npc-jobs-card.is-focus { outline: 2px solid var(--npc-p-accent); }
.npc-jobs-card__title { margin: 0 0 2px; font-size: 18px; font-weight: 600; }
.npc-jobs-card__meta { margin: 0; color: var(--npc-p-muted); font-size: 15px; }
.npc-jobs-card__exp { margin: 4px 0 0; font-size: 13px; color: var(--npc-p-muted); }
.npc-jobs-card__note { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #f7f9f8; font-size: 13px; color: var(--npc-p-muted); }
.npc-jobs-btns { display: flex; gap: 12px; margin: 16px 0 0; max-width: 440px; }
.npc-jobs-btns > * { flex: 1 1 0; min-width: 0; }
.npc-jobs-btns .npc-jobs-act { display: block; }
.npc-jobs-btns .npc-portal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  text-align: center;
}
.npc-jobs-focus { margin: 0 0 24px; }
.npc-jobs-focus .npc-jobs-card { margin-bottom: 0; }
.npc-jobs-badge--no { background: #fdecea; color: #9a3412; }
.npc-jobs-banner { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; padding: 14px 18px; border-radius: var(--npc-p-radius); background: #fef3c7; color: #78350f; font-weight: 600; text-decoration: none; }
.npc-jobs-banner__n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: #b45309; color: #fff; font-size: 14px; }

/* Tap-list flow: department › position › summary */
.npc-jobs-flow { max-width: 560px; }
.npc-jobs-pick { min-height: 52px; }
.npc-jobs-kv { justify-content: space-between; min-height: 52px; }
.npc-jobs-kv__k { color: var(--npc-p-muted); font-size: 15px; }
.npc-jobs-kv__v { font-size: 17px; text-align: right; }
.npc-jobs-note { margin: 8px 0 0 16px; font-size: 13px; color: var(--npc-p-muted); }
.npc-jobs-send { margin: 24px 0 0; }
.npc-jobs-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
}

/* Native-style sheet (works without JS through :target; JS only adds .is-open) */
.npc-sheet { display: none; position: fixed; inset: 0; z-index: 1000; }
.npc-sheet:target,
.npc-sheet.is-open { display: flex; align-items: flex-end; justify-content: center; }
.npc-sheet__back { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.npc-sheet__wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}
.npc-sheet__card,
.npc-sheet__keep {
  display: block;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.npc-sheet__text { padding: 16px 16px 12px; text-align: center; }
.npc-sheet__title { margin: 0; font-size: 15px; font-weight: 600; }
.npc-sheet__body { margin: 4px 0 0; font-size: 13px; color: var(--npc-p-muted); }
.npc-sheet__row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 0;
  border-top: 1px solid var(--npc-p-bg);
  border-radius: 0;
  background: #fff;
  color: var(--npc-p-accent);
  font-family: var(--npc-p-font);
  font-size: 17px;
  font-weight: 400;
  text-align: center;
  cursor: pointer;
  list-style: none;
}
.npc-sheet__row::-webkit-details-marker { display: none; }
.npc-sheet__row--danger { color: #d70015; }
.npc-sheet__card .npc-sheet__row:not(.npc-sheet__row--danger) { color: var(--npc-p-ink); }
.npc-sheet__keep {
  margin-top: 8px;
  min-height: 52px;
  line-height: 52px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--npc-p-accent);
  text-decoration: none;
}
.npc-sheet__free { padding: 0 12px 12px; }
.npc-sheet__free input[type="text"] {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 0 12px;
  border: 1px solid var(--npc-p-line);
  border-radius: 10px;
  font-family: var(--npc-p-font);
  font-size: 17px;
}
.npc-sheet__free .npc-sheet__row { border: 0; border-radius: 10px; background: #fdecea; }
@media (min-width: 640px) {
  .npc-sheet:target,
  .npc-sheet.is-open { align-items: center; }
}

@media (max-width: 599px) {
  .npc-jobs-add .npc-portal__btn { display: flex; width: 100%; min-height: 52px; box-sizing: border-box; }
  .npc-jobs-card { padding: 16px 14px 14px; }
}

/* 1.0.162: Settings in the head office portal (/ho/settings/): grouped lists, one column, big phone buttons.
   Scoped to .npc-sp so no other portal page changes. */
.npc-portal.npc-sp { max-width: 720px; }
.npc-sp .npc-sp-body { margin: 0; max-width: none; }
.npc-sp .npc-sp-body .npc-lede { margin: 0 0 18px; padding: 0 16px; font-size: 15px; line-height: 1.45; color: var(--npc-p-muted); }
.npc-sp .npc-settings-form { max-width: none; }
.npc-sp .npc-settings-card,
.npc-sp .npc-hub__section { margin: 0 0 26px; }
.npc-sp .npc-hub__head { margin: 0 0 8px; padding: 0 16px; gap: 3px; }
.npc-sp .npc-hub__title { font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--npc-p-muted); }
.npc-sp .npc-hub__lede { max-width: none; font-size: 13px; line-height: 1.4; color: var(--npc-p-muted); }
.npc-sp .npc-hub__card,
.npc-sp .npc-hub__card--pad { padding: 0; border: 0; border-radius: var(--npc-p-radius); background: var(--npc-p-card); overflow: hidden; }
.npc-sp .npc-settings-grid,
.npc-sp .npc-settings-grid--2 { display: block; }
/* A row = a small grey label on top, the control under it */
.npc-sp .npc-hub__field { display: flex; flex-direction: column; gap: 6px; max-width: none; margin: 0; padding: 12px 16px; border-top: 1px solid var(--npc-p-line); font-size: 13px; font-weight: 500; color: var(--npc-p-muted); }
.npc-sp .npc-hub__card > :first-child,
.npc-sp .npc-settings-grid > :first-child { border-top: 0; }
.npc-sp .npc-hub__field input[type="text"],
.npc-sp .npc-hub__field input[type="url"],
.npc-sp .npc-hub__field input[type="number"],
.npc-sp .npc-hub__field select,
.npc-sp .npc-hub__field textarea { min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: #f2f2f7; font-size: 17px; font-weight: 400; color: var(--npc-p-ink); }
.npc-sp .npc-hub__field textarea { min-height: 88px; line-height: 1.4; }
.npc-sp .npc-hub__field textarea.npc-settings-code { min-height: 160px; font-size: 14px !important; }
/* Colour rows: label left, swatch right */
.npc-sp .npc-hub__field--color { flex-direction: row; align-items: center; justify-content: space-between; min-height: 52px; max-width: none; padding-top: 8px; padding-bottom: 8px; font-size: 16px; font-weight: 400; color: var(--npc-p-ink); }
.npc-sp .npc-hub__color-row { display: inline-flex; align-items: center; gap: 12px; }
.npc-sp .npc-hub__color-row code { font-size: 14px; color: var(--npc-p-muted); background: none; padding: 0; }
.npc-sp .npc-hub__color-row input[type="color"] { width: 48px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
/* Tick boxes */
.npc-sp .npc-hub__field--check,
.npc-sp .npc-settings-form .npc-hub__field--check { flex-direction: row; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 8px 16px; border-top: 1px solid var(--npc-p-line); font-size: 16px; color: var(--npc-p-ink); }
.npc-sp .npc-hub__field--check input[type="checkbox"] { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--npc-p-accent); }
/* Preview and plain text inside a card are rows too */
.npc-sp .npc-settings-preview { margin: 0; padding: 14px 16px; border: 0; border-top: 1px solid var(--npc-p-line); border-radius: 0; background: #fafafc; }
.npc-sp .npc-hub__card > .npc-muted { margin: 0; padding: 12px 16px; border-top: 1px solid var(--npc-p-line); font-size: 14px; line-height: 1.5; color: var(--npc-p-muted); overflow-wrap: anywhere; }
.npc-sp .npc-hub__card > .npc-muted:first-child { border-top: 0; }
.npc-sp .npc-hub__card code { overflow-wrap: anywhere; }
.npc-sp .npc-hub__card .npc-hub__actions { margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--npc-p-line); }
.npc-sp .npc-mt-md,
.npc-sp .npc-mt-sm { margin-top: 0; }
/* Save + link buttons */
.npc-sp .npc-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 48px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--npc-p-accent); color: #fff; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.npc-sp .npc-btn:hover,
.npc-sp .npc-btn:focus-visible { background: var(--npc-p-accent-dark); }
.npc-sp .npc-settings-form > .npc-hub__actions,
.npc-sp .npc-settings-form > p.submit { margin: 0 0 40px; padding: 0; }
@media (max-width: 599px) {
  .npc-sp .npc-btn,
  .npc-sp .npc-settings-form .npc-hub__actions .npc-btn { display: flex; width: 100%; min-height: 52px; }
  .npc-sp .npc-hub__field--color { min-height: 56px; }
}

/* 1.0.162: colour swatches and −/+ steppers on Settings */
.npc-sp .npc-swatches { flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; padding-top: 12px; padding-bottom: 12px; }
.npc-sp .npc-swatches__label { font-size: 16px; font-weight: 400; color: var(--npc-p-ink); }
.npc-sp .npc-swatches__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.npc-sp .npc-swatch { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); cursor: pointer; }
.npc-sp .npc-swatch.is-on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 3px #fff, 0 0 0 5px var(--npc-p-ink); }
.npc-sp .npc-swatch-other { margin-left: 4px; padding: 6px 10px; border: 0; border-radius: 8px; background: #f2f2f7; color: var(--npc-p-ink); font: inherit; font-size: 15px; cursor: pointer; }
.npc-sp .npc-swatch-other.is-on { background: var(--npc-p-ink); color: #fff; }
.npc-sp .npc-swatches__other { display: flex; align-items: center; gap: 10px; }
.npc-sp .npc-swatches__other[hidden] { display: none; }
.npc-sp .npc-swatches__other input[type="color"] { width: 48px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.npc-sp .npc-swatches__other .npc-swatch-hex { flex: 1; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; background: #f2f2f7; font-size: 17px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--npc-p-ink); }
.npc-sp .npc-step-field { align-items: stretch; }
.npc-sp .npc-step { display: flex; align-items: center; gap: 8px; }
.npc-sp .npc-step input[type="number"] { flex: 1; min-width: 0; text-align: center; -moz-appearance: textfield; }
.npc-sp .npc-step input[type="number"]::-webkit-outer-spin-button,
.npc-sp .npc-step input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.npc-sp .npc-step__btn { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: #f2f2f7; color: var(--npc-p-ink); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.npc-sp .npc-step__btn:active { background: #e5e5ea; }
@media (max-width: 599px) {
  .npc-sp .npc-step__btn { width: 52px; height: 52px; }
  .npc-sp .npc-step input[type="number"] { min-height: 52px; }
}
