/* The tenant's, owner's and vendor's private pages (tenant.html, owner.html, vendor.html; js/pm-portal-page.js). */
.pp-body { background: var(--mist); min-height: 100vh; display: flex; flex-direction: column; }
.pp-top { background: #fff; border-bottom: 1px solid var(--line); }
.pp-wrap { max-width: 760px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pp-mail { font-weight: 700; color: var(--blue); }
.pp-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 18px 16px 40px; display: grid; gap: 14px; align-content: start; }
.pp-foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 18px 16px 28px; }
.pp-foot a { color: inherit; }
.pp-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(16px, 3vw, 24px); display: grid; gap: 10px; }
.pp-card h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); line-height: 1.2; }
.pp-card h2 { margin: 0; font-size: 1.15rem; }
.pp-card p { margin: 0; line-height: 1.5; }
.pp-card label { display: grid; gap: 4px; font-weight: 600; }
.pp-card label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.pp-card input:not([type=checkbox]):not([type=radio]):not([type=file]), .pp-card textarea, .pp-card select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; width: 100%; }
.pp-card .btn { justify-self: start; }
.pp-kicker { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pp-attn { border: 2px solid var(--blue); }
.pp-note { background: var(--mist); border-radius: 8px; padding: 8px 12px; }
.pp-pre { white-space: pre-wrap; }
.pp-said { background: #e8f6ee; color: #145c33; border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.pp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; margin-top: 6px; }
.pp-tiles > div { background: var(--mist); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.pp-tiles span { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.pp-tiles b { font-size: 1.25rem; } .pp-tiles small { color: var(--muted); }
.pp-owe { color: var(--red-strong); }
.pp-choice { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.pp-choice legend { font-weight: 700; margin-bottom: 4px; }
.pp-choice label { display: flex; gap: 8px; font-weight: 500; }
.pp-911 { background: #fdecec; border-radius: 8px; padding: 8px 12px; font-size: .92rem; }
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-list > li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pp-list > li:last-child { border-bottom: 0; }
.pp-list > li > div { display: grid; gap: 3px; min-width: 0; }
.pp-list small { color: var(--muted); }
.pp-rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pp-rate input { max-width: 220px; } .pp-rate select { width: auto !important; }
.pp-stars { color: #d98a00; letter-spacing: 2px; }
.pp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pp-table td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-table .num { text-align: right; white-space: nowrap; }
.pp-total td { font-weight: 800; border-top: 2px solid var(--ink); }
.pp-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pp-thumb img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; background: var(--mist); }
.pp-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 360px; overflow-y: auto; }
.pp-msgs li { background: var(--mist); border-radius: 10px; padding: 8px 12px; display: grid; gap: 2px; max-width: 88%; }
.pp-msgs li.pp-me { background: #eef2ff; justify-self: end; }
.pp-msgs small { color: var(--muted); } .pp-msgs p { white-space: pre-wrap; }
.pp-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.pp-pick button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.pp-pick button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pp-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pp-row label { display: flex; align-items: center; gap: 6px; } .pp-row select { width: auto !important; }
.pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .pp-two { grid-template-columns: 1fr; } }
@media print { .pp-foot, form.pp-card, .pp-pick, .pp-card .btn { display: none !important; } .pp-body { background: #fff; } }
