/*
 * Customer account pages (README "Customer accounts"). Phone first, in the
 * company's colours: deep green top bar, off-white page, white cards,
 * yellow primary buttons with dark green text. Every class starts p- so
 * the office sheet styles (app.css, loaded on document pages) never clash.
 */
:root {
  --p-green: var(--brand, #0F3D2E);
  --p-green-2: var(--brand-dark, #0B2C21);
  --p-yellow: var(--accent, #FFD500);
  --p-on-yellow: var(--on-accent, #0F3D2E);
  --p-off: #F2F5F2;
  --p-ink: #0F2A20;
  --p-muted: #56665E;
  --p-line: #DCE5DF;
  --p-field: #A9B9B0;
  --p-mint: #E6F0EA;
  --p-bad: #B42318;
  --p-bad-bg: #FDECEA;
  --p-ok: #1F7A4D;
  --p-ok-bg: #E3F2EA;
  --p-amber: #7A5A00;
  --p-amber-bg: #FFF6D6;
  --p-purple: #5B3FA8;
  --p-purple-bg: #EFEAFB;
  --p-grey: #4B5563;
  --p-grey-bg: #EEF1EF;
  --p-font: var(--font, Arial, "Helvetica Neue", Helvetica, sans-serif);
  --p-radius: 14px;
  --p-shadow: 0 1px 2px rgba(15, 42, 32, .05);
}

/* ---------------------------------------------------------------- page */
.p-body, .p-docbody { margin: 0; background: var(--p-off); color: var(--p-ink); font: 16px/1.5 var(--p-font); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
.p-body *, .p-body *::before, .p-body *::after { box-sizing: border-box; }
.p-body a { color: var(--p-green); }
.p-body img, .p-body svg { max-width: 100%; }
.p-body :focus-visible, .p-docbody :focus-visible { outline: 3px solid var(--p-green); outline-offset: 2px; }
.p-top :focus-visible, .p-strip:focus-visible { outline-color: var(--p-yellow); }
.p-skip { position: absolute; left: -9999px; top: 8px; z-index: 60; background: #fff; color: var(--p-green); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.p-skip:focus { left: 8px; }

/* ---------------------------------------------------------------- top bar */
.p-top { background: var(--p-green); color: #fff; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
.p-top__in { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 16px; }
.p-logo { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; color: #fff; text-decoration: none; border-radius: 6px; }
.p-logo__mark { height: 26px; width: auto; display: block; }
.p-logo__img { max-height: 36px; width: auto; display: block; }
.p-logo__name { font-weight: 700; font-size: 19px; color: #fff; }
.p-initials { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--p-yellow); color: var(--p-on-yellow); font-weight: 700; font-size: 15px; display: grid; place-items: center; text-decoration: none; letter-spacing: .02em; }
.p-initials[aria-current] { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); }
.p-body .p-initials { color: var(--p-on-yellow); }
.p-top .p-nav, .p-top .p-top__book { display: none; }

/* ---------------------------------------------------------------- bottom tabs (phones) */
.p-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--p-line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(15, 42, 32, .06); }
.p-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 12px; font-size: 12.5px; color: var(--p-muted); text-decoration: none; }
.p-body .p-tab { color: var(--p-muted); text-decoration: none; }
.p-tab .p-ico { width: 23px; height: 23px; }
.p-body .p-tab[aria-current] { color: var(--p-green); font-weight: 700; }
.p-tab[aria-current]::after { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--p-green); margin-top: 1px; }
.p-body .p-tab--book { background: var(--p-yellow); color: var(--p-on-yellow); font-weight: 700; margin: 0 2px; }
.p-tab--book[aria-current]::after { background: var(--p-on-yellow); }

/* ---------------------------------------------------------------- main column */
.p-main { max-width: 720px; margin: 0 auto; padding: 18px 16px 112px; overflow-wrap: anywhere; } /* a name that is one long word wraps rather than widening a phone page */
.p-out .p-main { padding-bottom: 32px; }
.p-main--wide { max-width: 1060px; }
.p-main--wide > .p-flash { max-width: 460px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .p-main--wide > .p-flash { max-width: 980px; } }
.p-foot { max-width: 720px; margin: 0 auto; padding: 0 16px 110px; color: var(--p-muted); font-size: 13px; line-height: 1.5; }
.p-out .p-foot { padding-bottom: 28px; }
.p-foot p { margin: 0; }

.p-h1 { font-size: 25px; line-height: 1.15; margin: 4px 0 6px; color: var(--p-green); letter-spacing: -.01em; }
.p-h2 { font-size: 17px; line-height: 1.25; margin: 22px 0 10px; color: var(--p-green); }
.p-h3 { font-size: 16px; margin: 0 0 8px; color: var(--p-green); }
.p-sub { color: var(--p-muted); font-size: 15px; margin: 0 0 16px; }
.p-sub b, .p-sub strong { color: var(--p-ink); }
.p-kicker { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--p-muted); margin: 4px 0 2px; }
.p-label { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--p-muted); margin: 0 0 6px; }
.p-big { font-size: 18px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.p-mid { font-size: 16px; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.p-small { font-size: 14px; color: var(--p-muted); line-height: 1.45; margin: 0; }
.p-note { font-size: 13.5px; color: var(--p-muted); line-height: 1.5; margin: 10px 0 0; }
.p-red, .p-body .p-red { color: var(--p-bad); font-weight: 700; }
.p-center { text-align: center; }
.p-nowrap { white-space: nowrap; }
.p-mt0 { margin-top: 0; }
.p-hidden { display: none !important; }
.p-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- cards */
.p-card { display: block; background: #fff; border: 1px solid var(--p-line); border-radius: var(--p-radius); padding: 16px; margin: 0 0 12px; box-shadow: var(--p-shadow); color: inherit; }
a.p-card { text-decoration: none; color: inherit; }
.p-body a.p-card { color: inherit; }
a.p-card:hover { border-color: #B8C9BF; }
.p-card--link { position: relative; padding-right: 40px; }
.p-card--link::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--p-green); border-top: 2.5px solid var(--p-green); transform: translateY(-50%) rotate(45deg); }
.p-card--warn { border-color: #F2C94C; background: #FFFBEA; }
.p-card--quiet { background: transparent; box-shadow: none; border-style: dashed; }
.p-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-between > :first-child { min-width: 0; }
.p-stack > * + * { margin-top: 8px; }
.p-cols { display: grid; gap: 0 12px; }
.p-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; color: var(--p-muted); margin: 4px 0 0; }
.p-amount { font-weight: 700; white-space: nowrap; color: var(--p-ink); }

/* ---------------------------------------------------------------- pills */
.p-pill { display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1.3; border-radius: 999px; padding: 5px 11px; margin-top: 10px; background: var(--p-grey-bg); color: var(--p-grey); }
.p-pill--ok { background: var(--p-ok-bg); color: var(--p-ok); }
.p-pill--amber { background: var(--p-amber-bg); color: var(--p-amber); }
.p-pill--bad { background: var(--p-bad-bg); color: var(--p-bad); }
.p-pill--purple { background: var(--p-purple-bg); color: var(--p-purple); }
.p-pill--grey { background: var(--p-grey-bg); color: var(--p-grey); }
.p-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 13px; background: var(--p-yellow); color: var(--p-on-yellow); font-weight: 700; font-size: 13.5px; padding: 0 7px; margin-left: 8px; vertical-align: 1px; }

/* ---------------------------------------------------------------- buttons */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 12px; border: 2px solid var(--p-green); background: #fff; color: var(--p-green); font: 700 16px/1.2 var(--p-font); text-decoration: none; cursor: pointer; text-align: center; -webkit-appearance: none; appearance: none; }
.p-body .p-btn, .p-docbody .p-btn { color: var(--p-green); text-decoration: none; }
.p-btn .p-ico { width: 20px; height: 20px; flex: none; }
.p-btn:hover { background: var(--p-mint); }
.p-btn--primary, .p-body .p-btn--primary, .p-docbody .p-btn--primary { background: var(--p-yellow); border-color: var(--p-yellow); color: var(--p-on-yellow); }
.p-btn--primary:hover { filter: brightness(.96); background: var(--p-yellow); }
.p-btn--dark, .p-body .p-btn--dark { background: var(--p-green); border-color: var(--p-green); color: #fff; }
.p-btn--dark:hover { background: var(--p-green-2); }
.p-btn--ghost { border-color: var(--p-line); }
.p-btn--danger, .p-body .p-btn--danger { border-color: #E8B4AE; color: var(--p-bad); }
.p-btn--danger:hover { background: var(--p-bad-bg); }
.p-btn--sm { min-height: 44px; font-size: 15px; padding: 0 14px; border-radius: 11px; }
.p-btn--block { display: flex; width: 100%; }
.p-btn[disabled], .p-btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.p-row { display: flex; gap: 8px; flex-wrap: wrap; }
.p-row > .p-btn, .p-row > form { flex: 1 1 0; min-width: 0; }
.p-row > form > .p-btn { width: 100%; }
.p-actions { display: grid; gap: 8px; margin: 0 0 14px; }
.p-actions form { margin: 0; }
.p-actions form .p-btn { width: 100%; }
.p-linkbtn, .p-body .p-linkbtn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; font-weight: 700; color: var(--p-green); text-decoration: underline; cursor: pointer; }
.p-linkbtn[disabled] { color: var(--p-muted); text-decoration: none; cursor: default; }
.p-inline-form { display: inline; margin: 0; }

/* ---------------------------------------------------------------- forms */
.p-form { margin: 0; }
.p-field { display: block; margin: 0 0 16px; }
.p-field > label, .p-legend { display: block; font-size: 15px; font-weight: 700; margin: 0 0 7px; color: var(--p-ink); padding: 0; }
.p-field .p-opt { font-weight: 400; color: var(--p-muted); }
.p-input, .p-select, .p-textarea { display: block; width: 100%; min-height: 52px; border: 1.5px solid var(--p-field); border-radius: 12px; background: #fff; color: var(--p-ink); font: 17px/1.3 var(--p-font); padding: 12px 14px; -webkit-appearance: none; appearance: none; }
.p-textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.p-select { padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.p-input:focus, .p-select:focus, .p-textarea:focus { border-color: var(--p-green); box-shadow: 0 0 0 3px rgba(15, 61, 46, .15); outline: none; }
.p-input::placeholder, .p-textarea::placeholder { color: #8A988F; }
.p-hint { display: block; font-size: 14px; color: var(--p-muted); margin: 6px 0 0; line-height: 1.45; }
.p-err { display: block; font-size: 14.5px; color: var(--p-bad); font-weight: 700; margin: 6px 0 0; }
.p-field--error .p-input, .p-field--error .p-select, .p-field--error .p-textarea { border-color: var(--p-bad); }
.p-two { display: grid; gap: 0 12px; }
.p-fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.p-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.p-code { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .45em; padding-left: calc(14px + .45em); font-variant-numeric: tabular-nums; min-height: 60px; }

.p-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 15.5px; line-height: 1.4; }
.p-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--p-green); }
.p-check small { display: block; color: var(--p-muted); font-size: 13.5px; margin-top: 2px; }

.p-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.p-chip { position: relative; display: block; }
.p-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.p-chip span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border: 1.5px solid var(--p-field); border-radius: 11px; background: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; }
.p-chip input:checked + span { border-color: var(--p-green); background: var(--p-mint); color: var(--p-green); box-shadow: inset 0 0 0 1px var(--p-green); }
.p-chip input:focus-visible + span { outline: 3px solid var(--p-green); outline-offset: 2px; }

.p-choices { display: grid; gap: 8px; }
.p-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--p-field); border-radius: 12px; background: #fff; cursor: pointer; }
.p-choice input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--p-green); }
.p-choice b { display: block; font-size: 15.5px; }
.p-choice small { display: block; color: var(--p-muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.p-choice:has(input:checked) { border-color: var(--p-green); background: var(--p-mint); }

/* ---------------------------------------------------------------- flashes and boxes */
.p-flash { border-radius: 12px; padding: 13px 15px; margin: 0 0 14px; font-size: 15px; line-height: 1.45; background: var(--p-mint); color: var(--p-green); border: 1px solid #C7DCCF; font-weight: 700; }
.p-flash--error { background: var(--p-bad-bg); color: var(--p-bad); border-color: #F3C3BD; }
.p-flash--info { background: #fff; color: var(--p-ink); border-color: var(--p-line); font-weight: 400; }
.p-flash--warn { background: var(--p-amber-bg); color: var(--p-amber); border-color: #F1DB8C; }
.p-flash a { color: inherit; }
.p-flash .p-flash-btn { margin-top: 10px; }

/* ---------------------------------------------------------------- sign in */
.p-auth { max-width: 460px; margin: 6px auto 0; }
.p-auth__card { padding: 22px 18px 20px; margin-top: 10px; }
.p-auth__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--p-mint); color: var(--p-green); display: grid; place-items: center; margin: 0 0 12px; }
.p-auth__icon .p-ico { width: 28px; height: 28px; }
.p-help { font-size: 15px; color: var(--p-muted); line-height: 1.55; margin: 16px 4px 0; }
.p-help b, .p-help strong { color: var(--p-ink); }
.p-help a { font-weight: 700; color: var(--p-green); white-space: nowrap; }
.p-trust { display: flex; gap: 10px; align-items: flex-start; margin: 18px 4px 0; font-size: 13.5px; color: var(--p-muted); line-height: 1.45; }
.p-trust .p-ico { flex: none; width: 22px; height: 22px; color: var(--p-green); margin-top: 1px; }
.p-ico--inline { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.p-resend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 6px; margin: 14px 0 0; font-size: 14.5px; color: var(--p-muted); text-align: center; }

.p-welcome { display: none; }
@media (min-width: 900px) {
  .p-auth--split { max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 36px; align-items: center; margin-top: 36px; }
  .p-auth--split .p-auth__card { margin-top: 0; }
  .p-welcome { display: block; position: relative; overflow: hidden; background: var(--p-green); color: #fff; border-radius: 22px; padding: 44px 40px 46px; min-height: 100%; box-shadow: 0 18px 40px rgba(15, 61, 46, .18); }
  .p-welcome::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 240px; height: 240px; border-radius: 50%; border: 34px solid rgba(255, 213, 0, .12); }
  .p-welcome__kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-yellow); }
  .p-welcome__title { margin: 0 0 26px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; max-width: 15em; }
  .p-welcome__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; position: relative; z-index: 1; }
  .p-welcome__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.4; color: #E3EEE8; }
  .p-welcome__list .p-ico { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--p-yellow); color: var(--p-on-yellow); stroke-width: 3; }
}

/* ---------------------------------------------------------------- home */
.p-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--p-green); color: #fff; border-radius: var(--p-radius); padding: 14px 16px; margin: 0 0 12px; text-decoration: none; }
.p-body a.p-strip { color: #fff; text-decoration: none; }
.p-strip b { color: var(--p-yellow); }
.p-strip small { display: block; color: #CFE0D6; font-size: 13.5px; margin-top: 3px; }
.p-strip__go { flex: none; color: var(--p-yellow); font-weight: 700; font-size: 14.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.p-strip__go .p-ico { width: 20px; height: 20px; }
.p-strip--stop { background: #5A2A22; }
.p-qa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.p-qa a { background: #fff; border: 1px solid var(--p-line); border-radius: 12px; padding: 12px 6px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--p-green); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 92px; line-height: 1.25; box-shadow: var(--p-shadow); }
.p-qa a:hover { border-color: #B8C9BF; }
.p-qa .p-ico { width: 26px; height: 26px; }
.p-detail { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 8px 0 0; font-size: 15px; }
.p-detail dt { color: var(--p-muted); }
.p-detail dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- lists */
.p-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border: 1px solid var(--p-line); border-radius: 13px; padding: 4px; margin: 0 0 14px; gap: 4px; }
.p-seg a { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; font-size: 14.5px; font-weight: 700; color: var(--p-muted); border-radius: 10px; text-decoration: none; padding: 0 6px; line-height: 1.2; }
.p-body .p-seg a { color: var(--p-muted); text-decoration: none; }
.p-body .p-seg a[aria-current] { background: var(--p-green); color: #fff; }
.p-filter { display: flex; gap: 8px; align-items: flex-end; margin: 0 0 14px; }
.p-filter .p-field { flex: 1; margin: 0; }
.p-filter .p-select { min-height: 46px; font-size: 16px; padding-top: 8px; padding-bottom: 8px; }
.p-list .p-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--p-line); font-size: 15px; }
.p-list .p-item:first-of-type { border-top: 0; padding-top: 2px; }
.p-list .p-item small { display: block; color: var(--p-muted); font-size: 13.5px; margin-top: 2px; }
.p-list .p-item > div { min-width: 0; }
.p-list .p-item a, .p-body .p-list .p-item a { color: var(--p-green); font-weight: 700; white-space: nowrap; }
.p-list .p-item > a, .p-list .p-item .p-acts a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.p-list .p-item .p-acts { display: flex; gap: 14px; flex: none; }
.p-list a.p-item--go, .p-body .p-list a.p-item--go { color: var(--p-ink); text-decoration: none; font-weight: 700; min-height: 54px; padding-top: 6px; padding-bottom: 6px; }
.p-list .p-item--go:first-of-type { padding-top: 0; }
.p-list .p-item--go .p-ico { flex: none; width: 20px; height: 20px; color: var(--p-green); }
.p-list .p-item--go:hover span { color: var(--p-green); }
.p-empty { text-align: center; color: var(--p-muted); padding: 26px 16px; }
.p-empty .p-ico { width: 34px; height: 34px; color: #9DB0A5; display: block; margin: 0 auto 8px; }
.p-more { margin: 14px 0 0; text-align: center; }

/* ---------------------------------------------------------------- job */
.p-track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 6px 0 4px; }
.p-track > div { text-align: center; font-size: 13px; font-weight: 700; color: var(--p-muted); position: relative; padding-top: 26px; }
.p-track > div::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid #B9C7BF; z-index: 1; box-sizing: border-box; }
.p-track > div::after { content: ""; position: absolute; top: 8.5px; left: -50%; width: 100%; height: 3px; background: #C9D5CE; }
.p-track > div:first-child::after { display: none; }
.p-track > .is-done { color: var(--p-green); }
.p-track > .is-done::before { background: var(--p-green); border-color: var(--p-green); }
.p-track > .is-done::after { background: var(--p-green); }
.p-track > .is-now::before { border-color: var(--p-green); background: var(--p-yellow); }

.p-contact { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 12px; }
.p-contact .p-btn { flex-direction: column; gap: 4px; min-height: 64px; padding: 6px 4px; font-size: 14px; }
.p-pill + .p-pill { margin-left: 6px; }

/* ---------------------------------------------------------------- quote */
.p-lines .p-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 15px; padding: 7px 0; }
.p-lines .p-line span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-lines .p-line small { display: block; color: var(--p-muted); font-size: 13px; }
.p-lines .p-line--sub { color: var(--p-muted); border-top: 1px solid var(--p-line); margin-top: 6px; padding-top: 10px; }
.p-lines .p-line--sub + .p-line--sub { border-top: 0; margin-top: 0; padding-top: 4px; }
.p-lines .p-line--total { border-top: 1px solid var(--p-line); margin-top: 6px; padding-top: 11px; font-weight: 700; font-size: 18px; }
.p-smallprint { white-space: pre-wrap; font-size: 13.5px; color: var(--p-muted); margin: 10px 0 0; }

/* ---------------------------------------------------------------- statement */
.p-meter { height: 10px; border-radius: 5px; background: var(--p-mint); margin: 10px 0 8px; overflow: hidden; }
.p-meter span { display: block; height: 100%; background: var(--p-green); border-radius: 5px; }
.p-meter--over span { background: var(--p-bad); }
.p-owed { font-size: 30px; font-weight: 700; margin: 2px 0 2px; color: var(--p-ink); font-variant-numeric: tabular-nums; }

.p-lic { display: flex; gap: 12px; align-items: flex-start; }
.p-lic .p-ico { flex: none; width: 30px; height: 30px; color: var(--p-green); }

/* ---------------------------------------------------------------- documents (sheet pages) */
.p-docbody { background: #E9EEEA; }
.p-docbar { max-width: 820px; margin: 0 auto; padding: 12px 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-docbar__back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; color: var(--p-green); text-decoration: none; font-size: 15.5px; }
.p-docbar__back .p-ico { width: 20px; height: 20px; }
.p-docbody .p-docbar .p-btn { color: var(--p-on-yellow); }
.p-docmain { padding: 0 0 32px; }
.p-docbody .sheet > .no-print.actions, .p-docbody .p-docmain > .no-print.actions { display: none; }
.p-docbody .sheet { margin-top: 12px; }
@media (max-width: 600px) {
  .p-docbody .sheet { margin: 12px 0 0; padding: 1rem 1rem 1.5rem; border-left: 0; border-right: 0; }
  .p-docbody .sheet__head { flex-direction: column; gap: .5rem; }
  .p-docbody .sheet__head .right { text-align: left; }
  .p-docbody .sheet table th, .p-docbody .sheet table td { padding: .45rem .3rem; font-size: .9rem; }
  .p-docbody .dl { grid-template-columns: 1fr; }
  .p-docbody .sheet__sig { grid-template-columns: 1fr; }
  .p-docbody .cn-grid { grid-template-columns: 1fr; }
  .p-docbody .cn-table { display: block; overflow-x: auto; }
}

/* ---------------------------------------------------------------- receipt (a sheet of our own) */
.p-receipt { background: #fff; }
.p-receipt__head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--p-ink); padding-bottom: 12px; margin-bottom: 14px; }
.p-receipt__head .p-h1 { margin: 0; }
.p-receipt table { width: 100%; border-collapse: collapse; font-size: 15px; }
.p-receipt th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--p-muted); border-bottom: 1px solid var(--p-line); padding: 6px 4px; }
.p-receipt td { border-bottom: 1px solid var(--p-line); padding: 8px 4px; vertical-align: top; }
.p-receipt .num { text-align: right; white-space: nowrap; }
.p-receipt tfoot td { border-bottom: 0; font-weight: 700; font-size: 17px; }

/* ---------------------------------------------------------------- tablets and computers */
@media (min-width: 560px) {
  .p-two { grid-template-columns: 1fr 1fr; }
  .p-two--wide { grid-template-columns: 3fr 2fr; }
}
@media (min-width: 768px) {
  .p-top__in { min-height: 68px; padding: 10px 28px; gap: 20px; }
  .p-logo { margin-right: 8px; }
  .p-logo__mark { height: 30px; }
  .p-top .p-nav { display: flex; gap: 4px; flex: 1; }
  .p-nav a, .p-body .p-nav a { color: #E3EEE8; text-decoration: none; font-size: 15.5px; font-weight: 700; padding: 10px 14px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; }
  .p-nav a:hover { background: rgba(255, 255, 255, .08); }
  .p-body .p-nav a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; }
  .p-top .p-top__book { display: inline-flex; min-height: 44px; }
  .p-out .p-logo { margin-right: auto; }
  .p-tabs { display: none; }
  .p-main { padding: 34px 16px 40px; }
  .p-foot { padding-bottom: 40px; }
  .p-h1 { font-size: 30px; }
  .p-cols { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .p-cols > .p-card { margin-bottom: 12px; }
  .p-auth { margin-top: 28px; }
  .p-auth__card { padding: 32px 30px 28px; }
  .p-qa a { flex-direction: row; min-height: 64px; gap: 10px; font-size: 14.5px; }
  .p-actions--wide { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- print */
/* Apply for a trade account (/portal/apply) */
.p-card > .p-h2:first-child { margin-top: 0; }
.p-apply-note p { margin: 0; font-size: 15px; line-height: 1.45; }
.p-field > .p-check { display: flex; font-size: 15.5px; font-weight: 600; margin: 0; padding: 8px 0; }
.p-field > .p-check small { font-weight: 400; }
.p-checks { display: grid; gap: 0 12px; }
.p-checks .p-check { padding: 8px 0; }
.p-apply-more { margin: 0 0 16px; }
.p-apply-more > summary { cursor: pointer; font-weight: 700; color: var(--p-green); padding: 10px 0; min-height: 44px; }
@media (min-width: 560px) { .p-checks { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- book on account at trade prices (book-trade.php) */
.p-choice > span:not(.p-tb-price) { flex: 1; min-width: 0; }
.p-tb-price { flex: none; margin-left: auto; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-tb-price b { display: block; font-size: 16px; }
.p-tb-price s, .p-tb-each s { color: var(--p-muted); font-size: 13px; }
.p-tb-price s { display: block; }
.p-qty-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--p-line); }
.p-qty-row > label { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; }
.p-qty-row > label b { display: block; }
.p-qty-row > label small { display: block; color: var(--p-muted); font-size: 13.5px; margin-top: 2px; }
.p-qty-row .p-tb-each { color: var(--p-ink); font-weight: 700; }
.p-qty { flex: none; width: 76px; min-height: 48px; text-align: center; padding: 10px 6px; -moz-appearance: textfield; }
.p-tb-more { border-top: 1px solid var(--p-line); margin: 0; }
.p-tb-more > summary { cursor: pointer; font-weight: 700; color: var(--p-green); padding: 12px 0; min-height: 44px; }
.p-tb-more[open] > summary { padding-bottom: 4px; }
.p-tb-more .p-qty-row:first-of-type { border-top: 0; }
.p-tb-update { margin-top: 10px; }

@media print {
  .p-body, .p-docbody { background: #fff; font-size: 12pt; }
  .p-top, .p-tabs, .p-foot, .p-noprint, .p-skip, .p-docbar, .p-flash, .p-btn, .p-seg, .p-filter, .p-actions { display: none !important; }
  .p-main { max-width: none; padding: 0; }
  .p-card { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .p-strip { background: #fff; color: #000; border: 1px solid #bbb; }
  .p-strip b, .p-strip small { color: #000; }
  .p-meter { border: 1px solid #999; }
  .p-printonly { display: block !important; }
}
.p-printonly { display: none; }
