/* Real estate pages (owner 12-05): one look for the deal board, deal sheet, pricing report, estimates, setup and the print copy.
   Phone first: every grid folds to one column under 640px; tables scroll sideways inside their card. */
:root{ --ink:#1c1a17; --muted:#6b6559; --line:#e7e1d4; --paper:#faf7f0; --card:#fff; --accent:#0e7490; --good:#2e9e6b; --warn:#b45309; --bad:#b91c1c; --pill:#f3eee1; }
*{ box-sizing:border-box; }
body{ margin:0; font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; background:var(--paper); color:var(--ink); }
.wrap{ max-width:1100px; margin:0 auto; padding:20px 14px 60px; }
.back{ display:inline-block; color:var(--muted); font-size:14px; text-decoration:none; margin-bottom:10px; background:none; border:none; padding:0; cursor:pointer; }
h1{ font-size:24px; margin:0 0 4px; }
.sub{ color:var(--muted); font-size:14px; margin:0 0 18px; }
.card{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:16px 18px; margin-bottom:14px; box-shadow:0 4px 16px rgba(20,16,8,.04); }
.card h2{ font-size:13px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); margin:0 0 12px; display:flex; align-items:center; gap:10px; }
.card h2 .count{ background:var(--pill); color:var(--ink); border-radius:10px; padding:1px 8px; font-size:12px; letter-spacing:0; }
.card h3{ font-size:15px; margin:14px 0 8px; }
.fields{ display:flex; flex-wrap:wrap; gap:10px 14px; align-items:flex-end; }
.f{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.f label{ font-size:12.5px; color:var(--muted); }
.f input, .f select, .f textarea{ padding:9px 10px; border:1px solid var(--line); border-radius:9px; font-size:15px; background:#fff; min-width:0; font-family:inherit; }
.f textarea{ min-height:64px; }
.f.grow{ flex:1 1 220px; } .f.mid{ flex:0 1 170px; } .f.small{ flex:0 1 110px; }
.f.check{ flex-direction:row; align-items:center; gap:6px; padding-bottom:9px; }
.btn{ border:none; border-radius:10px; padding:10px 16px; font-size:14px; font-weight:700; cursor:pointer; background:var(--accent); color:#fff; text-decoration:none; display:inline-block; }
.btn.ghost{ background:var(--pill); color:var(--ink); font-weight:600; }
.btn.small{ padding:6px 10px; font-size:13px; }
.btn.warn{ background:#fde8e8; color:var(--bad); }
.btn[disabled]{ opacity:.5; cursor:default; }
.row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
table{ width:100%; border-collapse:collapse; font-size:14px; margin-bottom:10px; }
th{ text-align:left; font-size:12px; color:var(--muted); font-weight:600; border-bottom:1px solid var(--line); padding:6px; white-space:nowrap; }
td{ border-bottom:1px solid var(--line); padding:7px 6px; vertical-align:middle; }
td.num, th.num{ text-align:right; white-space:nowrap; }
td input, td select{ padding:6px 7px; border:1px solid var(--line); border-radius:7px; font-size:14px; width:100%; min-width:70px; font-family:inherit; }
td input.wide{ min-width:160px; }
tr.archived td{ color:var(--muted); }
td.acts{ text-align:right; white-space:nowrap; }
.tag{ display:inline-block; border-radius:8px; padding:2px 8px; font-size:12px; font-weight:700; background:var(--pill); color:var(--muted); }
.tag.ok, .tag.done{ background:#e7f6ee; color:var(--good); } .tag.expiring, .tag.soon{ background:#fff4e0; color:var(--warn); }
.tag.expired, .tag.late{ background:#fde8e8; color:var(--bad); }
.empty{ color:var(--muted); font-size:14px; margin:4px 0 10px; }
.msg{ font-size:14px; margin-top:8px; min-height:1em; } .msg.err{ color:var(--bad); } .msg.ok{ color:var(--good); }
.note{ background:#eef7f9; border:1px solid #cfe6ec; color:#134e5e; border-radius:10px; padding:10px 12px; font-size:13.5px; margin-bottom:12px; }
.note.warn{ background:#fff8ec; border-color:#f1dcb4; color:#7a4a0b; }
.hidden{ display:none !important; }
.showarch{ font-size:13px; color:var(--muted); margin:-4px 0 10px; }
.chip{ display:inline-flex; align-items:center; gap:6px; background:var(--pill); border-radius:14px; padding:4px 10px; font-size:13.5px; margin:0 6px 6px 0; }
.chip button{ border:none; background:none; cursor:pointer; font-size:15px; color:var(--muted); padding:0; }
.results{ border:1px solid var(--line); border-radius:10px; margin-top:6px; max-height:260px; overflow:auto; background:#fff; }
.results .r{ display:flex; justify-content:space-between; align-items:center; gap:8px; padding:8px 10px; border-bottom:1px solid var(--line); font-size:14px; }
.when{ color:var(--muted); font-size:12.5px; }
/* the board */
.toolbar{ display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; margin-bottom:12px; }
.board{ display:flex; gap:10px; overflow-x:auto; padding-bottom:8px; -webkit-overflow-scrolling:touch; }
.col{ flex:0 0 230px; background:#f4efe3; border-radius:12px; padding:8px; }
.col h4{ font-size:12.5px; margin:2px 4px 8px; color:var(--muted); text-transform:uppercase; letter-spacing:.4px; display:flex; justify-content:space-between; }
.dc{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:9px 10px; margin-bottom:8px; cursor:pointer; font-size:13.5px; }
.dc .nm{ font-weight:700; font-size:14px; margin-bottom:3px; }
.dc .meta{ color:var(--muted); font-size:12.5px; }
.stages{ display:flex; flex-wrap:wrap; gap:6px; }
.stages .btn.on{ background:var(--ink); color:#fff; }
.tabs{ display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.tabs .btn{ background:var(--pill); color:var(--ink); }
.tabs .btn.on{ background:var(--accent); color:#fff; }
.big{ font-size:22px; font-weight:800; }
@media (max-width:640px){
  .board{ flex-direction:column; overflow:visible; }
  .col{ flex:1 1 auto; }
  th.opt, td.opt{ display:none; }
  .f.mid, .f.small{ flex:1 1 140px; }
  h1{ font-size:21px; }
}
/* the deal's walk-throughs & inspections: the card's own heading names the shared checklists panel; an open checklist's
   title keeps the panel's own look (not the card heading's small capitals) */
#clPanel .clp>h2{display:none}
#clPanel .clv h2{display:block; font-size:21px; text-transform:none; letter-spacing:normal; color:inherit; margin:8px 0 4px}
