/* My Hoffmann Home (customer portal) and the office page. Uses the site's
   colors and buttons from styles.css. */
.pt-hero { padding: 36px 0 44px; }
.pt-main { background: var(--bg-soft); padding: 32px 0 64px; min-height: 50vh; }
.pt-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.pt-card h3, .pt-section h3 { font-family: var(--head); color: var(--navy); margin: 0 0 10px; font-size: 1.3rem; }
.pt-signin { max-width: 480px; margin: 0 auto; }
.pt-signin h2 { font-family: var(--head); color: var(--navy); margin: 0 0 8px; }
.pt-form { display: grid; gap: 10px; margin-top: 12px; }
.pt-form label, .pt-field label { font-weight: 600; font-size: .92rem; }
.pt-form input, .pt-field input, .pt-field select, .pt-field textarea, .pt-search, .pt-row input, .pt-row select, .pt-paste textarea, .pt-photo input, .pt-photo select {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #c4ccd4; border-radius: 8px; width: 100%; background: #fff; color: var(--ink);
}
.pt-status { color: var(--muted); font-size: .95rem; min-height: 1.4em; margin: 6px 0 0; }
.pt-fine, .pt-hint, .pt-field small { color: var(--muted); font-size: .9rem; }
.pt-link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-2); text-decoration: underline; cursor: pointer; }
.pt-empty { color: var(--muted); font-style: italic; margin: 0; }

.pt-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.pt-bar h2 { font-family: var(--head); color: var(--navy); margin: 0; font-size: 1.7rem; }
.pt-bar p { margin: 0; color: var(--muted); }
.pt-bar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .93rem; }
.pt-who { color: var(--muted); overflow-wrap: anywhere; }
.pt-switch select { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid #c4ccd4; }
.pt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.pt-tabs a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .93rem; }
.pt-section { margin-bottom: 28px; scroll-margin-top: 80px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.pt-grid .pt-card { margin-bottom: 0; }
.pt-grid + .pt-card { margin-top: 18px; }
.pt-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.pt-dl dt { color: var(--muted); }
.pt-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.pt-list { margin: 0; padding-left: 20px; }
.pt-plan .tag { display: inline-block; background: var(--bg-soft); color: var(--navy); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.pt-plan.active .tag { background: #2f7d4f; color: #fff; }
.pt-note p { white-space: pre-line; margin: 0; }

.pt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pt-head h3 { margin: 0; }
.pt-search { max-width: 420px; margin-bottom: 12px; }
.pt-head .pt-search { margin-bottom: 0; flex: 1 1 260px; }
.pt-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pt-table th, .pt-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt-table th { background: var(--navy); color: #fff; font-weight: 600; font-size: .9rem; }
.pt-table td:first-child, .pt-table td:nth-child(2) { white-space: nowrap; width: 1%; font-weight: 600; }

.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pt-chip { font: inherit; font-size: .9rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--navy); }
.pt-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pt-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.pt-photo { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; color: var(--ink); }
button.pt-photo { cursor: pointer; }
.pt-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg-soft); }
.pt-photo span { font-size: .9rem; }
.pt-photo em { display: block; color: var(--muted); font-style: normal; font-size: .82rem; }
.pt-lightbox { border: 0; border-radius: 12px; padding: 12px; max-width: min(96vw, 1100px); }
.pt-lightbox::backdrop { background: rgba(10, 20, 30, .8); }
.pt-lightbox img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; }
.pt-lightbox p { margin: 8px 0 0; }
.pt-close { float: right; font: inherit; border: 0; background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 12px; cursor: pointer; margin-bottom: 8px; }
.pt-help .pt-card { background: var(--navy); color: #fff; border: 0; }
.pt-help h3 { color: #fff; }
.pt-help a:not(.btn) { color: #fff; }

/* Office page */
.pt-homes { display: grid; gap: 10px; }
.pt-home { display: grid; gap: 2px; text-align: left; font: inherit; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; cursor: pointer; color: var(--ink); }
.pt-home:hover { border-color: var(--navy); }
.pt-home span, .pt-home em { color: var(--muted); font-size: .92rem; font-style: normal; overflow-wrap: anywhere; }
.pt-title { font-family: var(--head); color: var(--navy); margin: 4px 0 12px; }
.pt-edit fieldset { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 20px; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.pt-edit legend { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: 1.15rem; padding: 0 6px; }
.pt-field { display: grid; gap: 4px; align-content: start; }
.pt-field.wide, .pt-rows, .pt-paste, .pt-edit fieldset > p, .pt-edit fieldset > .pt-link { grid-column: 1 / -1; }
.pt-rows { display: grid; gap: 8px; }
.pt-row { display: flex; gap: 8px; align-items: center; }
.pt-row .short { flex: 0 0 76px; }
.pt-row select { flex: 0 0 170px; }
.pt-x { flex: none; width: 36px; height: 36px; border: 1px solid #c4ccd4; background: #fff; border-radius: 8px; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.pt-paste summary { cursor: pointer; color: var(--navy-2); font-weight: 600; }
.pt-paste textarea { margin: 8px 0; }
.pt-save { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 24px; }
.pt-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pt-invite p { margin: 0; flex: 1 1 100%; overflow-wrap: anywhere; }
.pt-invite small { color: var(--muted); }
.pt-upload { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; margin-bottom: 16px; }
.pt-upload .pt-save { grid-column: 1 / -1; margin: 0; }
.pt-photos.office .pt-photo input, .pt-photos.office .pt-photo select { padding: 6px 8px; font-size: .9rem; }
.pt-del { align-self: flex-start; color: #a23a2a; font-size: .9rem; }
.pt-danger { margin-top: 28px; color: var(--muted); }
.pt-danger summary { cursor: pointer; }
.pt-delete { background: #a23a2a; color: #fff; }

@media (max-width: 600px) {
  .pt-row { flex-wrap: wrap; }
  .pt-row select { flex: 1 1 100%; }
  .pt-row input:not(.short) { flex: 1 1 60%; }
  .pt-edit fieldset { padding: 12px 14px 16px; }
}

@media print {
  .site-header, .site-footer, .pt-hero, .pt-tabs, .pt-bar-right, .pt-search, .pt-print, .pt-hint, #pt-0, #pt-2, .pt-help { display: none !important; }
  .pt-main { background: #fff; padding: 0; }
  .pt-table th { background: #fff; color: #000; border-bottom: 2px solid #000; }
}

/* Two photos across on phones for customers; the office keeps one so its edit boxes fit. */
@media (max-width: 600px) {
  .pt-photos:not(.office) { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pt-photos:not(.office) .pt-photo span { font-size: .82rem; }
}

/* Office: the Save button stays in view while scrolling a long home form. */
.pt-edit > .pt-save { position: sticky; bottom: 0; z-index: 5; background: var(--bg-soft); padding: 10px 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.pt-edit fieldset, #ed-photos { scroll-margin-top: 80px; }

/* Sign in with Google */
.pt-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 12px; padding: 12px 16px; font: inherit; font-weight: 600; color: #1f1f1f; background: #fff; border: 1px solid #747775; border-radius: 8px; cursor: pointer; }
.pt-google:hover { background: #f6f8fa; }
.pt-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.pt-or::before, .pt-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- Stay Current visits (step 2) ---- */
.btn-ghost-dark { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost-dark:hover { background: var(--bg-soft); }
.pt-due { display: inline-block; margin-left: 8px; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.pt-due.ok { background: #e3f1e8; color: #23613c; }
.pt-due.soon { background: #fdf0d5; color: #8a5a00; }
.pt-due.due { background: #fbe1dc; color: #a23a2a; }
.pt-row .pt-due { margin-left: 0; flex: none; }

/* Office: visit checklist, one row per check with three big tap targets */
.pt-checks { grid-column: 1 / -1; display: grid; gap: 14px; }
.pt-check { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pt-check:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-check small { display: block; color: var(--muted); font-size: .86rem; }
.pt-check-note { grid-column: 1 / -1; font: inherit; font-size: .95rem; padding: 9px 12px; border: 1px solid #c4ccd4; border-radius: 8px; width: 100%; }
.pt-seg { display: inline-flex; border: 1px solid #c4ccd4; border-radius: 10px; overflow: hidden; }
.pt-seg button { font: inherit; font-size: .9rem; font-weight: 600; border: 0; border-right: 1px solid #c4ccd4; background: #fff; color: var(--ink); padding: 10px 12px; min-width: 64px; cursor: pointer; }
.pt-seg button:last-child { border-right: 0; }
.pt-seg button[aria-checked="true"].pt-seg-ok { background: #2f7d4f; color: #fff; }
.pt-seg button[aria-checked="true"].pt-seg-attention { background: #c27c0e; color: #fff; }
.pt-seg button[aria-checked="true"].pt-seg-na { background: #5b6774; color: #fff; }
.pt-asks { border-color: #c27c0e; }
.pt-asks h4, .pt-heat h4, .pt-report .pt-note h4 { font-family: var(--head); color: var(--navy); margin: 0 0 6px; font-size: 1.05rem; }
.pt-preview { margin-top: 24px; }
.pt-preview .pt-report { max-width: 640px; }

/* The report (customer and office preview); builds on .report in styles.css */
.pt-report { margin-bottom: 18px; }
.report-list li.na::before { content: "–"; background: #9aa5b0; }
.pt-heat { margin: 14px 0 4px; }
.pt-heat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-heat-fig { margin: 0; }
.pt-heat-fig img, .pt-heat-none { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.pt-heat-fig figcaption { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.pt-report .pt-note { margin-top: 12px; }
.pt-report .pt-note p { margin: 0; white-space: pre-line; }
.pt-recs { list-style: decimal; }
.pt-recs li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pt-recs li:last-child { border-bottom: 0; }
.pt-rec-text { display: flex; justify-content: space-between; gap: 10px; }
.pt-rec-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.pt-rec-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.pt-rec-btns .btn { padding: 8px 16px; font-size: .92rem; }
.pt-rec-state { display: block; margin-top: 4px; font-size: .88rem; color: var(--muted); }
.pt-rec-state.ok { color: #23613c; font-weight: 600; }
.pt-rec-state.done { color: #23613c; }
.pt-older summary { cursor: pointer; color: var(--navy-2); font-weight: 600; margin: 4px 0 12px; }
.pt-ask { max-width: min(94vw, 480px); }
.pt-ask form { display: grid; gap: 8px; }
.pt-ask h3 { margin: 0; font-family: var(--head); color: var(--navy); }
.pt-ask textarea { font: inherit; padding: 10px 12px; border: 1px solid #c4ccd4; border-radius: 8px; width: 100%; }
.pt-ask .pt-save { margin: 6px 0 0; }

@media (max-width: 600px) {
  .pt-check { grid-template-columns: 1fr; }
  .pt-seg { width: 100%; }
  .pt-seg button { flex: 1; padding: 12px 6px; }
}
@media print {
  #pt-r, #pt-a { display: none !important; }
}
.pt-alarms td, .pt-alarms td:first-child, .pt-alarms td:nth-child(2) { white-space: normal; width: auto; font-weight: 400; }
.pt-alarms td:last-child { font-weight: 600; }
.pt-alarms .pt-due { display: block; width: fit-content; margin: 4px 0 0; }
@media (max-width: 600px) {
  .pt-edit > .pt-save { gap: 8px; }
  .pt-edit > .pt-save .btn { padding: 10px 14px; font-size: .92rem; }
  .pt-edit > .pt-save .pt-status { flex: 1 1 100%; margin: 0; min-height: 0; }
  .pt-rows.recs .pt-row select, .pt-rows.alarm .pt-row select { flex: 1 1 0; }
}
@media (max-width: 600px) {
  .pt-rows.recs .pt-row input:not(.short), .pt-rows.alarm .pt-row input:not(.short) { flex: 1 1 100%; }
}
@media (max-width: 600px) {
  .pt-rows.alarm .pt-row select { flex: 1 1 130px; min-width: 130px; }
}
