/* ============================================================
   Paws Academy design system
   Palette + typography from docs/claude-design. Define tokens
   once here; components reference the custom properties only.
   ============================================================ */

/* Figtree, self-hosted (no Google Fonts CDN at runtime).
   Drop figtree-variable.woff2 into wwwroot/fonts/ and uncomment. Until then the
   stack falls back to the platform UI font, which is visually close. */
/*
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/figtree-variable.woff2') format('woff2-variations');
}
*/

:root {
  --pa-primary: #1F2E5C;
  --pa-primary-dark: #141F42;
  --pa-primary-tint: #E8EDF7;
  --pa-surface: #F5F7FB;
  --pa-bg: #E8ECF4;
  --pa-ink: #16203D;
  --pa-muted: #66708A;
  --pa-line: #D6DDEA;
  --pa-line-soft: #E4E9F2;
  --pa-accent: #E8720C;
  --pa-accent-ink: #9A4A08;
  --pa-accent-tint: #FDEBDC;
  --pa-accent-line: #F3C79E;
  --pa-track: #E3E8F3;
  --pa-success: #2E7D4F;
  --pa-on-primary: #ffffff;

  --pa-radius-input: 12px;
  --pa-radius-card: 16px;
  --pa-radius-shell: 32px;

  --pa-font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pa-bg);
  font-family: var(--pa-font);
  color: var(--pa-ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--pa-primary); }
a:hover { color: #7A3B63; }

::placeholder { color: #9AA3BA; }

/* ---- App shell: mobile-first full-bleed; a centred phone card on desktop ----
   On device the shell is pinned to the *dynamic* viewport height (100dvh tracks Safari's
   collapsing toolbar) so the bottom nav always sits on the real bottom edge, and the body pane
   scrolls internally (min-height: 0 lets flex actually constrain it — without it, long screens
   grow the shell and push the nav below the fold). safe-area padding clears the Dynamic
   Island/notch in installed-PWA mode; env() is 0 everywhere else so desktop is unaffected. */
.pa-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;      /* fallback for iOS < 15.4 */
  height: 100dvh;
  background: var(--pa-surface);
  position: relative;
  padding-top: env(safe-area-inset-top);
}

.pa-shell__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Room for the fixed bottom nav so the last content scrolls clear of it (mobile only). */
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

body { overscroll-behavior-y: none; }

/* App-like touch behaviour: taps and pans only — no double-tap-to-zoom (also removes the 300ms
   tap delay). Pinch-zoom is additionally blocked by the viewport meta in installed-PWA mode. */
html { touch-action: manipulation; }

@media (min-width: 480px) {
  body { display: grid; place-items: center; padding: 24px; }
  .pa-shell {
    width: 390px;
    height: min(820px, calc(100dvh - 48px));
    min-height: 640px;
    border-radius: var(--pa-radius-shell);
    box-shadow: 0 24px 60px rgba(17, 24, 48, 0.28), 0 2px 8px rgba(17, 24, 48, 0.12);
    overflow: hidden;
  }
}

/* ---- Bottom navigation ----
   Fixed to the visual viewport bottom on device: an in-flow bar at the base of a 100dvh box can
   render adrift on iOS when the dynamic viewport lags (notably right after the login keyboard
   closes) until a scroll recalculates it — position: fixed re-anchors immediately and rides
   Safari's collapsing toolbar. The desktop phone-frame override below puts it back in-flow.
   Bottom padding: the home-indicator inset minus most of itself — icons sit just clear of the
   indicator instead of floating high above it; max() keeps a sane floor on devices with no inset. */
.pa-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  border-top: 1px solid var(--pa-line-soft);
  background: #fff;
  padding: 4px 6px max(4px, calc(env(safe-area-inset-bottom) - 18px));
}

.pa-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #7A8399;
}

.pa-bottom-nav__item.active,
.pa-bottom-nav__item:hover { color: var(--pa-primary); }

.pa-bottom-nav__item:focus-visible {
  outline: 2px solid var(--pa-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

.pa-bottom-nav__item:disabled { opacity: 0.45; cursor: default; }

/* Desktop phone-frame: the nav goes back in-flow at the card's base (fixed would escape the frame). */
@media (min-width: 480px) {
  .pa-bottom-nav { position: static; }
  .pa-shell__body { padding-bottom: 0; }
}

/* Icon wrapper for nav tabs that carry an unread badge (Messages) */
.pa-bottom-nav__icon-wrap { position: relative; display: inline-flex; }
.pa-bottom-nav__badge {
  position: absolute;
  top: -4px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pa-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}
/* Static variant for inline use outside a nav icon (e.g. staff inbox rows) */
.pa-bottom-nav__badge--static { position: static; }

/* ---- Auth screens (login / forgot password) ---- */
.pa-auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
}

.pa-auth__logo { width: 150px; margin: 0 auto 8px; mix-blend-mode: multiply; }
.pa-auth__title { margin: 0 0 6px; font-size: 26px; font-weight: 800; text-align: center; color: var(--pa-ink); }
.pa-auth__sub { margin: 0 0 28px; font-size: 15px; text-align: center; color: var(--pa-muted); }
.pa-auth__foot { margin: 26px 0 0; text-align: center; font-size: 12px; color: #9AA3BA; }

.pa-auth .pa-input { margin-bottom: 14px; }
.pa-auth .pa-label { margin-top: 2px; }

.pa-forgot {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: right;
  margin: 0 0 20px;
}

.pa-auth .pa-btn { margin-top: 6px; }

/* ---- Content spacing ---- */
.pa-screen { padding: 24px 20px 20px; }
.pa-h1 { margin: 0; font-size: 23px; font-weight: 800; color: var(--pa-ink); }
.pa-sub { margin: 2px 0 0; font-size: 14px; color: var(--pa-muted); }

/* ---- Forms ---- */
.pa-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--pa-primary);
  margin: 0 0 6px;
}

.pa-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--pa-line);
  border-radius: var(--pa-radius-input);
  /* 16px minimum — anything smaller makes iOS Safari force-zoom the page when a field gains focus. */
  font-size: 16px;
  font-family: inherit; /* textareas otherwise fall back to the browser's monospace */
  background: #fff;
  color: var(--pa-ink);
}

.pa-input:focus { outline: 2px solid var(--pa-primary); outline-offset: 0; }

/* App-wide, not just in modals: iOS gives date/time inputs (and selects) an intrinsic minimum width wider
   than a phone card, so a date of birth or a records From/To field burst out of its box. Pin every field
   to its container and drop the native chrome that carries that width; 50px matches a text field. */
.pa-input { max-width: 100%; min-width: 0; }
input.pa-input[type="date"],
input.pa-input[type="time"],
input.pa-input[type="datetime-local"] {
  display: block;
  -webkit-appearance: none;
  appearance: none;
  min-height: 50px;
  text-align: left;
}
input.pa-input::-webkit-date-and-time-value { text-align: left; }

/* ---- Buttons ---- */
.pa-btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--pa-radius-input);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.pa-btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
.pa-btn:disabled { opacity: 0.5; cursor: default; }

.pa-btn--primary { background: var(--pa-primary); color: var(--pa-on-primary); border: none; }
.pa-btn--primary:hover { background: var(--pa-primary-dark); }

.pa-btn--secondary {
  background: #fff;
  color: var(--pa-primary);
  border: 1.5px solid var(--pa-primary);
}
.pa-btn--secondary:hover { background: var(--pa-primary-tint); }

/* ---- Cards / surfaces ---- */
.pa-card {
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: var(--pa-radius-card);
  padding: 16px;
}

.pa-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pa-primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
}

.pa-error {
  color: #B3261E;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

/* ---- Section headings inside cards ("VACCINATIONS", "NOTES", …) ---- */
.pa-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pa-muted);
  letter-spacing: 0.5px;
}

/* ---- Status chips (vaccinations, invoices) ---- */
.pa-chip {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pa-chip--success { background: #E3F0E7; color: var(--pa-success); }
.pa-chip--warning { background: var(--pa-accent-tint); color: var(--pa-accent-ink); }
.pa-chip--danger { background: #F9E0E2; color: #B0505E; }
.pa-chip--neutral { background: var(--pa-line-soft); color: var(--pa-muted); }

/* ---- Dog tabs (pill selector) on Dog profiles ---- */
.pa-dog-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }

.pa-dog-tab {
  padding: 9px 16px;
  background: #fff;
  color: var(--pa-ink);
  border: 1.5px solid var(--pa-line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pa-dog-tab--active { background: var(--pa-primary); color: var(--pa-on-primary); border-color: var(--pa-primary); }
.pa-dog-tab:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

.pa-dog-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pa-avatar--lg { width: 72px; height: 72px; font-size: 24px; flex: none; }

.pa-vaccination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--pa-line-soft);
}
.pa-vaccination-row:last-child { border-bottom: none; }
.pa-vaccination-row__name { font-size: 14px; font-weight: 700; color: var(--pa-ink); }
.pa-vaccination-row__due { font-size: 12px; color: #9AA3BA; }

.pa-dog-notes { margin: 0; font-size: 14px; line-height: 1.5; color: var(--pa-ink); }

/* ---- Staff: page heads, list rows, detail header ---- */
.pa-screen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pa-screen-head .pa-h1 { margin-bottom: 0; }

.pa-btn--inline {
  width: auto;
  padding: 10px 16px;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.pa-list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}
.pa-list-row:hover, .pa-list-row:focus-visible { border-color: var(--pa-primary); }
.pa-list-row:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
.pa-list-row__body { flex: 1; min-width: 0; }
.pa-list-row__title { font-size: 14px; font-weight: 700; color: var(--pa-ink); }
.pa-list-row__sub { font-size: 12px; color: var(--pa-muted); margin-top: 1px; }
.pa-list-row__meta { font-size: 11px; color: #9AA3BA; font-weight: 600; flex: none; }

.pa-detail-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pa-detail-head__body { flex: 1; min-width: 0; }

.pa-back-btn {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  cursor: pointer;
  font-size: 16px;
  color: var(--pa-primary);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.pa-back-btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

.pa-dog-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--pa-ink); }
.pa-dog-row > span:nth-child(2) { flex: 1; font-weight: 600; }
.pa-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pa-primary); flex: none; }

.pa-link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--pa-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pa-link-btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

.pa-inline-form { background: var(--pa-primary-tint); border-radius: 12px; padding: 14px; margin: 10px 0; }
.pa-inline-form .pa-input { margin-bottom: 10px; }
.pa-inline-form__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Every pop-up is the same bottom sheet (Nov 2026 standardisation) ----
   On a phone: slides up from the bottom, full width, rounded top, never taller than what's actually
   visible (100dvh tracks Safari's toolbars — inset: 0 alone can be taller than the visible screen),
   head pinned, body scrolls, action buttons pinned at the bottom clear of the home indicator.
   On desktop (the phone-frame layout) it's a centred card. */
.pa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;   /* fallback for iOS < 15.4 */
  height: 100dvh;
  z-index: 100;
  background: rgba(22, 32, 61, 0.5);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* Room above the sheet so the close button never sits under the Dynamic Island / status bar. */
  padding-top: calc(24px + env(safe-area-inset-top));
}
.pa-modal {
  width: 100%;
  max-width: 430px;
  max-height: 100%;
  min-width: 0;
  background: var(--pa-surface);
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  box-shadow: 0 -12px 40px rgba(17, 24, 48, 0.25);
}
@media (min-width: 480px) {
  .pa-modal-overlay { align-items: center; padding: 24px; }
  .pa-modal { max-width: 390px; border-radius: 24px; }
}
.pa-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--pa-primary-tint);
}
.pa-modal__close {
  border: none;
  background: var(--pa-primary-tint);
  color: var(--pa-primary);
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.pa-modal__close:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
.pa-modal__body {
  flex: 1;
  min-height: 0; /* lets flex actually constrain it so long content scrolls inside the sheet */
  overflow-y: auto;
  overflow-x: hidden; /* nothing inside may push the sheet sideways */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* The last thing in the body sits clear of the home indicator. */
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
/* Anything wide (photos, signature pads, tables, long links) shrinks or wraps to the sheet. */
.pa-modal__body > *, .pa-modal__body form > * { max-width: 100%; min-width: 0; }
.pa-modal__body img, .pa-modal__body canvas, .pa-modal__body svg, .pa-modal__body iframe, .pa-modal__body table { max-width: 100%; }
.pa-modal__body p, .pa-modal__body li, .pa-modal__body a { overflow-wrap: anywhere; }
.pa-modal__question { margin-bottom: 18px; }
.pa-modal__question .pa-label:first-child { margin-top: 0; }
.pa-modal__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--pa-primary-tint);
  background: var(--pa-surface);
}

.pa-success-card { text-align: center; }
.pa-temp-password {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--pa-primary);
  background: var(--pa-primary-tint);
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0;
  word-break: break-all;
}

/* ---- Buttons rendered as <a> (link styled as a full-width button) ---- */
.pa-btn--link {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
/* Any button that's a link (Dog record, Call, Waze…) reads as a button, never as underlined text. */
a.pa-btn { text-decoration: none; text-align: center; }

.pa-btn--danger-outline {
  background: transparent;
  color: #B0505E;
  border: 1.5px solid #E8C9CD;
}
.pa-btn--danger-outline:hover { background: #FBEEEF; }

/* ---- Training: bookings list, booking detail, book-training flow, staff schedule ---- */
.pa-list-row--muted { opacity: 0.75; }

.pa-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--pa-line-soft);
  font-size: 14px;
}
.pa-summary-row:first-child { border-top: none; }
.pa-summary-row > span:first-child { color: var(--pa-muted); }
.pa-summary-row > span:last-child { font-weight: 700; color: var(--pa-ink); text-align: right; }

/* Step progress (3-dot bar) on the booking flow */
.pa-progress-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.pa-progress-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--pa-line); }
.pa-progress-dot--active { background: var(--pa-primary); }

/* Service picker cards (booking flow step 1) */
.pa-service-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1.5px solid var(--pa-line-soft);
  border-radius: 14px;
  padding: 15px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: inherit;
}
.pa-service-card:hover { border-color: var(--pa-primary); }
.pa-service-card--active { background: var(--pa-primary-tint); border-color: var(--pa-primary); }
.pa-service-card:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
.pa-service-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.pa-service-card__name { font-size: 14px; font-weight: 700; color: var(--pa-ink); }
.pa-service-card__price { font-size: 14px; font-weight: 800; color: var(--pa-primary); }
.pa-service-card__meta { font-size: 13px; color: var(--pa-muted); margin-top: 3px; }

/* Time-slot grid (booking flow step 2) */
.pa-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pa-slot-btn {
  padding: 10px 6px;
  background: #fff;
  color: var(--pa-ink);
  border: 1.5px solid var(--pa-line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pa-slot-btn:hover { border-color: var(--pa-primary); }
.pa-slot-btn--active { background: var(--pa-primary); color: var(--pa-on-primary); border-color: var(--pa-primary); }
.pa-slot-btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

.pa-when-banner {
  background: var(--pa-primary-tint);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pa-primary);
  margin-top: 12px;
}

/* "NEXT UP" card on the customer Home screen */
.pa-nextup { background: var(--pa-primary); border-radius: 18px; padding: 20px; color: #fff; margin-bottom: 16px; }
.pa-nextup__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.pa-nextup__title { margin: 12px 0 4px; font-size: 19px; font-weight: 800; }
.pa-nextup__meta { margin: 0 0 14px; font-size: 14px; color: #C9D3E8; }
.pa-nextup__btn {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  color: var(--pa-primary);
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.pa-nextup__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Staff "This week" schedule */
.pa-week-nav { display: flex; gap: 8px; margin-bottom: 16px; }
.pa-week-nav .pa-btn--inline { flex: 1; text-align: center; justify-content: center; }
.pa-schedule-item { margin-bottom: 10px; }
.pa-schedule-item__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pa-schedule-item__actions { display: flex; gap: 8px; margin-top: 12px; }
.pa-schedule-item__actions .pa-btn--inline { flex: 1; text-align: center; justify-content: center; }

/* ---- Boarding: date-range calendar (book-boarding flow) ---- */
.pa-cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 8px; }
.pa-cal-nav { display: flex; align-items: center; gap: 8px; }
.pa-cal-nav__btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--pa-primary);
  display: grid;
  place-items: center;
  font-family: inherit;
}
.pa-cal-nav__btn:hover { border-color: var(--pa-primary); }
.pa-cal-nav__btn:disabled { opacity: 0.4; cursor: default; }
.pa-cal-nav__btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

.pa-calendar {
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: var(--pa-radius-card);
  padding: 14px 12px;
  margin-bottom: 8px;
}
.pa-calendar__weekdays,
.pa-calendar__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pa-calendar__weekdays { margin-bottom: 6px; }
.pa-calendar__weekday { text-align: center; font-size: 11px; font-weight: 700; color: #9AA3BA; }

.pa-calendar__day {
  height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--pa-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pa-calendar__day:hover:not(:disabled) { background: var(--pa-primary-tint); }
.pa-calendar__day:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 1px; }
.pa-calendar__day:disabled { color: #9AA3BA; cursor: default; }
.pa-calendar__day--full { text-decoration: line-through; }
.pa-calendar__day--empty { visibility: hidden; }
.pa-calendar__day--in-range { background: var(--pa-primary-tint); color: var(--pa-primary); }
.pa-calendar__day--selected { background: var(--pa-primary); color: var(--pa-on-primary); }
.pa-calendar__day--selected:hover { background: var(--pa-primary); }

/* ---- Bookings list: distinguishing icon bubble for training vs. boarding rows ---- */
.pa-list-row__icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
}
.pa-list-row__icon--training { background: var(--pa-primary-tint); color: var(--pa-primary); }
.pa-list-row__icon--boarding { background: var(--pa-accent-tint); color: var(--pa-accent-ink); }

/* ---- Client-detail Activity timeline: icon bubble per activity kind ---- */
.pa-list-row__icon--message { background: var(--pa-track); color: var(--pa-primary); }
.pa-list-row__icon--invoice { background: var(--pa-accent-tint); color: var(--pa-accent-ink); }
.pa-list-row__icon--paid { background: #E3F0E7; color: var(--pa-success); }
.pa-list-row__icon--report { background: var(--pa-primary-tint); color: var(--pa-primary); }
.pa-list-row__icon--neutral { background: var(--pa-line-soft); color: var(--pa-muted); }

/* "ACTIVE NOW" boarding card at the top of the customer Bookings list */
.pa-activenow { background: var(--pa-primary); border-radius: 16px; padding: 16px; margin-bottom: 16px; color: #fff; }
.pa-activenow__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pa-activenow__badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 3px 10px;
}
.pa-activenow__title { font-size: 15px; font-weight: 700; margin-top: 6px; }
.pa-activenow__meta { font-size: 13px; color: #C9D3E8; margin-top: 2px; }

/* ---- Report cards: list rows, detail sections, skills progress bars, practise-at-home ---- */
.pa-report-row {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: var(--pa-radius-card);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
}
.pa-report-row:hover, .pa-report-row:focus-visible { border-color: var(--pa-primary); }
.pa-report-row:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
.pa-report-row__head { display: flex; justify-content: space-between; align-items: center; }
.pa-report-row__date { font-size: 12px; font-weight: 700; color: var(--pa-accent); letter-spacing: 0.4px; }
.pa-report-row__arrow { color: #9AA3BA; }
.pa-report-row__title { font-size: 15px; font-weight: 700; color: var(--pa-ink); margin-top: 4px; }
.pa-report-row__summary { font-size: 13px; color: var(--pa-muted); margin-top: 3px; }

.pa-report-section {
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: var(--pa-radius-card);
  padding: 18px;
  margin-bottom: 14px;
}
.pa-report-section__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--pa-muted); letter-spacing: 0.5px; }
.pa-report-notes { margin: 0; font-size: 14px; line-height: 1.55; color: var(--pa-ink); }

/* Skills progress bars (Report detail + staff authoring form) */
.pa-skill { margin-bottom: 13px; }
.pa-skill:last-child { margin-bottom: 0; }
.pa-skill__head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.pa-skill__name { font-weight: 700; color: var(--pa-ink); }
.pa-skill__pct { font-weight: 700; color: var(--pa-primary); }
.pa-skill__track { height: 8px; background: var(--pa-track); border-radius: 4px; overflow: hidden; }
.pa-skill__fill { height: 100%; background: var(--pa-primary); border-radius: 4px; transition: width .4s ease; }

/* Practise-at-home accent card */
.pa-practise-card {
  background: var(--pa-accent-tint);
  border: 1px solid var(--pa-accent-line);
  border-radius: var(--pa-radius-card);
  padding: 18px;
}
.pa-practise-card__title { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--pa-accent-ink); letter-spacing: 0.5px; }
.pa-practise-item { display: flex; gap: 8px; font-size: 14px; color: var(--pa-ink); margin-bottom: 6px; }
.pa-practise-item:last-child { margin-bottom: 0; }
.pa-practise-item__bullet { color: var(--pa-accent); font-weight: 800; }

/* Repeatable rows on the staff report-card authoring form (skills, practise items) */
.pa-form-repeat-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.pa-form-repeat-row .pa-input { margin-bottom: 0; }
.pa-form-repeat-row select.pa-input { flex: 1; }
.pa-remove-row-btn {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--pa-line-soft);
  background: #fff;
  color: #B0505E;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
}
.pa-remove-row-btn:hover { background: #FBEEEF; }
.pa-remove-row-btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

/* ---- "Get the app" card (Home, until opened from the home screen) ---- */
.pa-install-card {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--pa-primary-tint); border: 1px solid #BCC6DD; border-radius: var(--pa-radius-card);
  padding: 14px; margin-bottom: 16px; color: var(--pa-ink);
}
.pa-install-card__icon { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.pa-install-card__body { flex: 1; min-width: 0; }
.pa-install-card__title { margin: 0 0 4px; font-size: 15px; font-weight: 800; color: var(--pa-primary); }
.pa-install-card__text { margin: 0 0 8px; font-size: 13.5px; }
.pa-install-card__steps { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.pa-install-card__share {
  display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid var(--pa-primary);
  border-radius: 5px; font-size: 11px; color: var(--pa-primary); vertical-align: -3px;
}

/* ---- Booking requests (Tom's yes / no / other dates) ---- */
.pa-request { margin-bottom: 12px; }
.pa-request__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pa-request__kind { font-size: 12.5px; font-weight: 800; color: var(--pa-muted); text-transform: uppercase; letter-spacing: .04em; }
.pa-request__client { display: block; font-size: 17px; font-weight: 800; color: var(--pa-ink); text-decoration: none; }
.pa-request__what { margin: 2px 0 0; font-size: 15px; font-weight: 700; }
.pa-request__when { margin: 2px 0 0; font-size: 14px; color: var(--pa-primary); font-weight: 700; }
.pa-request__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pa-request__answer { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--pa-muted); }

/* ---- Install banner (iOS add-to-home-screen) ---- */
.pa-install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pa-primary-tint);
  border: 1px solid #BCC6DD;
  border-radius: var(--pa-radius-card);
  padding: 12px 14px;
  margin: 12px 16px 0;
  font-size: 13px;
  color: var(--pa-primary);
}

.pa-install-banner__close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--pa-primary);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

/* ---- Active stay: progress bar, update feed, photo grid ---- */
.pa-stay-progress { margin-bottom: 18px; }
.pa-stay-progress__row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
}
.pa-stay-progress__row > span:first-child { font-weight: 700; color: var(--pa-ink); }
.pa-stay-progress__row > span:last-child { font-weight: 700; color: var(--pa-primary); }
.pa-stay-progress__track { height: 8px; background: var(--pa-track); border-radius: 4px; overflow: hidden; }
.pa-stay-progress__fill { height: 100%; background: var(--pa-primary); border-radius: 4px; transition: width .4s ease; }

.pa-stay-update { margin-bottom: 12px; }
.pa-stay-update__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.pa-stay-update__label { font-size: 12px; font-weight: 800; color: var(--pa-accent); letter-spacing: 0.4px; }
.pa-stay-update__tag { font-size: 11px; font-weight: 700; color: #9AA3BA; }
.pa-stay-update__note { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--pa-ink); }
.pa-stay-update__note:last-child { margin-bottom: 0; }

.pa-stay-update__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pa-stay-update__photo {
  height: 120px;
  padding: 0;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pa-track);
  cursor: pointer;
}
.pa-stay-update__photo:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
.pa-stay-update__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pa-stay-comingup {
  background: var(--pa-track);
  border: 1px dashed #BCC6DD;
  border-radius: var(--pa-radius-card);
  padding: 16px;
  text-align: center;
}
.pa-stay-comingup__title { font-size: 13px; font-weight: 700; color: var(--pa-primary); }
.pa-stay-comingup__sub { font-size: 12px; color: var(--pa-muted); margin-top: 3px; }

/* Full-size photo overlay, opened by tapping a thumbnail in the update feed */
.pa-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 32, 61, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
  cursor: zoom-out;
}
.pa-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ---- Avatar photo variant (dog profile photo, with an initials fallback) ---- */
.pa-avatar__img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.pa-avatar--upload { position: relative; overflow: visible; }
.pa-avatar__upload {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pa-primary);
  color: #fff;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  cursor: pointer;
}
.pa-avatar__upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ---- Billing: invoice cards (customer Payments, staff Invoices), receipts, client-detail rows ---- */
.pa-invoice-card {
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: var(--pa-radius-card);
  padding: 16px;
  margin-bottom: 10px;
}
.pa-invoice-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 8px; }
.pa-invoice-card__id { font-size: 12px; font-weight: 700; color: #9AA3BA; }
.pa-invoice-card__row { display: flex; justify-content: space-between; align-items: center; }
.pa-invoice-card__label { font-size: 14px; font-weight: 700; color: var(--pa-ink); }
.pa-invoice-card__amount { font-size: 16px; font-weight: 800; color: var(--pa-primary); }

.pa-invoice-card__pay-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  background: var(--pa-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pa-invoice-card__pay-btn:hover:not(:disabled) { background: #D06508; }
.pa-invoice-card__pay-btn:disabled { opacity: 0.6; cursor: default; }
.pa-invoice-card__pay-btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

/* Receipt (lines + payment) shown when a Paid invoice card is expanded */
.pa-receipt { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--pa-line-soft); }

/* "N invoice(s) due" alert on the customer Home screen */
.pa-invoice-alert {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--pa-accent-tint);
  border: 1px solid var(--pa-accent-line);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 16px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
}
.pa-invoice-alert__label { font-weight: 700; color: var(--pa-accent-ink); }
.pa-invoice-alert__cta { font-weight: 700; color: var(--pa-accent); }
.pa-invoice-alert:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

/* Staff client-detail INVOICES row */
.pa-client-invoice-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--pa-line-soft); }
.pa-client-invoice-row:last-child { border-bottom: none; }
.pa-client-invoice-row__label { font-size: 13px; font-weight: 700; color: var(--pa-ink); }
.pa-client-invoice-row__date { font-size: 11px; color: #9AA3BA; }
.pa-client-invoice-row__amount-group { display: flex; align-items: center; gap: 8px; }
.pa-client-invoice-row__amount { font-size: 14px; font-weight: 800; color: var(--pa-primary); }

/* ---- Messaging: thread header/bubbles/input, staff inbox rows ---- */
.pa-message-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.pa-message-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--pa-line-soft);
  background: var(--pa-surface);
  flex: none;
}
.pa-message-header__title { font-size: 16px; font-weight: 800; color: var(--pa-ink); }
.pa-message-header__sub { font-size: 12px; font-weight: 700; color: var(--pa-success); margin-top: 1px; }

.pa-message-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pa-message-row { display: flex; }
.pa-message-row--mine { justify-content: flex-end; }
.pa-message-row--theirs { justify-content: flex-start; }

.pa-message-bubble { max-width: 78%; padding: 10px 14px; font-size: 14px; line-height: 1.45; }
.pa-message-bubble--mine {
  background: var(--pa-primary);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.pa-message-bubble--theirs {
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  color: var(--pa-ink);
  border-radius: 16px 16px 16px 4px;
}
.pa-message-bubble__time { font-size: 10px; margin-top: 4px; opacity: 0.65; }

.pa-message-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--pa-line-soft);
  background: #fff;
  align-items: center;
  flex: none;
}
.pa-message-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--pa-line);
  border-radius: 999px;
  font-size: 14px;
  background: var(--pa-surface);
  font-family: inherit;
  color: var(--pa-ink);
}
.pa-message-input:focus { outline: 2px solid var(--pa-primary); outline-offset: 0; }
.pa-message-input:disabled { opacity: 0.7; }

.pa-message-send-btn {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--pa-primary);
  color: #fff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
}
.pa-message-send-btn:hover:not(:disabled) { background: var(--pa-primary-dark); }
.pa-message-send-btn:disabled { opacity: 0.5; cursor: default; }
.pa-message-send-btn:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }

/* ---- Blazor framework styles (kept from template) ---- */
.validation-message { color: #B3261E; font-size: 13px; }
.invalid { outline: 1px solid #e50000; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }

.blazor-error-boundary {
  background: #b32121;
  padding: 1rem 1rem 1rem 1rem;
  color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

/* ---- Account menu (top-right avatar dropdown) ---- */
.pa-usermenu { position: relative; }
.pa-usermenu__trigger { cursor: pointer; list-style: none; user-select: none; }
.pa-usermenu__trigger::-webkit-details-marker { display: none; }
.pa-usermenu__trigger:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
.pa-usermenu[open] > .pa-usermenu__trigger { box-shadow: 0 0 0 2px var(--pa-primary-tint); }
.pa-usermenu__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(17, 24, 48, 0.18);
  padding: 8px;
}
.pa-usermenu__email {
  font-size: 12px;
  color: var(--pa-muted);
  padding: 6px 10px 10px;
  border-bottom: 1px solid var(--pa-line-soft);
  margin-bottom: 6px;
  word-break: break-all;
}
.pa-usermenu__item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--pa-primary);
  cursor: pointer;
}
.pa-usermenu__item:hover { background: var(--pa-primary-tint); }
a.pa-usermenu__item { display: block; text-decoration: none; }

/* ---- Dashboard stat widgets ---- */
.pa-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pa-stat {
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: var(--pa-radius-card);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 84px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
a.pa-stat:hover { border-color: var(--pa-primary); box-shadow: 0 6px 16px rgba(17, 24, 48, 0.10); }
a.pa-stat:active { transform: translateY(1px); }
a.pa-stat:focus-visible { outline: 2px solid var(--pa-primary); outline-offset: 2px; }
a.pa-stat--accent:hover { box-shadow: 0 6px 18px rgba(31, 46, 92, 0.35); }
.pa-stat__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--pa-muted);
}
.pa-stat__value { font-size: 24px; font-weight: 800; color: var(--pa-ink); line-height: 1.1; }
.pa-stat__sub { font-size: 12px; color: var(--pa-muted); }
.pa-stat--accent { background: var(--pa-primary); border-color: var(--pa-primary); }
.pa-stat--accent .pa-stat__label { color: rgba(255, 255, 255, 0.72); }
.pa-stat--accent .pa-stat__value { color: #fff; }

/* ---- Quick links row ---- */
.pa-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pa-quicklink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: var(--pa-radius-input);
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pa-ink);
  text-decoration: none;
}
.pa-quicklink::after { content: "→"; color: #9AA3BA; }
.pa-quicklink:hover { border-color: var(--pa-primary); color: var(--pa-primary); }


/* ---- Circuit reconnect overlay (see App.razor #components-reconnect-modal) ----
   Hidden until blazor.web.js applies a state class; the failed/rejected states swap the
   "retrying" line for the "give us a ring" one and reveal the reload button. */
#components-reconnect-modal { display: none; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(22, 32, 61, 0.55);
}

.pa-reconnect__card {
  background: var(--pa-surface);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 320px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(17, 24, 48, 0.35);
}

.pa-reconnect__emoji { font-size: 42px; margin-bottom: 10px; }

.pa-reconnect__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--pa-ink);
}

.pa-reconnect__sub {
  margin: 0;
  font-size: 14px;
  color: var(--pa-muted);
}

.pa-reconnect__reload {
  display: none;
  margin-top: 16px;
  text-decoration: none;
}

#components-reconnect-modal .pa-reconnect__sub--failed { display: none; }

#components-reconnect-modal.components-reconnect-failed .pa-reconnect__sub--retrying,
#components-reconnect-modal.components-reconnect-rejected .pa-reconnect__sub--retrying { display: none; }

#components-reconnect-modal.components-reconnect-failed .pa-reconnect__sub--failed,
#components-reconnect-modal.components-reconnect-rejected .pa-reconnect__sub--failed { display: block; }

#components-reconnect-modal.components-reconnect-failed .pa-reconnect__reload,
#components-reconnect-modal.components-reconnect-rejected .pa-reconnect__reload { display: inline-block; }

/* ---- Collapsible detail sections (staff client view) ---- */
.pa-section { padding: 0; overflow: hidden; margin-bottom: 12px; }
.pa-section__head { margin: 0; }
.pa-section__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.pa-section__toggle:hover { background: var(--pa-primary-tint); }
.pa-section__chevron {
  color: var(--pa-muted);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.pa-section--open .pa-section__chevron { transform: rotate(90deg); }
.pa-section__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--pa-ink);
}
.pa-section__summary {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--pa-muted);
  font-size: 12.5px;
  font-weight: 600;
}
.pa-section__body { padding: 0 16px 16px; }
.pa-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

/* ---- Clients/Dogs segmented search toggle (staff clients screen) ---- */
.pa-mode-toggle {
  display: flex;
  background: #fff;
  border: 1px solid var(--pa-line-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 12px;
}
.pa-mode-toggle__btn {
  flex: 1;
  border: none;
  background: none;
  padding: 8px 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--pa-muted);
  cursor: pointer;
}
.pa-mode-toggle__btn.active { background: var(--pa-primary); color: #fff; }

/* Roomier collapsible-section bodies (overrides the earlier declaration). */
.pa-section__body { padding: 4px 16px 18px; }
.pa-section__body .pa-dog-row { padding: 6px 0; }

/* ---- Forms inside modal sheets ----
   The sheet itself is the container: drop the tinted inline-form card, and pin every field to the
   sheet's width — iOS date/time/select inputs have intrinsic widths that otherwise overflow it. */
.pa-modal__body .pa-inline-form { background: none; border-radius: 0; padding: 0; margin: 0; }
.pa-modal__body .pa-input,
.pa-modal__body select.pa-input,
.pa-modal__body textarea.pa-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-bottom: 12px;
  display: block;
}
.pa-modal__body input[type="date"].pa-input,
.pa-modal__body input[type="time"].pa-input {
  -webkit-appearance: none;
  appearance: none;
  min-height: 50px;
}
/* A form's closing Save / Cancel row is pinned to the bottom of the sheet (sticky inside the scrolling
   body) as equal-width buttons, so they're always on screen however long the form is. */
.pa-modal__body > :last-child > .pa-inline-form__actions:last-child,
.pa-modal__body > .pa-inline-form__actions:last-child {
  position: sticky;
  bottom: calc(-16px - env(safe-area-inset-bottom));
  z-index: 2;
  margin: 8px -16px calc(-16px - env(safe-area-inset-bottom));
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--pa-surface);
  border-top: 1px solid var(--pa-primary-tint);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  max-width: none; /* overrides the "nothing wider than the sheet" rule so the negative margins reach both edges */
}
.pa-modal__body > :last-child > .pa-inline-form__actions:last-child > .pa-btn,
.pa-modal__body > .pa-inline-form__actions:last-child > .pa-btn { width: 100%; }
.pa-modal__body .pa-inline-form__actions { margin-top: 4px; }

/* While any pop-up is open the bottom nav is hidden and the page behind stops scrolling. iOS can paint
   the fixed nav over a fixed overlay that lives inside the scrolling body, covering a sheet's buttons —
   with the nav gone that can't happen, and a sheet reads as the only thing on screen, like a native app. */
/* While a sheet / viewer is open (class set by ios-viewport-fix.js watching the page — iOS Safari doesn't reliably
   re-check a :has() rule when the sheet goes, which used to leave the bottom bar hidden after closing one). */
.pa-overlay-open .pa-bottom-nav { display: none; }
.pa-overlay-open .pa-shell__body { overflow: hidden; }

/* Yes/No answer pair on the collection survey */
.pa-yesno { display: flex; gap: 8px; margin-bottom: 12px; }
.pa-yesno__btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--pa-radius-input);
  border: 1.5px solid var(--pa-line);
  background: #fff;
  color: var(--pa-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.pa-yesno__btn.active { border-color: var(--pa-primary); background: var(--pa-primary); color: #fff; }

/* Signature pad + captured signature. 3:1 matches the 600x200 box signatures are stored in. */
.pa-signature { margin-bottom: 14px; }
.pa-signature__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.pa-signature__clear {
  background: none; border: 0; padding: 4px 0 4px 12px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--pa-primary); cursor: pointer;
}
.pa-signature__canvas {
  display: block; width: 100%; aspect-ratio: 3 / 1;
  background: #fff; border: 1px solid var(--pa-line); border-radius: 12px; color: var(--pa-ink);
  /* Without this the browser treats a finger on the canvas as a scroll/zoom gesture and no
     pointermove events arrive - the pad would record taps but never a line. */
  touch-action: none;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.pa-signature-view { margin: 0 0 12px; }
.pa-signature-view svg {
  display: block; width: 100%; max-width: 360px; aspect-ratio: 3 / 1;
  background: #fff; border: 1px solid var(--pa-line-soft); border-radius: 12px; color: var(--pa-ink);
}
.pa-signature-view figcaption { margin-top: 4px; }

/* Dog body-map. 3:2 matches the outline's 300x200 viewBox, so percentage-placed pins line up with it. */
.pa-bodymap {
  position: relative; width: 100%; max-width: 420px; aspect-ratio: 3 / 2; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--pa-line); border-radius: 12px; color: var(--pa-muted);
  -webkit-user-select: none; user-select: none;
}
.pa-bodymap--editable { cursor: crosshair; }
.pa-bodymap svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.pa-bodymap__pin {
  position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: var(--pa-primary); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---- New-version banner (see app-version.js) ---- */
.pa-update-banner {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  padding: 12px 20px;
  border: none;
  border-radius: 999px;
  background: var(--pa-accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(17, 24, 48, 0.35);
  cursor: pointer;
  white-space: nowrap;
}


/* =====================================================================================
   Usability redesign (Sept 2026) — shared pieces for the redesigned staff screens.
   Same palette, type and card style; built for fewer taps and nothing clipped.
   ===================================================================================== */

/* ---- Page header: big title + one filled action ---- */
.pa-page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pa-page-head__title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--pa-ink); }
.pa-page-head__sub { margin: 2px 0 0; font-size: 14px; color: var(--pa-muted); }
.pa-page-head__back { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* ---- Count tiles (Home) ---- */
.pa-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pa-tile {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 12px 14px; border-radius: var(--pa-radius-card);
  background: #fff; border: 1px solid var(--pa-line-soft);
  color: var(--pa-ink); text-decoration: none;
}
.pa-tile__value { font-size: 26px; font-weight: 800; line-height: 1.1; }
.pa-tile__label { font-size: 13px; font-weight: 700; color: var(--pa-muted); }
.pa-tile--primary { background: var(--pa-primary); border-color: var(--pa-primary); color: #fff; }

/* Home: quick action buttons (icon over label) and the business cards */
.pa-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pa-quick__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 92px; padding: 14px 6px; border-radius: 18px; border: 1px solid var(--pa-line-soft);
  background: #fff; color: var(--pa-ink); text-decoration: none; font-weight: 800; font-size: 14px;
  box-shadow: 0 1px 2px rgba(17, 24, 48, 0.06); transition: transform 0.05s ease, border-color 0.15s ease;
}
.pa-quick__btn:hover { border-color: var(--pa-primary); color: var(--pa-ink); }
.pa-quick__btn:active { transform: translateY(1px); }
.pa-quick__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--pa-primary); color: #fff; }
.pa-quick__label { text-align: center; line-height: 1.2; }
.pa-biz { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.pa-biz__card {
  display: flex; flex-direction: column; gap: 4px; min-height: 96px; padding: 14px 16px; border-radius: 18px;
  border: 1px solid var(--pa-line-soft); background: #fff; color: var(--pa-ink); text-decoration: none;
  box-shadow: 0 1px 2px rgba(17, 24, 48, 0.06); transition: transform 0.05s ease, border-color 0.15s ease;
}
.pa-biz__card:hover { border-color: var(--pa-primary); color: var(--pa-ink); }
.pa-biz__card:active { transform: translateY(1px); }
.pa-biz__label { font-size: 13px; font-weight: 700; color: var(--pa-muted); }
.pa-biz__value { font-size: 24px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.pa-biz__sub { font-size: 13px; color: var(--pa-muted); margin-top: auto; }
.pa-biz__icon { color: var(--pa-primary); }
.pa-biz__card--attention .pa-biz__value { color: #B0505E; } /* same as the Invoices "To collect" figure */
.pa-tile--primary .pa-tile__label { color: #DCE3F1; }

/* ---- Section label: small uppercase heading with an optional count ---- */
.pa-section-label {
  margin: 18px 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--pa-muted);
}
.pa-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }
.pa-section-title h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--pa-ink); }
.pa-section-title__count { color: var(--pa-muted); font-weight: 700; }

/* ---- Grouped list card: rows separated by hairlines, whole row tappable ---- */
.pa-group { background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card); overflow: hidden; }
.pa-group + .pa-group { margin-top: 10px; }
.pa-group__row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 52px; padding: 12px 14px;
  background: none; border: 0; border-top: 1px solid var(--pa-line-soft);
  font: inherit; color: var(--pa-ink); text-align: left; text-decoration: none;
}
.pa-group__row:first-child { border-top: 0; }
button.pa-group__row, a.pa-group__row { cursor: pointer; }
button.pa-group__row:hover, a.pa-group__row:hover { background: var(--pa-surface); }
.pa-group__main { flex: 1; min-width: 0; }
.pa-group__title { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.pa-group__sub { font-size: 13px; color: var(--pa-muted); overflow-wrap: anywhere; }
.pa-group__trail { flex: none; display: flex; align-items: center; gap: 8px; color: var(--pa-muted); font-size: 13px; }
.pa-group__chevron { flex: none; color: #98A2B9; font-size: 18px; line-height: 1; }
.pa-group__add { color: var(--pa-primary); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pa-group__time { flex: none; width: 52px; font-weight: 800; font-size: 15px; }

/* ---- Filter chips in one scrolling row ---- */
.pa-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px; scrollbar-width: none; }
.pa-chips::-webkit-scrollbar { display: none; }
.pa-chip-btn {
  flex: none; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--pa-line); color: var(--pa-ink);
  font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap;
}
.pa-chip-btn--active { background: var(--pa-primary); border-color: var(--pa-primary); color: #fff; }
.pa-chip-btn--attention { color: var(--pa-accent-ink); border-color: var(--pa-accent-line); }

/* ---- Search box ---- */
.pa-search { position: relative; margin-bottom: 12px; }
.pa-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--pa-muted); pointer-events: none; }
.pa-search .pa-input { padding-left: 40px; }

/* ---- Avatar with initials ---- */
.pa-initials {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pa-primary); color: #fff; font-weight: 800; font-size: 15px;
}
.pa-initials--lg { width: 56px; height: 56px; font-size: 22px; }

/* ---- Action cards: attention items with buttons right on them ---- */
.pa-action-card { background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card); padding: 14px; }
.pa-action-card + .pa-action-card { margin-top: 10px; }
.pa-action-card__kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pa-accent-ink); }
.pa-action-card__kicker--danger { color: #B0505E; }
.pa-action-card__title { font-size: 16px; font-weight: 800; color: var(--pa-ink); overflow-wrap: anywhere; }
.pa-action-card__sub { font-size: 13px; color: var(--pa-muted); overflow-wrap: anywhere; }
.pa-action-card__row { display: flex; align-items: center; gap: 12px; }
.pa-action-card__buttons { display: flex; gap: 8px; margin-top: 12px; }
.pa-action-card__buttons > * { flex: 1; }

/* ---- Round icon action tiles (Call / Email / Book / Charge) ---- */
.pa-icon-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pa-icon-action {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 10px 4px;
  background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card);
  color: var(--pa-primary); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer;
}
.pa-icon-action[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---- Banners ---- */
.pa-banner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--pa-radius-card); text-decoration: none; margin-bottom: 14px; }
.pa-banner--money { background: #E5EAF5; color: var(--pa-ink); }
.pa-banner--money .pa-banner__title { color: #B0505E; }
.pa-banner--warn { background: #FFF6EC; border: 1px solid var(--pa-accent-line); color: var(--pa-ink); }
.pa-banner--warn .pa-banner__title { color: var(--pa-accent-ink); }
.pa-banner__main { flex: 1; min-width: 0; }
.pa-banner__title { font-weight: 800; font-size: 16px; }
.pa-banner__sub { font-size: 14px; color: var(--pa-muted); }
.pa-banner__link { flex: none; font-weight: 800; color: var(--pa-primary); }

/* ---- Progress bar ---- */
.pa-progress { height: 8px; border-radius: 4px; background: var(--pa-line-soft); overflow: hidden; }
.pa-progress__fill { height: 100%; background: var(--pa-success); border-radius: 4px; }
.pa-progress--warn .pa-progress__fill { background: var(--pa-accent); }

/* ---- Done / missing dots ---- */
.pa-status-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--pa-success); }
.pa-status-dot--missing { background: none; border: 2px solid var(--pa-accent); }

/* ---- Dashed add button ---- */
.pa-dashed-btn {
  display: block; width: 100%; padding: 10px; margin-top: 10px;
  background: none; border: 1.5px dashed var(--pa-line); border-radius: 12px;
  color: var(--pa-primary); font: inherit; font-weight: 700; cursor: pointer;
}

/* ---- Week strip (Schedule) ---- */
.pa-weekstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.pa-weekstrip__day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px;
  background: #fff; border: 1px solid var(--pa-line-soft); border-radius: 14px;
  font: inherit; color: var(--pa-ink); cursor: pointer; min-width: 0;
}
.pa-weekstrip__name { font-size: 12px; font-weight: 700; color: var(--pa-muted); }
.pa-weekstrip__num { font-size: 18px; font-weight: 800; }
.pa-weekstrip__dot { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.pa-weekstrip__day--busy .pa-weekstrip__dot { background: var(--pa-primary); }
.pa-weekstrip__day--active { background: var(--pa-primary); border-color: var(--pa-primary); color: #fff; }
.pa-weekstrip__day--active .pa-weekstrip__name { color: #DCE3F1; }
.pa-weekstrip__day--active.pa-weekstrip__day--busy .pa-weekstrip__dot { background: #fff; }

.pa-round-btn {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--pa-line-soft); color: var(--pa-ink); font: inherit; font-size: 16px; cursor: pointer;
}

/* ---- Segmented tabs ---- */
.pa-segments { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; background: #fff; border: 1px solid var(--pa-line-soft); border-radius: 14px; }
.pa-segments__btn { flex: 1; padding: 9px 6px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14px; font-weight: 800; color: var(--pa-primary); cursor: pointer; }
.pa-segments__btn--active { background: var(--pa-primary); color: #fff; }

/* ---- Bottom sheet (invoice preview) ---- */
.pa-sheet-overlay { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 100; background: rgba(22, 32, 61, 0.5); display: flex; align-items: flex-end; justify-content: center; padding-top: calc(24px + env(safe-area-inset-top)); }
.pa-sheet {
  width: 100%; max-width: 430px; max-height: 100%; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; background: var(--pa-surface);
  border-radius: 24px 24px 0 0; box-shadow: 0 -12px 40px rgba(17, 24, 48, 0.25);
}
.pa-sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: #C6CEDF; margin: 10px auto 0; }
.pa-sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 20px 8px; }
.pa-sheet__title { font-size: 20px; font-weight: 800; color: var(--pa-ink); }
.pa-sheet__body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 4px 20px 16px; }
.pa-sheet__foot { border-top: 1px solid var(--pa-line-soft); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.pa-sheet__foot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.pa-sheet__foot-hint { margin: -2px 0 2px; font-size: 13px; color: var(--pa-muted); text-align: center; overflow-wrap: anywhere; }
.pa-sheet__close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #DFE5F2; color: var(--pa-primary); font-size: 18px; cursor: pointer; flex: none; }
@media (min-width: 480px) {
  .pa-sheet-overlay { align-items: center; padding: 24px; }
  .pa-sheet { border-radius: 24px; }
}

/* ---- Invoice drawn in the app ---- */
.pa-invoice-doc { background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card); padding: 18px; }
.pa-invoice-doc__head { display: flex; justify-content: space-between; gap: 12px; }
.pa-invoice-doc__brand { font-size: 17px; font-weight: 800; color: var(--pa-primary); }
.pa-invoice-doc__meta { text-align: right; font-size: 13px; color: var(--pa-muted); }
.pa-invoice-doc__line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--pa-line-soft); font-size: 14px; }
.pa-invoice-doc__line strong { white-space: nowrap; }
.pa-invoice-doc__total { font-size: 16px; font-weight: 800; }

/* ---- Small "more" button (··· menu) ---- */
.pa-more-btn {
  flex: none; width: 48px; min-height: 44px; border-radius: 12px; background: #fff;
  border: 1px solid var(--pa-line); color: var(--pa-primary); font: inherit; font-weight: 800; cursor: pointer;
}
.pa-menu { position: relative; }
.pa-menu__list {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; min-width: 170px;
  background: #fff; border: 1px solid var(--pa-line); border-radius: 12px; box-shadow: 0 12px 30px rgba(17, 24, 48, 0.18); overflow: hidden;
}
.pa-menu__item { display: block; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; font: inherit; font-weight: 700; color: var(--pa-ink); cursor: pointer; text-decoration: none; }
.pa-menu__item:hover { background: var(--pa-surface); }
.pa-menu__item--danger { color: #B0505E; }

/* ---- Summary totals (Invoices) ---- */
.pa-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.pa-totals__card { background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card); padding: 12px 14px; }
.pa-totals__label { font-size: 13px; color: var(--pa-muted); }
.pa-totals__value { font-size: 24px; font-weight: 800; color: var(--pa-ink); }
.pa-totals__value--owed { color: #B0505E; }
.pa-totals__sub { font-size: 13px; color: var(--pa-muted); }

/* ---- Details list: DetailSections inside .pa-details read as the rows of one card ---- */
.pa-details { background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card); overflow: hidden; margin-bottom: 14px; }
.pa-details .pa-section { margin: 0; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--pa-line-soft); background: none; }
.pa-details > .pa-section:first-child, .pa-details > :first-child .pa-section { border-top: 0; }
.pa-details .pa-section__toggle { min-height: 52px; padding: 12px 14px; }
.pa-details .pa-section__title { font-size: 15px; font-weight: 800; letter-spacing: 0; }
.pa-details .pa-section__chevron { order: 99; margin-left: 4px; }
.pa-section__summary--action { color: var(--pa-primary); font-weight: 800; }
.pa-section__summary--warn { color: var(--pa-accent-ink); font-weight: 800; }
.pa-section__toggle .pa-status-dot { margin-right: 2px; }

/* ---- Dog cards on the client profile ---- */
.pa-dog-card { background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card); padding: 14px; }
.pa-dog-card + .pa-dog-card { margin-top: 10px; }
.pa-dog-card__head { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.pa-dog-card__name { font-size: 17px; font-weight: 800; color: var(--pa-ink); }

.pa-icon-action:disabled { opacity: 0.45; cursor: default; }

/* Buttons on action cards stay on one line; link-buttons in the sheet look like the buttons beside them. */
.pa-action-card__buttons .pa-btn { white-space: nowrap; padding-inline: 12px; }
/* ---- Standard "new …" form (FormSection.razor) ----
   A column of white section cards, each with a numbered plum step, title and hint; short related fields pair
   up side by side; optional fields say so on the label; repeated items (a client's dogs) get a sub-card; the
   submit row closes the form. */
.pa-form { display: flex; flex-direction: column; gap: 14px; }
.pa-form-section { background: #fff; border: 1px solid var(--pa-line-soft); border-radius: var(--pa-radius-card, 18px); padding: 16px; box-shadow: 0 1px 2px rgba(17, 24, 48, 0.05); min-width: 0; }
.pa-form-section__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.pa-form-section__step { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pa-primary); color: #fff; font-weight: 800; font-size: 15px; }
.pa-form-section__titles { flex: 1; min-width: 0; }
.pa-form-section__title { margin: 3px 0 0; font-size: 17px; font-weight: 800; color: var(--pa-ink); }
.pa-form-section__hint { margin: 2px 0 0; font-size: 13px; color: var(--pa-muted); }
.pa-form-section__body .pa-label:first-child { margin-top: 0; }
.pa-form-section__body .pa-input { margin-bottom: 12px; }
.pa-form-section__body > :last-child, .pa-form-section__body > :last-child .pa-input:last-child { margin-bottom: 0; }
.pa-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.pa-form-row > div { min-width: 0; }
.pa-label__optional { font-weight: 600; color: var(--pa-muted); font-size: 12px; margin-left: 4px; }
.pa-form-subcard { border: 1px solid var(--pa-line-soft); background: var(--pa-surface); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.pa-form-subcard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-weight: 800; color: var(--pa-ink); }
.pa-form-actions { display: flex; flex-direction: column; gap: 8px; }
.pa-form-actions .pa-error { margin: 0; }

/* Schedule: the row a dashboard link landed on, and the owner block on a row's sheet. */
.pa-group__row--focus { box-shadow: inset 4px 0 0 var(--pa-primary); background: var(--pa-primary-tint) !important; }
.pa-sheet-label { margin: 10px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pa-muted); }
.pa-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pa-sheet-grid .pa-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* In-app PDF viewer (PdfViewer.razor): pages stacked like paper on the sheet. */
.pa-pdf-pages { display: flex; flex-direction: column; gap: 10px; }
.pa-pdf-page { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--pa-line-soft); border-radius: 8px; box-shadow: 0 2px 8px rgba(17, 24, 48, 0.08); }

.pa-sheet__foot a.pa-btn, .pa-action-card a.pa-btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }

/* ---- Drag to reorder (sortable.js) ---- */
.pa-drag-handle { flex: none; width: 28px; text-align: center; color: #AEB7CB; font-size: 18px; cursor: grab; touch-action: none; user-select: none; }
.pa-sort-dragging { position: relative; z-index: 2; background: #fff; box-shadow: 0 10px 24px rgba(17, 24, 48, 0.18); opacity: 0.95; }
.pa-sort-target { box-shadow: inset 0 3px 0 var(--pa-primary); }

/* ==== Switchers — the app standard (Nov 2026) ====
   Every "pick one" control (dog tabs, filter chips, Clients/Dogs toggle, segmented tabs, yes/no pairs) looks
   like a real button: squarer corners, a raised bottom edge, at least 44px tall so it's easy to hit with a
   thumb. The chosen one is solid plum. Declared last so it wins over the older per-control rules above. */
.pa-dog-tab,
.pa-chip-btn,
.pa-yesno__btn {
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid var(--pa-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 0 var(--pa-line);
  color: var(--pa-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.06s, box-shadow 0.06s;
  -webkit-tap-highlight-color: transparent;
}
.pa-dog-tab--active,
.pa-chip-btn--active,
.pa-yesno__btn.active {
  background: var(--pa-primary);
  border-color: var(--pa-primary);
  box-shadow: 0 2px 0 var(--pa-primary-dark);
  color: #fff;
}
.pa-dog-tab:active,
.pa-chip-btn:active,
.pa-yesno__btn:active { transform: translateY(2px); box-shadow: none; }
.pa-dog-tab:disabled,
.pa-chip-btn:disabled,
.pa-yesno__btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.pa-chip-btn--attention:not(.pa-chip-btn--active) { color: var(--pa-accent-ink); border-color: var(--pa-accent-line); box-shadow: 0 2px 0 var(--pa-accent-line); }
.pa-chips { padding-bottom: 4px; }

/* Welcome Form (owner, by link): a four-step tracker, then one card per step. */
.pa-welcome-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 4px 0 14px; }
.pa-welcome-slot { border-top: 1px solid var(--pa-line); padding-top: 8px; margin-top: 4px; }
.pa-welcome-steps__step {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px;
  border: 1.5px solid var(--pa-line); border-radius: 10px; background: #fff; box-shadow: 0 2px 0 var(--pa-line);
  font: inherit; color: var(--pa-muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pa-welcome-steps__num {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pa-line); color: var(--pa-ink); font-size: 13px; font-weight: 800;
}
.pa-welcome-steps__label { font-size: 11px; font-weight: 800; text-align: center; line-height: 1.15; }
.pa-welcome-steps__step.is-done .pa-welcome-steps__num { background: var(--pa-success); color: #fff; }
.pa-welcome-steps__step.is-current { border-color: var(--pa-primary); color: var(--pa-primary); box-shadow: 0 2px 0 var(--pa-primary-dark); }
.pa-welcome-steps__step.is-current .pa-welcome-steps__num { background: var(--pa-primary); color: #fff; }
.pa-welcome-card { margin-bottom: 14px; text-align: left; }
.pa-welcome-dog__head { display: flex; flex-direction: column; gap: 2px; }
.pa-welcome-todo { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.pa-yesno--stack { flex-direction: column; }
.pa-yesno--stack .pa-yesno__btn { text-align: left; }

/* Welfare check: a day already done shows as done (one per day); changing it says it replaces the old one. */
.pa-welfare-done { background: #E3F0E7; border: 1px solid #CFE3D6; border-radius: 12px; padding: 12px 14px; margin: 4px 0 6px; }
.pa-welfare-done__title { font-size: 16px; font-weight: 800; color: var(--pa-success); }
.pa-welfare-replacing { background: var(--pa-accent-tint); border: 1px solid var(--pa-accent-line); color: var(--pa-accent-ink);
  border-radius: 12px; padding: 10px 12px; margin: 4px 0 8px; font-size: 13.5px; }

/* Counter: − 5 + for how many times / meals / bowls on the welfare sheet. Same buttony feel as the switcher. */
.pa-count-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 8px; }
.pa-stepper { display: flex; align-items: center; gap: 6px; }
.pa-stepper__btn {
  width: 44px; height: 44px;
  border: 1.5px solid var(--pa-line); border-radius: 10px; background: #fff;
  box-shadow: 0 2px 0 var(--pa-line);
  color: var(--pa-primary); font: inherit; font-size: 22px; font-weight: 800; line-height: 1;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.pa-stepper__btn:active { transform: translateY(2px); box-shadow: none; }
.pa-stepper__btn:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
.pa-stepper__value { min-width: 56px; text-align: center; line-height: 1.1; }
.pa-stepper__value strong { display: block; font-size: 20px; font-weight: 800; color: var(--pa-ink); }
.pa-stepper__value small { font-size: 11px; color: var(--pa-muted, #7a6f78); font-weight: 700; }

/* Segmented: a row of equal buttons sitting in one tray (Clients/Dogs, Daily/Weekly/As required). */
.pa-mode-toggle,
.pa-segments {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 12px;
  background: var(--pa-line-soft);
  border: 0;
  border-radius: 12px;
}
.pa-mode-toggle__btn,
.pa-segments__btn {
  flex: 1;
  min-height: 44px;
  padding: 8px 6px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--pa-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pa-mode-toggle__btn.active,
.pa-segments__btn--active {
  background: var(--pa-primary);
  box-shadow: 0 2px 0 var(--pa-primary-dark);
  color: #fff;
}
.pa-segments__count { display: block; font-size: 12px; font-weight: 600; opacity: 0.8; }

/* ---- Cleaning log ---- */
.pa-clean-week { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.pa-clean-week__label { flex: 1; text-align: center; font-weight: 800; }
.pa-clean-week .pa-clean-week__btn { flex: none; width: 56px; min-height: 44px; padding: 0; font-size: 20px; }

.pa-daygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.pa-daygrid .pa-yesno__btn { min-height: 56px; padding: 6px 2px; font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.pa-daygrid__num { font-size: 16px; }
.pa-daygrid__state { font-size: 11px; font-weight: 600; opacity: 0.85; }
.pa-daygrid .pa-yesno__btn--complete:not(.active) { border-color: var(--pa-success); color: var(--pa-success); box-shadow: 0 2px 0 var(--pa-success); }

.pa-clean-progress { margin-bottom: 14px; }
.pa-clean-progress__text { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.pa-clean-progress__text span:last-child { color: var(--pa-muted); font-weight: 700; }
.pa-clean-progress__bar { height: 10px; border-radius: 5px; background: var(--pa-line-soft); overflow: hidden; }
.pa-clean-progress__fill { height: 100%; background: var(--pa-success); border-radius: 5px; transition: width 0.25s; }

.pa-task-group { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pa-muted); }
.pa-task-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pa-task {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px;
  border: 1.5px solid var(--pa-line); border-radius: 12px; background: #fff; box-shadow: 0 2px 0 var(--pa-line);
  font: inherit; color: var(--pa-ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
button.pa-task:active { transform: translateY(2px); box-shadow: none; }
.pa-task:disabled { opacity: 0.6; }
.pa-task__check {
  flex: none; width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--pa-line);
  display: grid; place-items: center; font-size: 16px; font-weight: 900; color: #fff;
}
.pa-task__body { flex: 1; min-width: 0; }
.pa-task__name { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.pa-task__meta { font-size: 13px; color: var(--pa-muted); margin-top: 2px; }
.pa-task__action { flex: none; font-size: 13px; font-weight: 800; color: var(--pa-primary); }
.pa-task--done { background: #F1F7F3; border-color: #CFE3D6; box-shadow: none; cursor: default; }
.pa-task--done .pa-task__check { background: var(--pa-success); border-color: var(--pa-success); }
.pa-task--done .pa-task__name { color: var(--pa-muted); }
.pa-task__undo { flex: none; min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--pa-line); border-radius: 9px; background: #fff; font: inherit; font-size: 13px; font-weight: 800; color: var(--pa-ink); cursor: pointer; }
.pa-task__log { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--pa-line-soft); display: flex; align-items: center; gap: 8px; font-size: 13px; }

.pa-clean-alldone { padding: 14px; margin-bottom: 16px; border-radius: 12px; background: #E3F0E7; color: var(--pa-success); font-weight: 800; text-align: center; }
.pa-clean-info { margin-bottom: 14px; }
.pa-clean-info summary { cursor: pointer; font-weight: 800; color: var(--pa-primary); min-height: 32px; display: flex; align-items: center; }
.pa-clean-info p { margin: 6px 0 0; color: var(--pa-muted); font-size: 14px; white-space: pre-line; }
.pa-task-group__hint { text-transform: none; letter-spacing: 0; font-weight: 600; }

/* ---- Onboarding checklist (client page) ----
   "Getting Jo ready": every step from registered to first booking, the next one highlighted with the big button. */
.pa-onboard { margin: 0 0 18px; padding: 16px; border-radius: var(--pa-radius-card); background: #fff; border: 1.5px solid var(--pa-primary-tint); box-shadow: 0 2px 0 var(--pa-line-soft); }
.pa-onboard__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pa-onboard__title { margin: 0; font-size: 18px; font-weight: 900; color: var(--pa-primary); }
.pa-onboard__count { font-size: 13px; font-weight: 800; color: var(--pa-muted); white-space: nowrap; }
.pa-onboard__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pa-onboard__step { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; }
.pa-onboard__step--next { background: var(--pa-primary-tint); }
.pa-onboard__mark {
  flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; border: 2px solid var(--pa-line);
  display: grid; place-items: center; background: #fff; color: #fff; font-size: 15px; font-weight: 900;
}
.pa-onboard__step--next .pa-onboard__mark { border-color: var(--pa-primary); }
.pa-onboard__step--done .pa-onboard__mark { background: var(--pa-success); border-color: var(--pa-success); }
.pa-onboard__body { flex: 1; min-width: 0; }
.pa-onboard__step-title { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.pa-onboard__step--done .pa-onboard__step-title { color: var(--pa-muted); font-weight: 700; }
.pa-onboard__detail { font-size: 13px; color: var(--pa-muted); margin-top: 1px; }
.pa-onboard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pa-onboard__step:not(.pa-onboard__step--next) .pa-onboard__actions .pa-btn { min-height: 38px; padding: 6px 12px; font-size: 13px; }
.pa-onboard__notice { margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--pa-success); }
.pa-onboard__link { display: flex; gap: 8px; margin-top: 8px; }
.pa-onboard__link .pa-input { flex: 1; min-width: 0; font-size: 13px; }
.pa-onboard-welcome { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #E3F0E7; color: var(--pa-success); font-size: 14px; line-height: 1.4; }
.pa-onboard-welcome a { color: var(--pa-success); margin-left: 4px; }

/* While the iOS keyboard or a date/time picker is up (see ios-viewport-fix.js), the bottom nav steps aside
   instead of floating over the content above it. */
.pa-keyboard-open .pa-bottom-nav { visibility: hidden; }

/* Guided walk-through tracker at the top of a form sheet ("Step 2 of 4 · Vet"). */
.pa-modal__steps { padding: 10px 16px 12px; border-bottom: 1px solid var(--pa-line-soft); }
.pa-modal__steps-text { font-size: 13px; color: var(--pa-muted); margin-bottom: 8px; }
.pa-modal__steps-text strong { color: var(--pa-primary); }
.pa-modal__steps-bar { display: flex; gap: 4px; }
.pa-modal__steps-seg { flex: 1; height: 6px; border-radius: 3px; background: var(--pa-line-soft); }
.pa-modal__steps-seg--done { background: var(--pa-success); }
.pa-modal__steps-seg--now { background: var(--pa-primary); }

/* Clients list: when someone was last in, and the "inactive" cut-off picker. */
.pa-client-visits { font-size: 12px; margin-top: 2px; }
.pa-inactive-window { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--pa-muted); }
.pa-inactive-window .pa-segments__btn { min-height: 38px; font-size: 13px; }

/* ---- Team activity: the bell on Home and the feed ---- */
.pa-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1.5px solid var(--pa-line); box-shadow: 0 2px 0 var(--pa-line); color: var(--pa-primary); }
.pa-bell__badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #C2185B; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--pa-surface, #fff); }
.pa-activity { align-items: flex-start; }
.pa-activity__icon { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--pa-primary-tint); display: grid; place-items: center; font-size: 16px; font-weight: 800; color: var(--pa-primary); }
.pa-activity--new { background: #F7F9FD; }
.pa-activity__dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: #C2185B; }
.pa-enquiries-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pa-enquiries-btn__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #C2185B; color: #fff; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------------------------------------------------------------- Online Payments */
/* The owner's pay page: lines, the amount to pay now, and the one accent "Pay" button. */
.pa-btn--accent { background: var(--pa-accent); color: #fff; border: none; }
.pa-btn--accent:hover { background: var(--pa-accent-ink); }
.pa-pay-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--pa-line-soft); }
.pa-pay-line__what { font-weight: 700; color: var(--pa-ink); }
.pa-pay-line__amount { font-weight: 700; white-space: nowrap; color: var(--pa-ink); }
.pa-pay-line--muted, .pa-pay-line--muted .pa-pay-line__amount { color: var(--pa-muted); font-weight: 600; }
.pa-pay-line--total { border-bottom: none; padding-top: 12px; font-size: 18px; font-weight: 800; color: var(--pa-primary); }
.pa-pay-line--total .pa-pay-line__amount { color: var(--pa-primary); }
/* Payment chips on the schedule and stay sheet. */
.pa-pay-chip { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pa-pay-chip--Due { background: var(--pa-primary-tint); color: var(--pa-primary); }
.pa-pay-chip--Paid { background: #E3F0E7; color: var(--pa-success); }
.pa-pay-chip--Overdue, .pa-pay-chip--NotPaidOnArrival { background: var(--pa-accent-tint); color: var(--pa-accent-ink); }
.pa-pay-warning { background: var(--pa-accent-tint); border: 1px solid var(--pa-accent-line); color: var(--pa-accent-ink); border-radius: 12px; padding: 10px 12px; margin: 8px 0; font-weight: 600; }

/* ---------------------------------------------------------------- Requests: contact + history */
.pa-request__contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pa-request__contact .pa-chip-btn { text-decoration: none; }
.pa-request__history { margin-top: 10px; }
.pa-request__history > summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--pa-primary); }
.pa-timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--pa-line); }
.pa-timeline__step { position: relative; padding: 0 0 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.pa-timeline__step::before { content: ""; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--pa-primary); }
.pa-timeline__step--owner::before { background: var(--pa-accent); }
.pa-timeline__text { font-size: 14px; font-weight: 700; color: var(--pa-ink); }
.pa-timeline__note { font-size: 13px; color: var(--pa-muted); font-style: italic; }
.pa-timeline__when { font-size: 12px; color: var(--pa-muted); }
.pa-request-link { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--pa-line); color: var(--pa-ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.pa-request-link span:last-child { color: var(--pa-primary); }

/* ---------------------------------------------------------------- Welcome Form: what still needs filling in */
/* Staff screens keep the small dot; on the owner's form a section that needs filling in is unmissable. */
.pa-section__needs { display: none; }
.pa-welcome-card .pa-section--missing { border: 2px solid var(--pa-accent); background: var(--pa-accent-tint); }
.pa-welcome-card .pa-section--missing .pa-section__title { color: var(--pa-accent-ink); }
.pa-welcome-card .pa-section__needs {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--pa-accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px; }
.pa-welcome-card .pa-section--missing .pa-section__summary { display: none; }
.pa-welcome-todo-box { background: var(--pa-accent-tint); border: 1px solid var(--pa-accent-line); border-radius: 12px; padding: 10px 12px; margin: 8px 0 12px; }
.pa-welcome-todo-box strong { color: var(--pa-accent-ink); }
.pa-welcome-todo-box ul { margin: 6px 0 0; padding-left: 18px; }
.pa-welcome-todo-box--done { background: #E3F0E7; border-color: #BFDCC8; }
.pa-welcome-todo-box--done strong { color: var(--pa-success); }

/* ---------------------------------------------------------------- Vaccination card photos */
.pa-vcards__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 10px; }
.pa-vcards__item { margin: 0; }
.pa-vcards__thumb { display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 1px solid var(--pa-line); border-radius: 10px; overflow: hidden; background: var(--pa-surface); cursor: zoom-in; }
.pa-vcards__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pa-vcards__item figcaption { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--pa-muted); margin-top: 4px; }
.pa-vcards__add { cursor: pointer; }
.pa-welcome-card .pa-welcome-vacc--missing { border: 2px solid var(--pa-accent); background: var(--pa-accent-tint); border-radius: 14px; padding: 2px 12px 12px; margin-top: 12px; }

/* ---------------------------------------------------------------- Stay extras + the price summed up */
.pa-extras { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.pa-extras__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--pa-line); border-radius: 12px; background: #fff; }
.pa-extras__row--on { border-color: var(--pa-primary); background: var(--pa-primary-tint); }
.pa-extras__name { display: flex; flex-direction: column; font-weight: 700; color: var(--pa-ink); font-size: 14px; }
.pa-extras__name small { font-weight: 600; color: var(--pa-muted); font-size: 12.5px; }
.pa-stepper--small .pa-stepper__btn { width: 34px; height: 34px; font-size: 18px; }
.pa-stepper--small .pa-stepper__value { min-width: 28px; }
.pa-price-summary { border: 1px solid var(--pa-line); border-radius: 12px; padding: 10px 12px; margin: 6px 0 12px; background: var(--pa-surface); font-size: 14px; }
.pa-price-summary > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--pa-ink); }
.pa-price-summary > div span:last-child { font-weight: 700; white-space: nowrap; }
.pa-price-summary__total { border-top: 1px solid var(--pa-line); margin-top: 4px; padding-top: 8px !important; font-size: 16px; font-weight: 800; color: var(--pa-primary) !important; }

/* ---------------------------------------------------------------- Schedule: pick a date, and the month at a glance */
.pa-date-jump { position: relative; display: inline-flex; align-items: center; font-size: 17px; cursor: pointer; }
.pa-date-jump input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; }
.pa-round-btn--on { background: var(--pa-primary); color: var(--pa-on-primary); border-color: var(--pa-primary); }
.pa-month__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 16px; }
.pa-month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pa-month__dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--pa-muted); text-transform: uppercase; padding-bottom: 2px; }
.pa-month__day { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; min-height: 62px; padding: 5px 5px 4px;
  border: 1px solid var(--pa-line); border-radius: 10px; background: #fff; font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.pa-month__num { font-size: 13px; font-weight: 800; color: var(--pa-ink); }
.pa-month__in { font-size: 11.5px; font-weight: 800; color: var(--pa-primary); white-space: nowrap; }
.pa-month__moves { display: flex; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--pa-muted); }
.pa-month__day--some { background: var(--pa-primary-tint); }
.pa-month__day--busy { background: var(--pa-accent-tint); border-color: var(--pa-accent-line); }
.pa-month__day--busy .pa-month__in { color: var(--pa-accent-ink); }
.pa-month__day--full { background: #F9E0E2; border-color: #E9B5BD; }
.pa-month__day--full .pa-month__in { color: #B0505E; }
.pa-month__day--other { opacity: .45; }
.pa-month__day--today { box-shadow: inset 0 0 0 2px var(--pa-primary); }
.pa-month__day--selected .pa-month__num { background: var(--pa-primary); color: var(--pa-on-primary); border-radius: 999px; padding: 0 6px; }

/* ---------------------------------------------------------------- UAT ribbon (App:EnvironmentBanner) */
.pa-env-banner { position: fixed; top: 0; left: 50%; transform: translateX(-50%); z-index: 9999; pointer-events: none;
  padding: 2px 12px; border-radius: 0 0 10px 10px; background: var(--pa-accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pa-pay-chip--DepositDue { background: var(--pa-accent-tint); color: var(--pa-accent-ink); }
.pa-pay-chip--DepositPaid { background: #E3F0E7; color: var(--pa-success); }

/* Extras at drop-off / collection, and the stay sheet's service button */
.pa-handover-extras { border: 1px solid var(--pa-line); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; background: var(--pa-surface); }
.pa-btn--small { padding: 6px 12px; font-size: 13px; min-height: 0; }

/* ---------------------------------------------------------------- The app-wide error pop-up (error-dialog.js) */
.pa-error-dialog { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(22, 32, 61, .45); }
.pa-error-dialog__card { width: 100%; max-width: 380px; background: #fff; border-radius: 18px; padding: 22px 20px 18px;
  text-align: center; box-shadow: 0 12px 40px rgba(22, 32, 61, .25); }
.pa-error-dialog__icon { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: #F9E0E2; color: #B0505E;
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; }
.pa-error-dialog__title { margin: 0 0 6px; font-size: 18px; color: var(--pa-ink); }
.pa-error-dialog__message { margin: 0 0 16px; color: var(--pa-ink); line-height: 1.5; white-space: pre-line; }
.pa-list-row__chevron { margin-left: auto; color: var(--pa-muted); font-size: 20px; font-weight: 700; }
/* An agreed price typed straight into a line (Book a stay) */
.pa-extras__price { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--pa-ink); }
.pa-extras__price input { width: 72px; padding: 3px 6px; border: 1px solid var(--pa-line); border-radius: 8px; font: inherit; background: #fff; }

/* ---------------------------------------------------------------- Client page: payment schedule */
.pa-schedule-row { border-bottom: 1px solid var(--pa-line-soft); }
.pa-schedule-row:last-of-type { border-bottom: 0; }
.pa-schedule-row__main { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; text-decoration: none; color: inherit; }
.pa-schedule-row__what { display: flex; flex-direction: column; min-width: 0; }
.pa-schedule-row__what strong { color: var(--pa-ink); font-size: 14.5px; }
.pa-schedule-row__money { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; }
.pa-schedule-row--Paid .pa-schedule-row__what strong, .pa-schedule-row--Refunded .pa-schedule-row__what strong { color: var(--pa-muted); }
