/* Projects: shared by the customer portal and the admin portal. Layout only; colors come from portal.css. */
.pj{display:grid;gap:18px;min-width:0}
.pj h3{font-size:17px;font-weight:600;margin:0 0 10px;letter-spacing:-.01em}
.pj-sec{border-top:1px solid var(--line);padding-top:16px;min-width:0}
.pj-sec:first-child{border-top:0;padding-top:0}
.pj-head{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}
.pj-title{font-size:clamp(22px,2.4vw,30px);font-weight:500;letter-spacing:-.03em;line-height:1.15;margin:0;overflow-wrap:anywhere}
.pj-status{display:inline-flex;align-items:center;font-size:12px;font-weight:700;letter-spacing:.04em;border-radius:999px;padding:3px 10px;color:#fff;background:#5a6268;white-space:nowrap}
.pj-status[data-s=planning]{background:#1f5e3b}.pj-status[data-s=scheduled]{background:#14347a}.pj-status[data-s=in_progress]{background:#1d6b3f}
.pj-status[data-s=on_hold]{background:#8a4b12}.pj-status[data-s=completed]{background:#101a3a}.pj-status[data-s=cancelled]{background:#5a6268}
.pj-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;border-radius:6px;padding:2px 7px;background:#eeeff1;color:var(--mute)}
.pj-tag.int{background:#fbefe0;color:#8a4b12}
.pj-tag.cust{background:#e6eaf2;color:#0f285f}
.pj-bar{height:10px;border-radius:999px;background:#e8e9ec;overflow:hidden;margin:6px 0 4px}
.pj-bar>span{display:block;height:100%;background:linear-gradient(90deg,var(--teal),var(--g2));border-radius:999px}
.pj-money{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}
.pj-stat{border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.pj-stat b{display:block;font-size:20px;font-weight:600;letter-spacing:-.02em;overflow-wrap:anywhere}
.pj-stat span{font-size:12px;color:var(--mute);text-transform:uppercase;letter-spacing:.08em}
.pj-stat.due{border-color:rgba(100,211,148,.9);background:#fbf8f1}
.pj-steps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pj-steps li{display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:start;min-width:0}
.pj-dot{width:20px;height:20px;border-radius:50%;border:2px solid var(--line);margin-top:2px;display:grid;place-items:center;font-size:12px;line-height:1;color:#fff}
.pj-dot[data-s=in_progress]{border-color:var(--teal);background:rgba(20,54,128,.15)}
.pj-dot[data-s=done]{border-color:#1d6b3f;background:#1d6b3f}
.pj-steps .pj-st{overflow-wrap:anywhere}
.pj-feed{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pj-feed li{border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.pj-feed li.mine{background:#f5f7fa;border-color:#cfd6e5}
.pj-feed li.int{background:#fffaf2;border-color:#f0dcc0}
.pj-feed li.gone{opacity:.55}
.pj-feed .pj-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 0}
.pj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.pj-fig{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;min-width:0}
.pj-fig img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#eeeff1;cursor:zoom-in}
.pj-fig figcaption{padding:8px 10px;font-size:13px;overflow-wrap:anywhere}
.pj-files{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.pj-files li{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.pj-files li .pj-fn{overflow-wrap:anywhere;min-width:0;flex:1 1 200px}
.pj-files li.gone{opacity:.55}
.pj-cr{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pj-cr>li{border:1px solid var(--line);border-radius:12px;padding:12px;min-width:0}
.pj-cr>li[data-s=quoted]{border-color:rgba(100,211,148,.95);background:#fbf8f1}
.pj-cr .pj-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}
.pj-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.pj-actions .btn{width:auto;flex:0 1 auto;min-height:40px;padding:0 16px;font-size:14px}
.pj-form{display:grid;gap:4px;min-width:0}
.pj-form .two{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 12px}
.pj-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pj-list>li>button,.pj-list>li>a{all:unset;box-sizing:border-box;display:grid;gap:4px;width:100%;cursor:pointer;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff}
.pj-list>li>button:hover,.pj-list>li>a:hover{border-color:rgba(100,211,148,.8)}
.pj-list>li>button:focus-visible,.pj-list>li>a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.pj-list .pj-meta{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:13px;color:var(--mute)}
.pj-alert{border:1px solid rgba(100,211,148,.95);background:#fbf8f1;border-radius:12px;padding:10px 12px}
.pj-home{display:grid;gap:10px}
.pj-home .pj{gap:10px}.pj-home .pj p{margin:0}
.pj-home .pj-title{font-size:22px}
.pj-lb{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.86);display:grid;place-items:center;padding:16px}
.pj-lb img{max-width:100%;max-height:82vh;border-radius:8px}
.pj-lb p{color:#fff;text-align:center;margin:10px 0 0;overflow-wrap:anywhere}
.pj-lb button{position:absolute;top:12px;right:12px;min-height:44px;min-width:44px;border-radius:999px;border:1px solid rgba(255,255,255,.5);background:transparent;color:#fff;font-size:22px;cursor:pointer}
.pj-pending{display:grid;gap:8px}
.pj-pending .pj-pf{display:grid;grid-template-columns:56px 1fr auto;gap:10px;align-items:start;border:1px dashed var(--line);border-radius:12px;padding:8px}
.pj-pending img{width:56px;height:56px;object-fit:cover;border-radius:8px;background:#eeeff1}
.pj-pending .pj-pdf{width:56px;height:56px;border-radius:8px;background:#eeeff1;display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--mute)}
.pj-pending label{margin-bottom:6px}
.pj-err{color:#a12a2a;font-size:13px}
@media(max-width:560px){.pj-steps li{grid-template-columns:24px 1fr}.pj-steps li>.pj-sd{grid-column:2}.pj-pending .pj-pf{grid-template-columns:48px 1fr}.pj-pending .pj-pf>button{grid-column:1/-1}}
/* admin dark mode */
html[data-admin-theme=dark] .pj-list>li>button,html[data-admin-theme=dark] .pj-list>li>a,html[data-admin-theme=dark] .pj-fig,html[data-admin-theme=dark] .pj-stat.due,html[data-admin-theme=dark] .pj-cr>li[data-s=quoted],html[data-admin-theme=dark] .pj-alert{background:transparent}
html[data-admin-theme=dark] .pj-feed li.mine,html[data-admin-theme=dark] .pj-feed li.int{background:transparent}
html[data-admin-theme=dark] .pj-tag{background:#1f2739;color:#e6e8ec}
html[data-admin-theme=dark] .pj-tag.cust{background:#121c3b;color:#a8bbe3}
html[data-admin-theme=dark] .pj-tag.int{background:#3b2a14;color:#f3cf9c}
html[data-admin-theme=dark] .pj-status{color:#fff}
.pj-steps .pj-sd{flex-wrap:nowrap;align-items:center;margin-top:0}
.pj-steps .pj-sd select{width:auto;min-width:130px;margin:0;min-height:40px;padding:8px 10px}
.pj-steps .pj-sd .btn{min-height:40px}
@media(max-width:560px){.pj-steps .pj-sd{flex-wrap:wrap}}
.pj-note-edit{margin-top:6px}.pj-note-edit summary{cursor:pointer;font-size:13px;color:var(--teal)}.pj-note-edit textarea{margin:6px 0}
.pj-fig figcaption>div:not(.muted):not(.pj-head):not(.pj-actions),.pj-files .pj-fn>b{white-space:pre-wrap}
/* billing breakdown */
.pj-bd-wrap{display:grid;gap:6px;min-width:0}
.pj-bd{width:100%;max-width:520px;border-collapse:collapse;font-size:15px}
.pj-bd th{text-align:left;font-weight:500;padding:7px 10px 7px 0;color:inherit}
.pj-bd td{text-align:right;padding:7px 0;font-variant-numeric:tabular-nums;white-space:nowrap;width:1%;vertical-align:top}
.pj-bd th,.pj-bd td,.pj-bd tr{background:transparent}
.pj-bd td{border-left:0;border-right:0}
.pj-bd th{overflow-wrap:anywhere}
.pj-bd .pj-sub{display:block;font-size:13px;font-weight:400;color:var(--mute);margin-top:2px}
.pj-bd tr{border-bottom:1px solid var(--line)}
.pj-bd tr.tot th,.pj-bd tr.tot td{font-weight:700;border-top:2px solid var(--line)}
/* rule 162: Tax column */
.pj-bd-tax{max-width:600px}
.pj-bd thead th{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--mute);padding:4px 0;text-align:right}
.pj-bd thead th:first-child{text-align:left}
.pj-bd td.pj-tax{padding-left:16px;color:var(--mute)}
.pj-bd .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pj-bd tr.due th,.pj-bd tr.due td{font-weight:700;font-size:17px;border-bottom:0;padding-top:10px}
.pj-bd tr.muted th,.pj-bd tr.muted td{color:var(--mute)}
.pj-items{max-width:520px}.pj-items summary{cursor:pointer;font-size:14px;color:var(--teal);padding:4px 0}
.pj-items ul{list-style:none;margin:4px 0 8px;padding:0;display:grid;gap:4px}
.pj-items li{display:flex;justify-content:space-between;gap:12px;font-size:14px;border-bottom:1px dashed var(--line);padding:4px 0;min-width:0}
.pj-items li>span{overflow-wrap:anywhere;min-width:0}
.pj-items li>.pj-amt{display:flex;flex-direction:column;align-items:flex-end;flex:none;text-align:right;white-space:nowrap}.pj-ltax{font-size:12.5px;color:var(--mute);font-weight:400}
/* keep the breakdown a plain two-column table inside the admin page, which turns other tables into cards on phones */
#v-app table.pj-bd{display:table;width:100%}
#v-app .pj-bd tbody{display:table-row-group}
#v-app .pj-bd tr{display:table-row;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:0;background:transparent}
#v-app .pj-bd th{display:table-cell;width:auto;padding:7px 10px 7px 0;background:transparent}
#v-app .pj-bd td{display:table-cell;width:1%;white-space:nowrap;text-align:right;padding:7px 0;border:0;background:transparent}
#v-app .pj-bd tr.tot th,#v-app .pj-bd tr.tot td{border-top:2px solid var(--line)}
#v-app .pj-bd tr.due{border-bottom:0}
#v-app table.pj-bd tr:first-child{display:table-row}
.pj-bd tr:not(.tot) th,.pj-bd tr:not(.tot) td{border-top:0}
/* signed change request */
.pj-ack{display:grid;gap:8px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#f7f8fa;min-width:0}
.pj-ack h4{margin:6px 0 0;font-size:15px}
.pj-ack-list{margin:0;padding-left:22px;display:grid;gap:10px;list-style:decimal}
.pj-ack-list li::marker{font-weight:700}
.pj-ack-list li{display:grid;gap:6px}
.pj-ini{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin:0}
.pj-ini input.ini{width:90px;margin:0;text-transform:uppercase}
.pj-sig-l{display:block;font-weight:600;margin:6px 0 4px}
.pj-ack .sigpad{max-width:600px}
/* Admin bell: the notice that opened this page is highlighted for a few seconds (Kyron, Nov 9, 2026). */
.pj-hit{outline:3px solid #c9a227;outline-offset:4px;border-radius:8px;transition:outline-color .6s}
#pj-cr > li,#pj-sec-updates{scroll-margin-top:96px}
/* Named project stages and warranty card (Kyron, Nov 9, 2026) */
.pj-stages ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px 4px;margin:10px 0 4px;padding:0}
.pj-stages li{display:flex;align-items:center;gap:6px;font-size:13px;color:#5f6166;padding:4px 10px 4px 4px;border-radius:999px;background:#f1f2f4}
.pj-stages li.done{color:#1d6b3f;background:#e3f1e9}
.pj-stages li.now{color:#fff;background:#0f285e;font-weight:600}
.pj-dot{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#fff;color:#0f285e;font-size:11px;font-weight:700;flex:none}
.pj-stages li.now .pj-dot{color:#0f285e}
.pj-stage-line{margin:4px 0;font-size:14px}
.pj-warranty{border:1px solid #64d394;border-radius:14px;padding:14px 16px;background:#f3f4f6}
.pj-warranty h3{margin-top:0}
.pj-phase{display:grid;gap:4px;margin:10px 0;max-width:34rem}
.pj-phase select{max-width:16rem}
html[data-admin-theme=dark] .pj-stages li{background:#161c30;color:#cfd3dc}html[data-admin-theme=dark] .pj-stages li.done{background:#174a2d;color:#e3f1e9}
html[data-admin-theme=dark] .pj-stages li.now{background:#e8eaef;color:#0b101f}html[data-admin-theme=dark] .pj-stages li.now .pj-dot{background:#0b101f;color:#e8eaef}
html[data-admin-theme=dark] .pj-warranty,html[data-admin-theme=dark] .pj-warranty-admin{background:#2a2412;border-color:#8a6d1f;color:#fbe7b0}
/* The portal project screens stay light in OS dark mode, like the rest of My project, so no dark override here (checked Nov 9). */
/* Estimates (Kyron, Nov 9, 2026) */
.pj-status[data-s=est_draft]{background:#5a6268}.pj-status[data-s=est_sent]{background:#14347a}.pj-status[data-s=est_changes_requested]{background:#8a4b12}
.pj-status[data-s=est_accepted]{background:#1d6b3f}.pj-status[data-s=est_declined]{background:#6b2e2e}.pj-status[data-s=expired]{background:#1f5e3b}
.est-total{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:8px 0}
.est-total>b{font-size:24px;font-variant-numeric:tabular-nums}
.est-total>span:first-child{font-weight:600}
.est-next ol{margin:0;padding-left:22px;display:grid;gap:6px}
.est-disc{border:1px dashed var(--line);border-radius:12px;padding:10px 12px;margin:8px 0}
.est-disc .pj-actions select{max-width:220px}
.est-sign>summary,.est-decline>summary{cursor:pointer}
.est-sign[open]{border-color:var(--teal)}
.pj-bd tr.disc th,.pj-bd tr.disc td{color:#1d6b3f;font-weight:600}
html[data-admin-theme=dark] .pj-bd tr.disc th,html[data-admin-theme=dark] .pj-bd tr.disc td{color:#7fd1a3}
.pj-est-meta{display:flex;flex-wrap:wrap;gap:4px 14px}
.pj-desc{white-space:pre-wrap;overflow-wrap:anywhere}
/* Important notes (Kyron, Nov 10, 2026) */
.pj-keys{border-left:4px solid #64d394;background:#fbf8f1;border-radius:12px;padding:14px 16px}
.pj-key-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pj-key-list li b{display:block;font-weight:600}
.pj-key-list li .pj-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:2px 0 0}
.pj-key-admin li{border:1px solid var(--line);border-radius:10px;padding:10px 12px}
html[data-admin-theme=dark] .pj-keys{background:rgba(100,211,148,.08)}
/* Kyron, Nov 10, 2026: "this estimate changed while you had it open" is a warning (amber), not a success */
.est-warn{background:#fff6e0;border:1px solid #e3b341;border-left:4px solid #c98a00;color:#5b3d00;border-radius:10px;padding:12px 14px;margin:0 0 12px}
.est-warn b{color:#4a3200}
/* Kyron, Nov 10, 2026: estimate shared while it is built; signing grayed out until an admin opens it */
.est-locked{opacity:.6}
.est-locked .btn[disabled],.pj .btn[disabled]{cursor:not-allowed}
.est-gate{display:flex;gap:12px;align-items:flex-start}
.est-gate svg{flex:0 0 28px;width:28px;height:28px}
.est-gate .pj-actions{margin-top:8px}
.est-gate.ok{background:#eef6f1;border:1px solid #9cc49c;border-left:4px solid #2e7d32;color:#1e4620;border-radius:10px;padding:10px 14px;margin:0 0 12px}
/* Care guides on a completed project (gap analysis item 4, Nov 10, 2026) */
.pj-care-list{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:8px}
.pj-care-list li{display:grid;gap:2px;padding:12px 14px;border:1px solid var(--line,#e2e3e6);border-left:4px solid #14367f;border-radius:10px}
.pj-care-list a{text-decoration:underline;text-underline-offset:3px}
fieldset.pj-care-list{border:0;padding:0}fieldset.pj-care-list legend{font-weight:600;margin-bottom:6px}fieldset.pj-care-list .chk a{margin-left:4px}
/* Kyron, Nov 10, 2026: where materials are bought, on Materials line items */
.pj-supplier{display:block;color:#3d414a;margin-top:2px}
.pj-supplier-f[hidden]{display:none!important}
/* Customer-supplied materials (Kyron, Nov 10, 2026) */
.est-cm{border:1px solid var(--line,#e2e3e6);border-radius:12px;padding:14px 16px;margin:0 0 14px;background:#fff}
.est-cm.on{border-color:#14367f;background:#f1f3f7}
.est-cm-switch{display:flex;gap:12px;align-items:flex-start;cursor:pointer}.est-cm-switch>span{display:grid;gap:4px}
.est-cm-switch input{width:44px;height:24px;flex:none;appearance:none;-webkit-appearance:none;border-radius:999px;background:#c9ccd3;position:relative;margin:2px 0 0;cursor:pointer;transition:background .2s}
.est-cm-switch input::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s}
.est-cm-switch input:checked{background:#14367f}.est-cm-switch input:checked::after{transform:translateX(20px)}
.est-cm-switch input:focus-visible{outline:2px solid #14367f;outline-offset:3px}
.est-cm-agree{margin-top:14px;padding-top:12px;border-top:1px solid var(--line,#e2e3e6)}.est-cm-agree p{margin:0 0 8px}
.est-cm-note{border-left:4px solid #14367f}
.est-cm-switch input[type=checkbox]{width:44px!important;height:24px!important;min-height:0!important;min-width:0!important;padding:0!important;border:0!important;border-radius:999px!important;box-shadow:none!important}
/* Kyron, Nov 10, 2026: the customer-supplied materials offer on the Materials heading line */
.pj-cat-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 24px}.pj-cat-head h3{margin-bottom:0}
.pj-cat-head .pj-cm-offer{margin:0;font-weight:500;font-size:15px}
/* Estimate-to-project workflow (Kyron, Nov 10, 2026) */
.pj-status[data-s=est_awaiting_deposit]{background:#8a5a00}.pj-status[data-s=est_cancelled],.pj-status[data-s=cancelled]{background:#6b2e2e}
.pj-terms .pj-term{border-top:1px solid var(--line,#e2e3e6);padding:8px 0}.pj-terms summary{font-weight:600;cursor:pointer;min-height:44px;display:flex;align-items:center}
.pj-term-body h5{font-size:14px;margin:12px 0 4px}.pj-term-body ul{margin:0 0 8px;padding-left:20px}.pj-term-body li,.pj-term-body p{font-size:14px;line-height:1.55;margin:0 0 6px}
.est-dep,.pj-contract{border-left:4px solid #8a5a00}.pj-contract.done{border-left-color:#1d6b3f}
.est-dep-ack{border:1px solid #e3b341;background:#fff9ea;border-radius:10px;padding:10px 14px;margin:0 0 12px}.est-dep-ack h4{margin:0 0 4px}
.pj-contract-doc{border:1px solid var(--line,#e2e3e6);border-radius:10px;padding:12px 14px;max-height:520px;overflow:auto;background:#fff;margin:8px 0}
.pj-c-sec h4{margin:14px 0 6px;color:#0f285e}.pj-c-sec h5{margin:10px 0 4px;font-size:14px}.pj-c-sec h6{margin:8px 0 2px;font-size:13px}
.pj-c-sec p{margin:0 0 6px;font-size:14px;line-height:1.5}.pj-c-amt{display:flex;justify-content:space-between;gap:12px}.pj-c-amt.b{font-weight:700}
.pj-cancel summary{color:#a3341f;font-weight:600;cursor:pointer;min-height:44px;display:flex;align-items:center}
.pj-wf p{margin:0 0 6px}.pj-adm-flow{border-left:4px solid #8a5a00}.pj-adm-flow .two{gap:12px}
.est-dep,.pj-contract,.pj-adm-flow{padding-left:14px} /* QA: room beside the coloured edge on phones */
/* rule 157: allowance line items */
.pj-allow-tag{display:inline-block;margin-right:6px;padding:1px 8px;border-radius:999px;background:#faf0d4;color:#6b4e00;border:1px solid #e2c56b;font-size:11px;font-weight:700;letter-spacing:.03em;vertical-align:1px}
.pj-allow-note{display:block;margin-top:4px;color:#2e513d}
.pj-allow-f{margin:6px 0}
/* #215: the customer portal stays light on a dark-mode phone, so no prefers-color-scheme rule here; only the admin Dark theme changes them */
html[data-admin-theme="dark"] .pj-allow-tag{background:#3a3016;color:#f1dc9b;border-color:#176b3b}html[data-admin-theme="dark"] .pj-allow-note{color:#b3dec6}
/* rule 170 (Kyron, Nov 13, 2026): phases. One card per phase, in order, with its line items and its own subtotal, tax and total. */
.pj-wphases{display:grid;gap:14px;margin-top:14px}
.pj-wph{border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:14px;padding:14px 16px;min-width:0;background:rgba(20,54,128,.03)}
.pj-wph[data-status=done]{border-left-color:#1d6b3f}.pj-wph[data-status=in_progress]{border-left-color:#14347a}
.pj-ph-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;justify-content:space-between}
.pj-ph-head h3,.pj .pj-ph-head h3{margin:0;font-size:17px;overflow-wrap:anywhere}
.pj-ph-head p{margin:2px 0 0}
.pj-ph-total{font-size:17px;white-space:nowrap}
.pj-ph-desc{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}
.pj-ph-acts{margin:10px 0 0}
.pj-ph-items h4{font-size:14px;font-weight:600;margin:12px 0 6px}
.pj-ph-figs{display:grid;grid-template-columns:1fr auto;gap:2px 16px;margin:12px 0 0;padding-top:10px;border-top:1px dashed var(--line);font-size:14px}
.pj-ph-figs dt{color:var(--mute)}.pj-ph-figs dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.pj-ph-figs .tot{font-weight:700;color:inherit}
.pj-ph-start,.pj-ph-more{border:1px dashed var(--line);border-radius:12px;padding:10px 14px;margin:10px 0}
.pj-ph-start summary,.pj-ph-more summary{cursor:pointer;font-weight:600;color:var(--teal)}
.pj-ph-add h4{margin:6px 0}
.pj-ph-intro{margin-top:0}
.pj-ph-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;border-radius:999px;padding:2px 8px;background:#eeeff1;color:var(--mute)}
.pj-ph-tag[data-s=in_progress]{background:#e1e7f4;color:#14347a}.pj-ph-tag[data-s=done]{background:#e3f1e9;color:#1d6b3f}
html[data-admin-theme="dark"] .pj-wph{background:rgba(255,255,255,.03)}html[data-admin-theme="dark"] .pj-ph-tag{background:#2a2c31;color:#c9ccd3}
.pj-ph-sumh{margin:18px 0 6px;font-size:15px;font-weight:600}
.pj-ph-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pj .pj-ph-acts>.btn,.pj .pj-ph-acts>select{width:auto;flex:0 0 auto}.pj-ph-acts>details{flex:1 1 100%;order:5}
#v-app .pj-ph-acts>.btn,#v-app .pj-ph-acts>select{width:auto;min-width:44px}
/* HOA approval packet (rule 174) */
.pj-tag[data-hoa=approved]{background:#e2f3e9;color:#1d6a3e}
.pj-tag[data-hoa=changes_requested],.pj-tag[data-hoa=denied]{background:#fbefe0;color:#8a4b12}
.pj-tag[data-hoa=submitted]{background:#e6eaf2;color:#0f285f}
.pj-hoa .pj-hoa-st{flex-wrap:wrap}
.pj-hoa input[type=file]{max-width:100%}
html[data-admin-theme=dark] .pj-tag[data-hoa=approved]{background:#164028;color:#b4eccc}
html[data-admin-theme=dark] .pj-tag[data-hoa=changes_requested],html[data-admin-theme=dark] .pj-tag[data-hoa=denied]{background:#4a3214;color:#f6d3a6}
html[data-admin-theme=dark] .pj-tag[data-hoa=submitted]{background:#121c3b;color:#a8bbe3}
.pj-hoa .pj-form>label{display:block;margin-top:12px}
/* Invoices made in the admin portal (rule 175) */
.inv .pj-form.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}
.inv-status[data-inv=open]{background:#14347a}.inv-status[data-inv=sending]{background:#1f5e3b}.inv-status[data-inv=sent]{background:#8a5a00}.inv-status[data-inv=paid]{background:#1d6b3f}.inv-status[data-inv=void]{background:#5a6268}
.pj-tag.inv-warn{background:#fbefe0;color:#8a4b12}
.inv-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.inv-table{width:100%;border-collapse:collapse;font-size:14.5px;min-width:520px}
.inv-table th,.inv-table td{padding:9px 8px;border-bottom:1px solid var(--line,#dadce1);text-align:left;vertical-align:top}
.inv-table th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--mute,#5d6066);font-weight:600}
.inv-table .num{text-align:right;white-space:nowrap}
.inv-table tfoot td{border-bottom:0;padding:6px 8px}.inv-table tfoot .inv-total td{border-top:2px solid var(--line,#dadce1);font-size:16px;padding-top:10px}
.inv-table .inv-desc{white-space:pre-line;overflow-wrap:anywhere}
.inv-table .inv-acts{white-space:nowrap}.inv-table .inv-acts .linkbtn{margin-left:10px}
.inv-table .inv-edit-row td{border-bottom:0;padding:0 8px}.inv-table .inv-edit-row td>div:not([hidden]){padding:10px 0 16px}
.inv-amt{align-self:center}
.inv-void{margin-top:18px}.inv-void summary{cursor:pointer;color:var(--mute,#5d6066);font-size:14px}
.pj-complete{margin:14px 0 6px;padding-top:14px;border-top:1px solid var(--line,#dadce1)}
.inv .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.inv .pre{white-space:pre-line}
@media(max-width:640px){.inv .pj-form.three{grid-template-columns:1fr}}
html[data-admin-theme=dark] .pj-tag.inv-warn{background:#4a3214;color:#f6d3a6}
@media(max-width:599px){#v-app .inv-table{min-width:0}#v-app .inv-table .inv-pad{display:none}
#v-app .inv-table tbody tr{border:1px solid var(--line,#dadce1);border-radius:12px;padding:8px 12px;margin:0 0 10px}
#v-app .inv-table tbody tr.inv-edit-row{border:0;padding:0;margin:0}
#v-app .inv-table .num{text-align:left}#v-app .inv-table .inv-acts .linkbtn{margin:0 16px 0 0}
#v-app .inv-table tfoot,#v-app .inv-table tfoot tr{display:block}#v-app .inv-table tfoot tr{display:flex;justify-content:space-between;gap:12px;padding:4px 12px}
#v-app .inv-table tfoot td{display:block;width:auto;padding:2px 0}#v-app .inv-table tfoot .inv-total{border-top:2px solid var(--line,#dadce1);margin-top:6px;padding-top:8px}#v-app .inv-table tfoot .inv-total td{border-top:0;padding-top:2px}}
/* Lawn care plan picker (rule 176) */
.plan-pick{display:block;margin-bottom:10px}.plan-pick select{max-width:100%}
/* Generate Visit Invoice (rule 177) */
.vinv-plans{list-style:none;margin:0 0 6px;padding:0;display:grid;gap:10px}
.vinv-plan{border:1px solid var(--line,#dadce1);border-radius:12px;padding:12px 14px}
.vinv-plan p{margin:6px 0 0}.vinv-plan .chk{font-size:16px}
.vinv-note{color:#8a4b12}html[data-admin-theme=dark] .vinv-note{color:#f6d3a6}

/* Price List (rule 179) */
.pl .pl-item{border:1px solid var(--line,#dadce1);border-radius:14px;padding:12px 16px;background:#fff;display:grid;gap:4px;min-width:0}
.pl .pl-head{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline}.pl .pl-head b{overflow-wrap:anywhere}
.pl .pl-price{margin-left:auto;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums}
.pl .pl-acts{display:flex;flex-wrap:wrap;gap:4px 18px;align-items:center}.pl .pl-acts .linkbtn,#v-app .pl .pl-acts .linkbtn{margin:0;width:auto;display:inline-block;min-height:32px}
.pl .pl-desc{margin:0;overflow-wrap:anywhere}.pl .pl-off{opacity:.65}
.pl .pl-item>div:not([hidden]):last-child{padding-top:10px}
.pl-add{margin:14px 0;border:1px solid var(--line,#dadce1);border-radius:14px;padding:12px 16px}.pl-add summary{cursor:pointer;font-weight:600}.pl-add[open] summary{margin-bottom:10px}
.price-pick input{width:100%;box-sizing:border-box}
html[data-admin-theme=dark] .pl .pl-item{background:transparent}
@media(max-width:599px){.pl .pl-price{margin-left:0;width:100%}}
.pl .pl-danger{color:#a3271f}.pl .pl-sure{font-size:13.5px;overflow-wrap:anywhere}.pl-io ul{margin:6px 0 12px;padding-left:20px;font-size:14px;overflow-wrap:anywhere}.pl-io h4{margin:14px 0 4px}
html[data-admin-theme=dark] .pl .pl-danger{color:#ff9b93}

/* rule 181 (Kyron, Nov 15, 2026): the price breakdown never runs together. Amount and Tax are fixed right-aligned columns, at least
   96px wide and 24px apart, with same-width digits; the line item details use the same two columns, so every amount lines up.
   Under 480px there is no second column: the tax sits under the amount. */
.pj-bd-tax,.pj-tx .pj-items{max-width:640px}
.pj-bd-tax td,#v-app .pj-bd-tax td{min-width:96px;width:96px;box-sizing:content-box;font-variant-numeric:tabular-nums}
.pj-bd-tax td.pj-tax,#v-app .pj-bd-tax td.pj-tax{padding-left:24px;color:var(--mute)}
.pj-bd-tax thead th:nth-child(2),.pj-bd-tax thead th:nth-child(3){min-width:96px;width:96px;box-sizing:content-box}.pj-bd-tax thead th:nth-child(3){padding-left:24px}
.pj-bd .pj-stack{display:none}
.pj-bd tr.pj-subtot th,.pj-bd tr.pj-subtot td{font-weight:600;border-top:2px solid var(--line)}
.pj-taxnote{margin:2px 0 0;max-width:640px;font-size:13px;color:var(--mute)}
.pj-tx .pj-items li>.pj-amt{display:grid;grid-template-columns:minmax(96px,max-content) 96px;column-gap:24px;justify-items:end;align-items:start;font-variant-numeric:tabular-nums}
.pj-tx .pj-items li>.pj-amt .pj-ltax{display:none}.pj-ltaxc{color:var(--mute);font-size:14px}
@media(max-width:480px){
  .pj-bd-tax thead,#v-app .pj-bd-tax thead{display:none}
  .pj-bd-tax td.pj-tax,#v-app .pj-bd-tax td.pj-tax{display:none}
  .pj-bd-tax td,#v-app .pj-bd-tax td{width:1%;min-width:0}
  .pj-bd .pj-stack{display:block;font-weight:400}
  .pj-tx .pj-items li>.pj-amt{display:flex;flex-direction:column;align-items:flex-end}
  .pj-tx .pj-items li>.pj-amt .pj-ltax{display:block}.pj-tx .pj-items li>.pj-amt .pj-ltaxc{display:none}
}
#v-app .pj-bd tr.pj-subtot td{border-top:2px solid var(--line)}
/* rule 181, phases (QA on #22663f): a phase card's line items, its Subtotal, discount, Sales tax and Phase total, and the "All phases"
   summary under the cards all use the same Amount and Tax columns and end at the same right edge (the inside edge of the card). */
.pj-tx .pj-wphases{max-width:640px}
.pj-tx .pj-wph .pj-items{max-width:none}
.pj-ph-figs3{grid-template-columns:1fr minmax(96px,max-content) 96px;column-gap:24px}
.pj-ph-figs3 .pj-figtax{color:var(--mute)}.pj-ph-figs .pj-stack{display:none}
.pj-tx .pj-wphases~table.pj-bd-tax,#v-app .pj-tx .pj-wphases~table.pj-bd-tax{width:calc(100% - 17px);max-width:623px}
.pj-tx .pj-wphases~.pj-taxnote{max-width:623px}
@media(max-width:480px){
  .pj-ph-figs3{grid-template-columns:1fr auto;column-gap:16px}.pj-ph-figs3 .pj-figtax{display:none}
  .pj-ph-figs .pj-stack{display:block;font-weight:400;font-size:12.5px;color:var(--mute)}
}
/* rule 182: days left to sign. Amber at 7 days, red at 3. */
.est-count{border:1px solid var(--line);border-left:4px solid var(--teal);border-radius:12px;padding:12px 14px;margin:8px 0;min-width:0}
.est-count-t{margin:0 0 8px;line-height:1.3;overflow-wrap:anywhere}.est-count-n{font-size:22px;font-variant-numeric:tabular-nums}.est-count-h{color:var(--mute);font-size:15px}
.est-count-bar{margin-top:10px;height:8px;border-radius:999px;background:rgba(127,127,127,.22);overflow:hidden}.est-count-bar>span{display:block;height:100%;border-radius:999px;background:var(--teal)}
.est-count[data-level=amber]{border-left-color:#b9770e}.est-count[data-level=amber] .est-count-bar>span{background:#b9770e}.est-count[data-level=amber] .est-count-n{color:#8a5a00}
.est-count[data-level=red]{border-left-color:#b3261e}.est-count[data-level=red] .est-count-bar>span{background:#b3261e}.est-count[data-level=red] .est-count-n{color:#a3271f}
.est-days{font-variant-numeric:tabular-nums}.est-days[data-level=amber]{color:#8a5a00}.est-days[data-level=red]{color:#a3271f}
html[data-admin-theme=dark] .est-days[data-level=amber],html[data-theme=dark] .est-count[data-level=amber] .est-count-n{color:#f0c36d}
html[data-admin-theme=dark] .est-days[data-level=red],html[data-theme=dark] .est-count[data-level=red] .est-count-n{color:#ff9b93}
@media(max-width:480px){.est-count-n{font-size:20px}.est-count-h{display:block;margin-top:2px}.est-count-sep{display:none}}
/* rule 183: credits */
.pj-credits{list-style:none;margin:6px 0 10px;padding:0;display:grid;gap:4px;max-width:640px}
.pj-credits li{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:baseline;border-bottom:1px dashed var(--line);padding:6px 0;min-width:0}
.pj-credits .pj-desc{flex:1 1 220px;min-width:0;overflow-wrap:anywhere}.pj-credit-amt{color:#1d6b3f;font-variant-numeric:tabular-nums;white-space:nowrap}
html[data-admin-theme=dark] .pj-credit-amt{color:#7fd1a3}
/* rule 184 (Kyron's required list, Nov 15, 2026, item 5): Edit layout. Cards to drag into order, with up and down buttons beside each handle. */
.lay-dlg{width:min(680px,calc(100vw - 24px));max-width:none;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line,#dadce1);border-radius:18px;background:#fff;color:var(--ink,#121622);overflow:hidden}
.lay-dlg[open]{display:flex;flex-direction:column}.lay-dlg::backdrop{background:rgba(8,11,20,.55)}
.lay-top{padding:20px 22px 0;flex:none}.lay-top h2{margin:0 0 6px;font-size:22px}.lay-top p{margin:0 0 12px}
.lay-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line,#dadce1)}
.lay-tab{appearance:none;background:none;border:0;border-bottom:3px solid transparent;font:600 15px Inter,sans-serif;color:var(--mute,#5d626b);padding:10px 12px;min-height:44px;cursor:pointer;margin-bottom:-1px}
.lay-tab[aria-selected=true]{color:var(--g2,#101a3a);border-bottom-color:var(--gold,#64d394)}.lay-tab:focus-visible{outline:2px solid var(--gold,#64d394);outline-offset:-2px}
.lay-body{padding:14px 22px 6px;overflow-y:auto;flex:1 1 auto;min-height:0}.lay-body h3{margin:10px 0 8px;font-size:16px}.lay-body h3.mt{margin-top:20px}.lay-body p{margin:0 0 10px}
.lay-foot{padding:12px 22px 16px;border-top:1px solid var(--line,#dadce1);flex:none;display:grid;gap:6px}.lay-foot .pj-actions{margin:0}.lay-foot .err{margin:0}.lay-status{color:#8a5a00;min-height:1.2em}
.lay-live{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.lay-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:6px}
.lay-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto auto;align-items:center;gap:4px 10px;border:1px solid var(--line,#dadce1);border-radius:12px;background:#fff;padding:4px 10px 4px 2px;min-height:54px}
.lay-card .lay-grip{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;color:var(--mute,#5d626b);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;border-radius:8px}
.lay-card .lay-grip:hover{background:#f1f2f4}.lay-card .lay-grip.lay-fixed{cursor:default;background:none}
.lay-name{display:grid;min-width:0}.lay-name b{font-weight:600;overflow-wrap:anywhere}
.lay-card label.lay-show{display:flex;align-items:center;gap:8px;min-height:44px;margin:0;font-weight:500;cursor:pointer;white-space:nowrap}.lay-card label.lay-show input{width:22px;height:22px;flex:0 0 22px;min-height:0;padding:0;accent-color:var(--g2,#101a3a)}
.lay-lock{white-space:nowrap}.lay-arrows{display:flex;gap:4px}
.lay-arrows button{appearance:none;width:44px;height:44px;border:1px solid var(--line,#dadce1);border-radius:10px;background:#fff;color:var(--g2,#101a3a);font:600 18px/1 Inter,sans-serif;cursor:pointer}
.lay-arrows button:disabled{opacity:.35;cursor:default}.lay-arrows button:focus-visible{outline:2px solid var(--gold,#64d394);outline-offset:2px}
.lay-card.lay-off{background:#f6f6f7}.lay-card.lay-off .lay-name b{color:var(--mute,#5d626b);text-decoration:line-through}
.lay-card.lay-drag{border-color:var(--gold,#64d394);box-shadow:0 10px 24px -12px rgba(0,0,0,.45);position:relative;z-index:1}.lay-card.lay-drag .lay-grip{cursor:grabbing}
.lay-card[data-pinned]{grid-template-columns:44px minmax(0,1fr) auto}
@media(max-width:520px){.lay-top{padding:16px 14px 0}.lay-body{padding:12px 14px 6px}.lay-foot{padding:10px 14px 14px}.lay-tab{padding:10px 8px;font-size:14px}
 .lay-card{grid-template-columns:44px minmax(0,1fr) auto;padding-right:6px}.lay-card .lay-show,.lay-card .lay-lock{grid-column:2;grid-row:2;min-height:36px}.lay-card .lay-arrows{grid-column:3;grid-row:1 / span 2}
 .lay-card[data-pinned] .lay-show,.lay-card[data-pinned] .lay-lock{grid-column:2}}
html[data-admin-theme=dark] .lay-dlg{background:#0b101f;color:#e8eaef;border-color:#232c41}html[data-admin-theme=dark] .lay-card,html[data-admin-theme=dark] .lay-arrows button{background:transparent;border-color:#2a354d;color:#e8eaef}
html[data-admin-theme=dark] .lay-card.lay-off{background:rgba(255,255,255,.04)}html[data-admin-theme=dark] .lay-card .lay-grip:hover{background:rgba(255,255,255,.08)}html[data-admin-theme=dark] .lay-tab[aria-selected=true]{color:#e8eaef}html[data-admin-theme=dark] .lay-status{color:#f0c36d}
/* rule 184: Line items as a section of their own on the customer's estimate */
.pj-bd-items>.pj-items:first-child{margin-top:0}
/* rule 186 (Kyron's required list, Nov 15, 2026, item 4): settle an allowance */
.pj-allow-tag.pj-allow-done{background:#e3f1e9;color:#1d5a37;border-color:#9bc7ae}
.pj-settled{display:block;margin-top:4px;color:#1d5a37;font-weight:500}.pj-buys{display:block;margin-top:4px;color:var(--mute,#5d626b)}.pj-buys>span{display:block}
.pj-settle{flex:1 1 100%;margin-top:8px;border:1px solid var(--line,#dadce1);border-radius:12px;padding:8px 12px;background:#f7f8fa}
.pj-settle>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center;color:var(--g2,#101a3a)}.pj-settle[open]>summary{margin-bottom:6px}
.pj-buy-list{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:4px}.pj-buy-list li{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;border-bottom:1px solid var(--line,#dadce1);padding:4px 0;min-width:0}
.pj-buy-list li .pj-desc{flex:1 1 200px;min-width:0;overflow-wrap:anywhere}.pj-buy-list .linkbtn,#v-app .pj-buy-list .linkbtn{margin:0;width:auto}
.pj-used{margin:6px 0 10px;font-variant-numeric:tabular-nums}.pj-settle-go{border-top:1px solid var(--line,#dadce1);margin-top:10px;padding-top:10px}
.pj-settle input[type=file]{padding:8px;min-height:44px}
html[data-admin-theme=dark] .pj-settle{background:rgba(255,255,255,.03);border-color:#2a354d}html[data-admin-theme=dark] .pj-settle>summary{color:#e8eaef}
html[data-admin-theme=dark] .pj-allow-tag.pj-allow-done,html[data-theme=dark] .pj-allow-tag.pj-allow-done{background:#161c30;color:#a9dcbf;border-color:#2f6b49}html[data-admin-theme=dark] .pj-settled,html[data-theme=dark] .pj-settled{color:#a9dcbf}
.pj-files li:has(.pj-settle){align-items:flex-start}
/* rule 188 (Kyron's required list, Nov 15, 2026, item 6): the Taxable box on a line item, and Settings, Sales tax */
.pj-tax-f{margin:6px 0}label.chk.tax-default{align-items:flex-start;margin:0 0 4px;min-height:44px}label.chk.tax-default>span{min-width:0;overflow-wrap:anywhere}
/* Invoices list in line (Kyron, Nov 15, 2026): fixed columns across the full width, so nothing moves with the length of a name */
#inv-list>li>a.inv-row,#inv-list>li.inv-heads{display:grid;grid-template-columns:minmax(140px,1.4fr) 128px minmax(120px,1.1fr) 60px 100px 112px 228px;gap:4px 16px;align-items:center}
#inv-list>li.inv-heads{padding:0 17px;font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--mute,#5d626b)}
#inv-list .inv-c{min-width:0;overflow-wrap:anywhere;font-size:14px}#inv-list .inv-c-name b{font-size:15.5px}#inv-list .inv-c-name{display:grid;gap:4px}
#inv-list .inv-tags{display:flex;flex-wrap:wrap;gap:4px 6px}
#inv-list .inv-c-st .inv-status{display:inline-flex;justify-content:center;min-width:112px;box-sizing:border-box;white-space:nowrap}
#inv-list .inv-c-total,#inv-list .inv-c-lines{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
#inv-list .inv-c-for,#inv-list .inv-c-lines,#inv-list .inv-c-qb,#inv-list .inv-c-date{color:var(--mute,#5d626b)}#inv-list .inv-c-qb{white-space:nowrap}
#inv-list a.inv-row .inv-c-total{color:inherit}
@media(max-width:1080px){#inv-list>li>a.inv-row,#inv-list>li.inv-heads{grid-template-columns:minmax(140px,1.4fr) 128px minmax(120px,1.2fr) 104px minmax(150px,1fr)}#inv-list .inv-c-lines,#inv-list .inv-c-qb{display:none}}
/* phone: two fixed columns. The name and what it is for on the left; the status and the total always at the same place on the right */
@media(max-width:700px){#inv-list>li.inv-heads{display:none}
 #inv-list>li>a.inv-row{grid-template-columns:minmax(0,1fr) 116px;grid-template-areas:"name st" "for total" "date date";gap:6px 12px}
 #inv-list .inv-c-name{grid-area:name}#inv-list .inv-c-st{grid-area:st;text-align:right}#inv-list .inv-c-for{grid-area:for}#inv-list .inv-c-total{grid-area:total;font-size:15.5px}#inv-list .inv-c-date{grid-area:date;font-size:13px}
 #inv-list .inv-c-st .inv-status{min-width:0;width:100%}}
html[data-admin-theme=dark] #inv-list .inv-c-for,html[data-admin-theme=dark] #inv-list .inv-c-lines,html[data-admin-theme=dark] #inv-list .inv-c-qb,html[data-admin-theme=dark] #inv-list .inv-c-date,html[data-admin-theme=dark] #inv-list>li.inv-heads{color:#b7bbc4}
/* Collapsible sections on estimates (Kyron, Nov 15, 2026): the heading is a button that opens and closes its section */
.pj-fold>h3.pj-fold-h{margin:0}
.pj-fold-t{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-height:44px;cursor:pointer;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit}
.pj-fold-t:focus-visible{outline:2px solid var(--gold,#64d394);outline-offset:3px;border-radius:8px}
.pj-fold-hint{margin-left:auto;font:500 13px Inter,sans-serif;letter-spacing:0;text-transform:none;color:var(--mute,#5d626b);white-space:nowrap}
.pj-fold-ico{flex:none;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 6px 4px 0;opacity:.7;transition:transform .15s}
.pj-fold-t[aria-expanded=false] .pj-fold-ico{transform:rotate(-45deg);margin-bottom:0}
.pj-fold-b{margin-top:10px}.pj-fold-b[hidden]{display:none}
.pj-fold-all{display:flex;flex-wrap:wrap;gap:4px 18px;justify-content:flex-end;margin:2px 0}.pj-fold-all .linkbtn,#v-app .pj-fold-all .linkbtn{margin:0;width:auto;min-height:36px;font-size:14px}
@media(prefers-reduced-motion:reduce){.pj-fold-ico{transition:none}}
html[data-admin-theme=dark] .pj-fold-hint,html[data-theme=dark] .pj-fold-hint{color:#b7bbc4}
.pj-head>h3.pj-fold-h{flex:1 1 auto;min-width:0}
.pj-add-line{border:1px solid var(--line,#dadce1);border-radius:12px;padding:6px 14px;margin:10px 0 14px}
.pj-add-line>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center;color:var(--g2,#101a3a)}.pj-add-line[open]>summary{margin-bottom:8px}
html[data-admin-theme=dark] .pj-add-line{border-color:#2a354d}html[data-admin-theme=dark] .pj-add-line>summary{color:#e8eaef}
/* rule 215: the Warranty card. Its save button is a full 44px, for a thumb on a phone. */
#pj-war .pj-actions .btn,#est-opts .pj-actions .btn{min-height:44px}
#war-custom[hidden],#war-period[hidden]{display:none}
/* rule 219: the estimates list in sections */
.est-sec{margin-top:18px}.est-sec>h3{margin:0 0 4px}.est-sec>p{margin:0 0 8px}

/* rule 223: the warranty's coverage and exclusions on the customer's project page */
.pj-warranty h4{margin:10px 0 2px;font-size:1rem}.pj-war-points{margin:2px 0 8px;padding-left:20px;overflow-wrap:anywhere}
/* rule 224: the customer's claims on the warranty card */
/* a form that is folded away stays hidden (.pj-form is a grid, which would otherwise show it) */
.pj-warranty .pj-form[hidden]{display:none}
.pj-claims{list-style:none;margin:4px 0 10px;padding:0;display:grid;gap:8px}.pj-claims>li{border:1px solid var(--line);border-radius:10px;padding:8px 10px;min-width:0;overflow-wrap:anywhere}.pj-claim-note{margin-top:4px;white-space:pre-wrap}
/* rule 229 (Kyron's list of Nov 16, 2026, request 5): one status pill, one color per status word, on every page of both portals.
   The server names the tone; these are the only colors a status pill has. White on each: gray 6.3:1, blue 7.0:1, amber 5.6:1,
   green 6.5:1, brown 6.6:1, red 7.9:1, dark 12.2:1. The same in light and dark. */
.pj-status[data-tone=gray]{background:#5a6268}.pj-status[data-tone=blue]{background:#14347a}.pj-status[data-tone=amber]{background:#8a5a00}
.pj-status[data-tone=green]{background:#1d6b3f}.pj-status[data-tone=brown]{background:#1f5e3b}.pj-status[data-tone=red]{background:#8f2d25}.pj-status[data-tone=dark]{background:#101a3a}
.pj-st-note{white-space:nowrap}
/* QA issue #340: every button on an estimate or project page (staff and customer) is at least 44px tall, the tap size the rest of the portal keeps */
.pj .btn,.pj .row .btn,.pj .pj-actions .btn,.pj-steps .pj-sd .btn{min-height:44px}

/* rule 234: each payment sits under Paid so far */
.pj-bd .pj-payment > :first-child{padding-left:1.25rem}

/* rule 239: the Next step bar under the project title (staff) */
.pj-next .pj-next-row{display:flex;flex-direction:column;gap:.5rem;margin-top:.6rem}
.pj-next .pj-next-row .pj-actions{align-items:center}
.pj-blockers{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.pj-blockers li{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:0}
.pj-blockers .pj-block-t{font-weight:600}
.pj-stages .pj-blockers li{border-radius:10px;padding:10px 12px;margin:0;min-height:0;font-weight:400;flex:none;justify-content:space-between}
.pj-stages .pj-blockers li::before{content:none}
.pj-stages .pj-blockers li.est-warn{background:#fff6e0;color:#5b3d00;font-size:14px;padding:10px 12px}

/* rule 240: the Ready to start checklist in the Next step bar (staff) */
.pj-stages .pj-ready{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pj-stages .pj-ready li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-radius:10px;padding:8px 10px;margin:0;background:#f6f6f7;color:#1d1f24;font-size:14px;font-weight:400}
.pj-stages .pj-ready li.done{background:#eef6f1;color:#1d6b3f}
.pj-ready-box{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;border:2px solid #9a9ea5;font-weight:700;flex:none}
.pj-ready li.done .pj-ready-box{border-color:#1d6b3f;background:#1d6b3f;color:#fff}
.pj-ready-t{flex:1 1 12rem}
/* rules 239-240: on a phone the five steps sit in one row that scrolls sideways, so the checklist and the next action stay in view */
@media (max-width:640px){.pj-steps-admin>ol{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding-bottom:2px}.pj-steps-admin>ol::-webkit-scrollbar{display:none}.pj-steps-admin>ol>li{flex:none;white-space:nowrap}}
.pj-stages .pj-ready .btn,.pj-stages .pj-blockers .btn{width:auto;flex:none;margin-left:auto}
#v-app .pj-stages .pj-ready .btn,#v-app .pj-stages .pj-blockers .btn{width:auto;max-width:none;flex:none;margin-left:auto}
.pj-stages .pj-ready li{flex-wrap:nowrap}.pj-stages .pj-ready .pj-ready-t{flex:1 1 0;min-width:0}

/* rule 241: the projects list grouped by step */
.pj-counts{margin:4px 0 12px;font-size:14px;line-height:1.8}
.pj-group{margin:0 0 16px;scroll-margin-top:80px}
.pj-group-h{display:flex;align-items:center;gap:8px;font-size:16px;margin:8px 0}
.pj-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#eeeff2;font-size:13px;font-weight:600}
.pj-nextline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:14px;margin:2px 0}

/* rule 242: the project's tabs (staff) */
.pj-tabs{display:flex;gap:6px;margin:0 0 14px;border-bottom:1px solid #dfe1e5;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.pj-tabs::-webkit-scrollbar{display:none}
.pj-tabs [role=tab]{flex:none;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;font-weight:600;color:#454950;text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap}
.pj-tabs [role=tab][aria-selected=true]{color:#0f285e;border-bottom-color:#0f285e}
.pj-tabs [role=tab]:focus-visible{outline:2px solid #0f285e;outline-offset:2px}
.pj-steps-admin{min-width:0;max-width:100%;box-sizing:border-box}.pj-steps-admin>ol{max-width:100%;min-width:0}.pj-tabpanel{min-width:0}
/* QA on #356 (rule 239: "staff can see the current step and the next action without scrolling"): on a phone the steps are one
   row, the current step named and the others as numbered dots (their names stay for screen readers), and the main button comes
   before what is holding it, so it is never under the bottom tab bar. */
@media (max-width:600px){
  .pj-steps-admin > ol{flex-wrap:nowrap;gap:4px;overflow:hidden}
  .pj-steps-admin > ol li:not(.now){padding:4px;flex:none}
  .pj-steps-admin > ol li:not(.now) > span:not(.pj-dot){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .pj-steps-admin > ol li.now{min-width:0}
  .pj-next .pj-next-row > .pj-actions{order:-1}
}
/* rule 348: the sentence near the total (a fixed price, or how far the final price may vary) */
.est-price-line{margin:-2px 0 10px;font-size:15px;line-height:1.45}

/* rule 353: New quote and New estimate do not ask the type, so the block that held the question has no gap of its own */
.est-price-fixed>p{margin:0}.est-price-fixed>label{margin-bottom:8px}

/* Rule 355 (Kyron, Nov 24, 2026: "Remember I like organization. This makes my head hurt"): the Quotes and Estimates lists in
   columns. Six things in six places on a computer; on a phone the same six in three tidy lines. */
.est-rows{gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.est-rows>li>a.est-row,.est-rows>li.est-row-head{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(0,1.5fr) 118px 104px 132px minmax(0,1.5fr);gap:4px 16px;align-items:center;box-sizing:border-box;width:100%}
.est-rows>li>a.est-row{border:0;border-top:1px solid var(--line);border-radius:0;padding:12px 16px;min-height:56px}
.est-rows>li>a.est-row:hover{border-color:var(--line);background:rgba(100,211,148,.08)}
.est-rows>li>a.est-row:focus-visible{outline-offset:-2px}
.est-row-head{padding:9px 16px;font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--mute);background:rgba(127,127,127,.06)}
.est-rows>li>a.est-row{color:var(--ink,#121622)}html[data-admin-theme=dark] .est-rows>li>a.est-row{color:#e8eaef}
.est-c{min-width:0;overflow-wrap:break-word;font-size:14px}html[data-admin-theme=dark] .est-c-name b{color:#9db4ee}html[data-admin-theme=dark] .est-c-cust,html[data-admin-theme=dark] .est-c-num,html[data-admin-theme=dark] .est-c-lbl,html[data-admin-theme=dark] .est-c-notes{color:#a9b2c7}.est-c-status{display:flex;flex-wrap:wrap;gap:6px}
.est-c-name b{font-size:15px}.est-c-name .pj-tag{margin-left:8px}
.est-c-notes{display:flex;flex-wrap:wrap;gap:2px 12px;font-size:13px;color:var(--mute);margin-top:2px}.est-c-do{font-weight:600;color:var(--ink,inherit)}
.est-c-num{white-space:nowrap;color:var(--mute)}
.est-c-total,.est-row-head .est-c-total{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.est-c-total{font-weight:600}
.est-c-when{white-space:nowrap}.est-c-lbl{display:block;font-size:12px;color:var(--mute)}.est-c-when .est-days{display:block;font-size:13px;white-space:normal}
html[data-admin-theme=dark] .est-rows{border-color:#26304a}html[data-admin-theme=dark] .est-rows>li>a.est-row{border-top-color:#26304a;background:transparent}
html[data-admin-theme=dark] .est-rows>li>a.est-row:hover{background:rgba(100,211,148,.07)}html[data-admin-theme=dark] .est-row-head{background:rgba(255,255,255,.04)}
@media (max-width:899px){
  .est-row-head{display:none!important}
  .est-rows>li>a.est-row{grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px}
  .est-rows>li:nth-child(2)>a.est-row{border-top:0}
  .est-c-name{grid-column:1/-1;grid-row:1}
  .est-c-cust{grid-column:1/-1;grid-row:2;color:var(--mute);overflow-wrap:break-word}.est-c-status{grid-column:1/-1;grid-row:3;justify-self:start;display:flex;flex-wrap:wrap;gap:6px}
  .est-c-num{grid-column:1;grid-row:4}.est-c-total{grid-column:2;grid-row:4}
  .est-c-when{grid-column:1/-1;grid-row:5;white-space:normal}.est-c-lbl{display:inline;font-size:inherit}.est-c-when .est-days{display:inline;margin-left:10px}
}
/* rule 366: service estimates (lawn care and turf prices). Customer: the plans side by side, the chosen one marked. Staff: the
   status pill and the option fieldsets. Light first, then dark for the admin (data-admin-theme) and the customer portal (data-theme). */
.se-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:10px 0 14px}
.se-card{display:flex;flex-direction:column;gap:4px;border:1px solid #d6dbe3;border-radius:12px;padding:12px 14px;background:#fff;cursor:pointer}
.se-card.on{border-color:#1d6b3f;box-shadow:0 0 0 2px #1d6b3f inset}
.se-card input[type=radio]{align-self:flex-start;margin:0 0 2px}
.se-card-plan{font-weight:700}.se-card-price{font-size:22px;font-weight:700}.se-card-freq{color:#5b6472;font-size:14px}.se-card-note{font-size:14px}
.se-card-won{align-self:flex-start;background:#e3f1e9;color:#1d6b3f;border-radius:999px;padding:1px 9px;font-size:13px}
.se-tick{display:flex;gap:8px;align-items:flex-start;margin:6px 0 10px}.se-f{display:flex;flex-direction:column;gap:4px;margin:0 0 10px}
.se-opt{border:1px solid #d6dbe3;border-radius:10px;padding:10px 12px;margin:0 0 10px}.se-opt legend{font-weight:700;padding:0 4px}
.se-price{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.se-price input{max-width:120px}.se-cust{display:flex;flex-direction:column;gap:6px}
.se-st{display:inline-block;border-radius:999px;padding:1px 9px;font-size:13px;background:#ecedf0;white-space:nowrap}.se-sent{background:#e6eefc}.se-accepted{background:#dff3e8}.se-declined,.se-expired{background:#f8e1e1}.se-cancelled{background:#ecedf0}
.se-opts tr.se-chosen td{font-weight:700}
html[data-admin-theme=dark] .se-card,html[data-theme=dark] .se-card{background:#121a2c;border-color:#2b3854;color:#e8eaef}
html[data-admin-theme=dark] .se-card.on,html[data-theme=dark] .se-card.on{border-color:#8fe0b0;box-shadow:0 0 0 2px #8fe0b0 inset}
html[data-admin-theme=dark] .se-card-freq,html[data-theme=dark] .se-card-freq{color:#aeb6c6}
html[data-admin-theme=dark] .se-card-won,html[data-theme=dark] .se-card-won{background:#12301f;color:#8fe0b0}
html[data-admin-theme=dark] .se-opt,html[data-theme=dark] .se-opt{border-color:#2b3854}
html[data-admin-theme=dark] .se-st{background:#232c41;color:#e8eaef}html[data-admin-theme=dark] .se-sent{background:#1c2b4a}html[data-admin-theme=dark] .se-accepted{background:#12301f;color:#8fe0b0}html[data-admin-theme=dark] .se-declined,html[data-admin-theme=dark] .se-expired{background:#3a1d1d;color:#ffb4a8}

/* QA on #468: a web address in a line item is a link, and a long one wraps inside its line */
.pj-linelink{overflow-wrap:anywhere;word-break:break-word}
