/* Payout plan card on the estimate (public/estimate-payout-plan.js). */
.pp-card{padding:20px;color:var(--ink,#1f2536)}
.pp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pp-title{font-size:17px;font-weight:800;color:var(--ink,#1f2536)}
.pp-sub{font-size:13.5px;color:var(--mut,#464d61);margin-top:2px;line-height:1.45}
.pp-chip{flex:none;font-size:12px;font-weight:700;padding:4px 11px;border-radius:999px;white-space:nowrap}
.pp-draft{background:#e8ebf2;color:#3a4256}
.pp-ok{background:#dff1e7;color:#14573a}
.pp-note{margin:14px 0 4px;padding:10px 12px;border-radius:10px;background:#eef2f7;border:1px solid #d3dbe6;font-size:13.5px;line-height:1.45;color:#2b3447}
.pp-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.pp-pay{border:1px solid var(--line,#c3c8d8);border-radius:12px;padding:14px;background:var(--card,#fff);min-width:0}
.pp-ph{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.pp-who{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.pp-who b{font-size:15px;overflow-wrap:anywhere}
.pp-kind{font-size:12.5px;color:var(--mut,#464d61)}
.pp-tot{font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
.pp-f{display:flex;flex-direction:column;gap:3px;min-width:0}
.pp-f span{font-size:12px;font-weight:700;color:var(--mut,#464d61)}
.pp-f input,.pp-f select,.pp-te input{font:inherit;font-size:15px;min-height:44px;padding:8px 10px;border:1px solid #9aa3b8;border-radius:8px;background:#fff;color:#1f2536;box-sizing:border-box;width:100%}
.pp-fn{flex:1 1 100%}.pp-fk{flex:1 1 26%}.pp-ft{flex:1 1 34%}
.pp-x{flex:none;width:44px;height:44px;border:1px solid #9aa3b8;border-radius:8px;background:#fff;font-size:22px;line-height:1;color:#8c1d18;cursor:pointer}
.pp-tr{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;border-top:1px solid var(--line,#dadde8)}
.pp-t{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#dadde8)}
.pp-t:last-child{border-bottom:0;padding-bottom:0}
.pp-off .pp-tl b{color:var(--mut,#464d61);font-weight:600}
.pp-tl{display:flex;flex-direction:column;gap:1px;min-width:0}
.pp-when{font-size:12px;color:var(--mut,#464d61)}
.pp-tl b{font-size:14px;overflow-wrap:anywhere}
.pp-ta{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.pp-ta span{display:block;font-size:12px;font-weight:600;color:var(--mut,#464d61)}
.pp-te{display:flex;align-items:center;gap:10px;flex:none}
.pp-te label{display:flex;align-items:center;gap:4px}
.pp-te input{width:72px;text-align:right}
.pp-te em{font-style:normal;font-size:14px;color:var(--mut,#464d61)}
.pp-te .pp-ta{min-width:84px}
.pp-warn{margin:10px 0 0;font-size:13px;color:#8c1d18;font-weight:600}
.pp-sum{margin-top:16px;padding:14px;border-radius:12px;background:#f3f5f9;border:1px solid var(--line,#dadde8)}
.pp-sumh{font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--mut,#464d61);margin-bottom:6px}
.pp-sr{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px}
.pp-sr span{overflow-wrap:anywhere;min-width:0}
.pp-sr b{font-variant-numeric:tabular-nums}
.pp-sr-t{margin-top:4px;padding-top:9px;border-top:1px solid #c3c8d8;font-weight:800;font-size:15px}
.pp-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.pp-sp{flex:1}
.pp-btn{font:inherit;font-size:14px;font-weight:700;min-height:44px;padding:8px 18px;border-radius:10px;cursor:pointer;border:1px solid transparent}
.pp-pri{background:var(--gold-deep,#3f566d);color:#fff}
.pp-sec{background:#fff;color:#2f4358;border-color:#2f4358}
.pp-ghost{background:none;color:#2f4358;border-color:#9aa3b8}
.pp-btn:disabled{opacity:.45;cursor:not-allowed}
.pp-btn:focus-visible,.pp-x:focus-visible{outline:3px solid #2f4358;outline-offset:2px}
.pp-fine{font-size:13px;color:var(--mut,#464d61);line-height:1.45}
.pp-fine2{margin:8px 0 0}
.pp-empty{margin:14px 0 4px;font-size:14px;line-height:1.5;color:var(--mut,#464d61)}
.pp-err{margin:12px 0 0;font-size:14px;font-weight:600;color:#8c1d18}
.pp-ovb .pp-rerr{margin:-4px 0 0;font-size:13.5px;font-weight:600;line-height:1.4;color:#8c1d18}
.pp-ovb textarea.pp-bad{border-color:#b3261e;box-shadow:0 0 0 2px rgba(179,38,30,.25)}
.pp-skel{margin-top:14px;font-size:14px;color:var(--mut,#464d61)}
@media (min-width:640px){.pp-fn{flex:2 1 220px}.pp-fk{flex:0 1 120px}.pp-ft{flex:0 1 140px}}
.pp-cf{padding:10px 0;border-bottom:1px solid var(--line,#dadde8)}
.pp-cf:last-of-type{border-bottom:0}
.pp-cfl{font-size:14px;font-weight:700;overflow-wrap:anywhere;margin-bottom:4px}
.pp-cfr{display:flex;justify-content:space-between;gap:12px;font-size:14px;padding:2px 0}
.pp-cfr span{color:var(--mut,#464d61)}.pp-cfr b{font-variant-numeric:tabular-nums}
.pp-cf-bad{background:#fdecea;margin:0 -8px;padding:10px 8px;border-radius:8px;border-bottom-color:transparent}
.pp-cfg{margin-top:4px;font-size:13.5px;font-weight:700;color:#8c1d18;line-height:1.4}
.pp-ovb{margin-top:14px;padding:14px;border:1px solid #d9a5a0;border-radius:12px;background:#fff;display:flex;flex-direction:column;gap:10px}
.pp-ovb b{color:#8c1d18;font-size:14.5px}
.pp-ovb p{margin:0}
.pp-ovb textarea{font:inherit;font-size:15px;padding:8px 10px;border:1px solid #9aa3b8;border-radius:8px;width:100%;box-sizing:border-box;resize:vertical}
.pp-ovr{margin:14px 0 0;font-size:13.5px;line-height:1.5;color:#14573a;font-weight:600}

/* No client payments yet: the plan cannot start, so say it plainly and offer the way forward. */
.pp-gate{margin:14px 0 4px;padding:16px 18px;border:1px solid var(--bd,#d5dae4);border-radius:12px;background:var(--sf2,#f6f8fb);color:var(--ink,#0f1626)}
.pp-gate b{display:block;font-size:15px;font-weight:700}
.pp-gate p{margin:6px 0 12px;font-size:14px;line-height:1.5;color:var(--mut,#464d61)}
.pp-gate-on{border-color:var(--ac,#1d4ed8);box-shadow:0 0 0 3px rgba(29,78,216,.15)}

/* Who picker: a searchable list of vendors and subs, with "add new" pinned at the bottom. */
.pp-cb label{display:block}
.pp-cbw{position:relative}
.pp-cbi{padding-right:36px}
.pp-cbi.pp-linked{border-color:#14573a}
.pp-cb .pp-ck{position:absolute;right:10px;top:12px;width:20px;height:20px;border-radius:50%;background:#dff1e7;color:#14573a;font-size:12px;font-weight:800;line-height:20px;text-align:center;pointer-events:none}
.pp-pop{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #9aa3b8;border-radius:10px;box-shadow:0 10px 28px rgba(15,22,38,.18);overflow:hidden}
.pp-pop[hidden]{display:none}
.pp-lb{list-style:none;margin:0;padding:4px 0 0;max-height:min(280px,45vh);overflow-y:auto;overscroll-behavior:contain}
.pp-opt{display:flex;flex-direction:column;gap:1px;padding:10px 14px;min-height:44px;box-sizing:border-box;cursor:pointer;color:#1f2536;border-bottom:1px solid #eceff5}
.pp-opt:last-child{border-bottom:0}
.pp-act,.pp-opt:hover{background:#e6edf7}
.pp-cb .pp-on{font-size:15px;font-weight:700;overflow-wrap:anywhere;line-height:1.3}
.pp-cb .pp-ot{font-size:12.5px;font-weight:600;color:#464d61;overflow-wrap:anywhere}
.pp-optadd{flex-direction:row;align-items:center;gap:10px;position:sticky;bottom:0;background:#f3f5f9;border-top:1px solid #c3c8d8;color:#2f4358}
.pp-optadd.pp-act,.pp-optadd:hover{background:#e0e8f3}
.pp-cb .pp-plus{flex:none;width:22px;height:22px;border-radius:50%;background:#3f566d;color:#fff;font-weight:800;line-height:22px;text-align:center}
.pp-pst{padding:12px 14px;font-size:14px;line-height:1.45;color:#464d61}
.pp-link{box-shadow:none;white-space:nowrap;display:block;margin-top:6px;padding:8px 0;background:none;border:0;font:inherit;font-weight:700;color:#2f4358;text-decoration:underline;cursor:pointer;min-height:44px}
.pp-opt:focus-visible,.pp-link:focus-visible,.pp-seg button:focus-visible{outline:3px solid #2f4358;outline-offset:-3px}
.pp-cbi:focus-visible,.pp-f input:focus-visible,.pp-f select:focus-visible{outline:3px solid #2f4358;outline-offset:1px}

/* Add a new vendor or sub, in place under the row. */
.pp-nf{flex:1 1 100%;margin-top:12px;padding:14px;border:1px solid #9aa3b8;border-radius:12px;background:#f6f8fb;display:flex;flex-direction:column;gap:12px}
.pp-nft{font-size:15px;font-weight:800;color:#1f2536}
.pp-seg{display:flex;border:1px solid #2f4358;border-radius:10px;overflow:hidden;align-self:flex-start}
.pp-seg button{font:inherit;font-size:14px;font-weight:700;min-height:44px;padding:8px 22px;background:#fff;color:#2f4358;border:0;cursor:pointer}
.pp-seg button+button{border-left:1px solid #2f4358}
.pp-seg button[aria-pressed="true"]{background:#3f566d;color:#fff}
.pp-nfr{display:flex;flex-wrap:wrap;gap:12px}
.pp-nfr .pp-f{flex:1 1 200px}
.pp-nfa{display:flex;flex-wrap:wrap;gap:10px}
.pp-nfw{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;background:#fff4e0;border:1px solid #d9b46a;color:#5b3d00;font-size:14px;line-height:1.45}
.pp-nf .pp-err,.pp-nf .pp-fine{margin:0}

/* Materials payouts the plan suggests. */
.pp-cb .pp-tag{font-size:12px;font-weight:700;padding:2px 10px;border-radius:999px;background:#e6edf7;color:#27405e;white-space:nowrap}
.pp-lr{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pp-mn{margin:14px 0 0;padding:4px 14px;border:1px solid #d9b46a;border-radius:12px;background:#fff4e0;color:#4a3200}
.pp-mn-r{margin:0;padding:10px 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;font-size:14px;line-height:1.45;border-bottom:1px solid #ecd6a6}
.pp-mn-r:last-child{border-bottom:0}
.pp-mn-r span{flex:1 1 240px;min-width:0;overflow-wrap:anywhere}
.pp-mn-b{background:#fff}
.pp-cb .pp-on{color:#1f2536}.pp-cb .pp-optadd .pp-on{color:#2f4358}

/* Add payee form (opens from "+ Add payee"). Centered sheet on desktop, full-width bottom sheet on a phone. */
html.pd-lock{overflow:hidden}
.pd-ov{position:fixed;inset:0;z-index:2147483000;background:rgba(20,26,40,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.pd-sheet{width:100%;max-width:600px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);display:flex;flex-direction:column;background:#fff;color:#1f2536;border-radius:16px;box-shadow:0 24px 60px rgba(20,26,40,.35);overflow:hidden}
.pd-h{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 20px 14px;border-bottom:1px solid #dadde8}
.pd-h h2{margin:0;font-size:20px;font-weight:800;color:#1f2536}
.pd-h p{margin:4px 0 0;font-size:13.5px;line-height:1.45;color:#464d61}
.pd-x{flex:none;width:44px;height:44px;border:1px solid #9aa3b8;border-radius:10px;background:#fff;font-size:24px;line-height:1;color:#2f4358;cursor:pointer}
.pd-b{padding:6px 20px 18px;overflow-y:auto;flex:1 1 auto;-webkit-overflow-scrolling:touch}
.pd-sec{padding:16px 0 4px}
.pd-sec+.pd-sec{border-top:1px solid #eceef5;margin-top:12px}
.pd-l{display:block;margin-bottom:8px;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#464d61}
.pd-seg{display:inline-flex;max-width:100%;border:1px solid #9aa3b8;border-radius:10px;overflow:hidden;margin-bottom:10px}
.pd-seg button{font:inherit;font-size:14px;font-weight:700;min-height:44px;padding:8px 16px;border:0;background:#fff;color:#2f4358;cursor:pointer}
.pd-seg button+button{border-left:1px solid #9aa3b8}
.pd-seg button[aria-pressed="true"]{background:#3f566d;color:#fff}
.pd-in{font:inherit;font-size:16px;min-height:44px;padding:8px 12px;border:1px solid #9aa3b8;border-radius:8px;background:#fff;color:#1f2536;box-sizing:border-box;width:100%}
.pd-in:focus-visible,.pd-seg button:focus-visible,.pd-chip:focus-visible,.pd-res button:focus-visible,.pd-x:focus-visible{outline:3px solid #2f4358;outline-offset:2px}
.pd-money{font-variant-numeric:tabular-nums}
.pd-res{list-style:none;margin:8px 0 0;padding:0;max-height:180px;overflow-y:auto;border:1px solid #c3c8d8;border-radius:10px}
.pd-res li+li{border-top:1px solid #eceef5}
.pd-res button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:44px;padding:8px 12px;border:0;background:#fff;font:inherit;font-size:15px;color:#1f2536;text-align:left;cursor:pointer}
.pd-res button:hover{background:#eef2f7}
.pd-res b{font-weight:700;overflow-wrap:anywhere}
.pd-res span{font-size:12.5px;color:#464d61;flex:none}
.pd-hint{margin-top:8px;font-size:13.5px;line-height:1.45;color:#464d61}
.pd-hint .pp-link{display:inline;margin:0 0 0 8px;min-height:0;padding:0}
.pd-new{margin:8px 0 0;font-size:13.5px;color:#14573a;font-weight:600}
.pd-new span{display:inline-block;width:18px;font-weight:800}
.pd-sel{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border:1px solid #14573a;border-radius:10px;background:#eef7f1}
.pd-sel div{display:flex;flex-direction:column;gap:2px;min-width:0}
.pd-sel b{font-size:15px;overflow-wrap:anywhere}
.pd-sel span{font-size:12.5px;color:#2b3447}
.pd-sel .pp-link,.pd-qk .pp-link,.pd-sv .pp-link{display:inline-block;margin:0;padding:0 4px;min-height:44px;line-height:44px}
.pd-cmp{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.pd-chipg{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pd-chipg>span{min-width:76px;font-size:14px;font-weight:700;color:#1f2536}
.pd-chip{font:inherit;font-size:13.5px;font-weight:700;min-height:44px;padding:6px 14px;border-radius:999px;border:1px solid #9aa3b8;background:#fff;color:#2f4358;cursor:pointer}
.pd-chip[aria-pressed="true"]{background:#3f566d;border-color:#3f566d;color:#fff}
.pd-qk{display:flex;gap:14px;flex-wrap:wrap;margin:-2px 0 4px}
.pd-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.pd-step{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #eceef5;flex-wrap:wrap}
.pd-step:first-child{border-top:0}
.pd-sl{display:flex;flex-direction:column;gap:1px;min-width:0;flex:1 1 150px}
.pd-sl span{font-size:12px;color:#464d61}
.pd-sl b{font-size:14.5px;overflow-wrap:anywhere}
.pd-sv{display:flex;align-items:center;gap:8px;flex:none}
.pd-sv label{display:flex;align-items:center;gap:4px;margin:0}
.pd-sv i{font-style:normal;font-size:14px;color:#464d61}
.pd-n{width:92px;text-align:right}
.pd-sv .pp-link{flex:none}
.pd-oth{min-width:76px;white-space:nowrap;text-align:right;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums;color:#1f2536}
.pd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pd-sum{margin:8px 0 0;font-size:14px;font-weight:700;color:#8c1d18}
.pd-sum.pd-ok{color:#14573a}
.pd-gate{padding:14px;border-radius:12px;background:#eef2f7;border:1px solid #d3dbe6}
.pd-gate p{margin:4px 0 12px;font-size:14px;line-height:1.45;color:#2b3447}
.pd-f{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid #dadde8;background:#f7f8fb}
.pd-busy{margin-right:auto;font-size:13.5px;font-weight:600;color:#2f4358}
@media (max-width:600px){
  .pd-ov{padding:0;align-items:flex-end}
  .pd-sheet{max-width:none;max-height:92vh;max-height:92dvh;border-radius:16px 16px 0 0}
  .pd-h,.pd-f{padding-left:16px;padding-right:16px}.pd-b{padding-left:16px;padding-right:16px}
  .pd-f{flex-wrap:wrap}.pd-busy{flex:1 1 100%}.pd-f .pp-btn{flex:1}
  .pd-sv{width:100%;justify-content:space-between}.pd-n{flex:1;width:auto}
}
.pd-th{margin:8px 0 0;font-size:13.5px;line-height:1.45;color:#464d61}
.pd-th b{color:#14213d;font-variant-numeric:tabular-nums}
.pd-th .pp-link,.pp-lh .pp-link{display:inline;margin:0 0 0 6px;min-height:0;padding:0}
.pp-lh{margin:8px 0 0;font-size:13px;line-height:1.45;color:#464d61}
.pp-lh b{color:#14213d;font-variant-numeric:tabular-nums}
