/* Pronto Dashboard 0.13.0: Quote & Finance tab + Settings › Pricing (+ default quote notes) */
.pq{min-width:0}
.pq svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pq-intl{display:flex;align-items:flex-start;gap:10px;background:#FFF3E0;border:1px solid #FFD8A8;color:#8a4500;border-radius:12px;padding:10px 14px;font-weight:600;font-size:13.5px;margin-bottom:14px;line-height:1.4}
.pq-intl svg{width:18px;height:18px;margin-top:1px}.pq-intl b{font-weight:800;letter-spacing:.02em}
.pq-head{display:flex;align-items:center;gap:12px 14px;flex-wrap:wrap;margin-bottom:10px}
.pq-head h2{margin:0;font-size:19px;font-weight:750}.pq-head .grow{flex:1}
.pq-acts{display:flex;gap:8px;flex-wrap:wrap}
.pq-stat{display:inline-grid;grid-template-columns:repeat(4,auto);background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px;gap:2px}
.pq-stat button{font:inherit;font-size:12.5px;font-weight:700;padding:5px 11px;border-radius:999px;color:var(--ink3);background:none;border:0;cursor:pointer}
.pq-stat button.on{background:#fff6c9;color:#6d5600}.pq-stat button.s-sent{background:var(--bluebg);color:#1565C0}.pq-stat button.s-accepted{background:var(--passbg);color:var(--pass)}.pq-stat button.s-declined{background:var(--failbg);color:var(--fail)}
.pq-pulled{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px;color:var(--ink2);margin-bottom:14px}
.pq-pulled .dot{width:8px;height:8px;border-radius:50%;background:var(--pass);flex:none}
.pq-pulled>span:nth-child(2){flex:1 1 0;min-width:150px}
@media (max-width:560px){.pq-pulled>span:nth-child(2){min-width:0;flex:1 1 calc(100% - 24px)}.pq-pulled .flink{margin-left:16px}}
.pq-pulled .flink{display:inline-flex;align-items:center;gap:5px;font-weight:700}
.pq-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
/* 0.16.23preview6: a very short quote (few lines -- e.g. the PREVIEW's SAMPLE doc) can leave .pq-main shorter than
   the sticky summary's own height + its offset under the sticky header; position:sticky correctly detaches once it
   would run past the bottom of its own grid row, which then lets it scroll up under the sticky header instead of
   with it. A sane minimum keeps real quotes unaffected (they're already taller) and gives a short one enough room
   for the summary to float properly the whole way down. */
.pq-main{min-height:620px}
.pq-main{min-width:0}
.pq .fl,.pq-set .fl{font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2);font-weight:700;margin-bottom:6px;display:block}
.pq .help{font-size:12.5px;color:var(--ink3);margin:5px 0 0;display:block;line-height:1.35}
.pq-f{display:flex;flex-direction:column;min-width:0}
.pq-f input,.pq-f select{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;font:inherit;font-weight:600;color:var(--ink);min-width:0;width:100%;box-sizing:border-box}
.pq-f input:focus,.pq-f select:focus,.pq-inp:focus-within{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,136,229,.14)}
.pq-inp{display:flex;align-items:center;height:40px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 10px;gap:4px;box-sizing:border-box;min-width:0}
.pq-inp input{border:0!important;box-shadow:none!important;height:100%!important;padding:0!important;background:transparent!important;font:inherit;font-weight:700;width:100%;min-width:0;outline:none}
.pq-inp i{font-style:normal;color:var(--ink2);font-weight:700;flex:none}
.pq-inp.sm{height:34px;border-radius:8px;padding:0 8px;font-size:13.5px}
.pq-inp.sm input{text-align:right}
.pq-inp.ov{border-style:dashed;border-color:#cdd4dc}
.pq-inp.ov.set{border-style:solid;border-color:var(--blue);background:var(--bluebg)}
.pq-inp.ov.set input{color:var(--blue)}
.pq-inp.need{border-color:#F9A825;background:#FFFBEA}
.pq-cfg{padding:16px 18px;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.6fr);gap:16px 18px;margin-bottom:14px}
.pq-cfg .pq-val{grid-column:1/-1}
.pq-ref{grid-column:1/-1;border-top:1px solid var(--line);padding-top:14px;display:grid;grid-template-columns:auto minmax(0,1.2fr) minmax(0,.5fr) minmax(0,1.1fr);gap:12px 16px;align-items:end}
.pq-ref .help{grid-column:2/-1;margin-top:-4px}
.pq-ref:not(.on){grid-template-columns:auto minmax(0,1fr);align-items:center}.pq-ref:not(.on) .help{grid-column:2;margin:0;align-self:end;padding-bottom:10px}
.pq-sw{display:inline-flex;align-items:center;gap:10px;height:40px;background:none;border:0;padding:0;font:inherit;font-weight:700;cursor:pointer;color:var(--ink)}
.pq-sw i{width:42px;height:24px;border-radius:999px;background:#cfd6de;position:relative;flex:none;transition:background .15s}
.pq-sw i::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .15s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.pq-sw.on i{background:var(--blue)}.pq-sw.on i::after{left:21px}
.pq-seg{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line);border-radius:10px;padding:3px;gap:3px}
.pq-seg button{height:32px;border:0;border-radius:7px;font:inherit;font-size:13px;font-weight:650;color:var(--ink2);background:none;cursor:pointer;white-space:nowrap;padding:0 8px}
.pq-seg button.on{background:var(--blue);color:#fff}
.pq .cat{display:inline-block;font-size:10.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--fail);background:var(--failbg);border-radius:5px;padding:1px 6px;line-height:1.5}
.pq .cat.o{color:var(--ink2);background:var(--bg)}
.pq-isel{height:34px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:13px;max-width:100%;min-width:0;width:100%;background:#fff;margin-top:2px}
.pq-desc{width:100%;height:36px;border:1px solid var(--line);border-radius:8px;padding:0 10px;font:inherit;box-sizing:border-box}
.pq .was{text-decoration:line-through;color:var(--ink3)}
.pq-adddoor{margin:0 0 14px}
/* top/max-height are the no-JS fallback only -- layoutSticky() in quote.js sets both inline, measured from the real
   rendered height of the app topbar + .pq-stickyhead (0.16.23preview6: was a hardcoded 76px, which is exactly what
   overlapped once the sticky top button row (below) was added) */
.pq-sum{padding:18px;position:sticky;top:150px;max-height:calc(100vh - 170px);overflow-y:auto}
.pq-sum h3{margin:0 0 2px;font-size:16px;font-weight:800}
.pq-sum .lock{font-size:12px;color:#8a4500;font-weight:700;margin-bottom:12px;display:flex;gap:6px;align-items:center}.pq-sum .lock svg{width:14px;height:14px}
.pq-sum .row{display:flex;justify-content:space-between;align-items:baseline;padding:9px 0;border-bottom:1px solid var(--line);gap:10px}
.pq-sum .row .k{font-weight:650;min-width:0}
.pq-sum .row .k small{display:block;font-weight:500;color:var(--ink3);font-size:12px;margin-top:2px;line-height:1.3}
.pq-sum .row .v{font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums}
.pq-sum .row .v.minus{color:var(--fail)}
.pq-sum .row.big{border-bottom:0;padding-top:14px}.pq-sum .row.big .k{font-size:15px;font-weight:800}.pq-sum .row.big .v{font-size:24px;font-weight:800}
.pq-sum .row.net{background:var(--passbg);border-radius:10px;padding:11px 12px;border:0;margin-top:4px}
.pq-sum .row.net .k,.pq-sum .row.net .v{color:var(--pass)}.pq-sum .row.net .v{font-size:19px}
.pq-sum .formula{margin-top:12px;font-size:12px;color:var(--ink2);background:var(--bg);border-radius:10px;padding:10px 12px;line-height:1.55;overflow-wrap:anywhere}
.pq-sum .sumacts{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px}
.pq-warn{display:flex;gap:8px;align-items:flex-start;background:#FFFBEA;border:1px solid #F5DE9A;color:#7a5700;border-radius:10px;padding:9px 11px;font-size:12.5px;font-weight:600;margin:10px 0 0;line-height:1.35}
.pq-warn svg{width:15px;height:15px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2.1;flex:none}
.pq-empty{padding:22px}.pq-empty h3{margin:0 0 6px}
.pq-foot{margin:6px 2px 0}
/* client preview dialog */
html.pq-noscroll,html.pq-noscroll body{overflow:hidden}
.pq-dlg{position:fixed;inset:0;z-index:200;background:rgba(15,23,42,.55);display:flex;align-items:flex-start;justify-content:center;padding:24px 12px;overflow:auto}
.pq-dlg svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.pq-dlgc{background:#eef1f5;border-radius:16px;width:100%;max-width:860px;box-shadow:0 20px 60px rgba(0,0,0,.3);overflow:hidden}
.pq-dlgh{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;padding:12px 14px;background:#fff;border-bottom:1px solid var(--line)}
.pq-dlgh .grow{flex:1}.pq-dlgh>.muted{flex:1 1 220px}
.pq-dlgc>.pq-warn{margin:12px 14px 0}
.pq-pwrap{padding:16px;display:flex;justify-content:center}
.pq-page{background:#fff;width:100%;max-width:794px;box-shadow:0 2px 10px rgba(16,24,40,.12);padding:0 40px 26px;box-sizing:border-box;font-size:13px;line-height:1.45;color:#1d2329;position:relative}
.pq-pbar{height:9px;margin:0 -40px;background:linear-gradient(#0B1B33 0 7px,#2F6FC4 7px)}
.pq-ptop{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:24px 0 16px;border-bottom:1px solid #dfe4ea}
.pq-ptop img{width:190px;max-width:45%;height:auto;display:block}
.pq-pt{text-align:right;display:flex;flex-direction:column}.pq-pt b{font-size:24px;color:#0B1B33;letter-spacing:.02em;font-weight:500;font-family:"Roboto Condensed",Roboto,sans-serif}
.pq-pto{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px 0 10px}
.pq-pto i{display:block;font-style:normal;font-size:10.5px;letter-spacing:.06em;color:#5f6b78;font-weight:600;margin-bottom:3px}
.pq-pto b{display:block;font-size:14.5px;font-weight:600}.pq-pto span{display:block;color:#5f6b78;font-size:12.5px}
.pq-pin{margin:6px 0 12px}
.pq-pth,.pq-ptr{display:grid;grid-template-columns:110px minmax(0,1fr) 100px;gap:12px;padding:9px 10px}
.pq-pth{background:#F1F4F8;font-size:10.5px;letter-spacing:.06em;color:#5f6b78;font-weight:600}.pq-pth span:last-child,.pq-ptr .t{text-align:right}
.pq-ptr{border-bottom:1px solid #dfe4ea;align-items:start}
.pq-ptr .r b{display:block;color:#0B1B33;font-size:14px}.pq-ptr .r small{display:block;color:#5f6b78;font-size:11.5px;line-height:1.3}
.pq-ptr ul{margin:0;padding-left:16px}.pq-ptr li{margin:0 0 3px}.pq-ptr li::marker{color:#2F6FC4}
.pq-ptr .t{font-weight:600;font-size:14px;font-variant-numeric:tabular-nums}
.pq-ptot{margin:18px 0 0 auto;width:min(100%,290px);background:#0B1B33;color:#fff;border-radius:2px;padding:12px 16px;display:grid;grid-template-columns:1fr auto;align-items:baseline}
.pq-ptot span{font-size:12px;letter-spacing:.06em}.pq-ptot b{font-size:24px;font-weight:600}.pq-ptot small{grid-column:1/-1;color:#c9d6ea;font-size:11.5px}
.pq-pval{margin:12px 0 0}
.pq-pft{margin-top:26px;padding-top:8px;border-top:1px solid #dfe4ea;color:#5f6b78;font-size:11.5px}
/* Settings › Pricing */
.pq-set svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round}
.pq-prev{background:#FFF3E0;border:1px solid #FFD8A8;color:#8a4500;border-radius:10px;padding:9px 12px;font-size:13px;font-weight:600;margin:12px 0}
.pq-pgrid{display:grid;grid-template-columns:270px minmax(0,1fr);gap:16px;align-items:start}
.pq-subs{display:flex;flex-direction:column;gap:8px}
.pq-sb{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;cursor:pointer;color:var(--ink)}
.pq-sb b{font-weight:700;line-height:1.3}.pq-sb span{font-size:12.5px;color:var(--ink3)}
.pq-sb em{display:flex;gap:6px;font-style:normal}.pq-sb em:empty{display:none}
.pq-sb i{font-style:normal;font-size:10.5px;font-weight:800;letter-spacing:.06em;border-radius:6px;padding:2px 6px}
.pq-sb i.df{background:var(--bluebg);color:#1565C0}.pq-sb i.sm{background:#fff6c9;color:#6d5600}
.pq-sb.on{border-color:var(--blue);box-shadow:0 0 0 2px rgba(30,136,229,.18);background:#f7fbff}
.pq-ped{border:1px solid var(--line);border-radius:12px;overflow:hidden;min-width:0;background:#fff}
.pq-ph{display:flex;align-items:flex-end;gap:12px 16px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--line)}
.pq-ph .grow{flex:1}.pq-ph .pq-nm{flex:1 1 260px;max-width:380px}
.pq-ph .pq-f input{height:40px;border:1px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;font-weight:600}
.pq-phb{display:flex;gap:8px;flex-wrap:wrap}
.pq-red{color:var(--fail)}
.pq-prow{display:grid;grid-template-columns:150px minmax(0,1fr) 128px 116px 34px;gap:8px;align-items:center;padding:7px 12px 7px 16px;border-bottom:1px solid var(--line)}
.pq-prow select,.pq-prow input:not(.x){height:36px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:13.5px;padding:0 8px;width:100%;box-sizing:border-box;background:#fff;min-width:0}
.pq-prow .pq-inp input{border:0;height:100%}
.pq-prow label{min-width:0;display:block}
.pq-pxh{background:#fafbfc}
.pq-prow.pq-pxh span{font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2);font-weight:700}
.pq-prow.pq-pxh span:nth-child(4){text-align:right}
.pq-pfoot{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px}
.pq-pfoot .muted{flex:1 1 260px}
/* laptop: Pricing list on top of the editor */
@media (max-width:1500px){ .pq-pgrid{grid-template-columns:minmax(0,1fr)} .pq-subs{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr))} .pq-addsub{align-self:center;justify-self:start} .pq-prow{grid-template-columns:140px minmax(0,1fr) 116px 108px 34px} }
/* 0.16.23preview5 (David WhatsApp 6 Nov 12:03): was max-width:1280px ("laptop"), which made the summary
   position:static -- and so scroll away -- on any normal desktop/laptop window narrower than 1280px, not just phones.
   Narrowed to the same max-width:760px breakpoint every other phone-only rule in this file uses: desktop/laptop
   (incl. 1366x768) now keeps the sticky summary; only real phone widths stay static/stacked. */
@media (max-width:760px){ .pq-grid{grid-template-columns:minmax(0,1fr)} .pq-sum{position:static;max-height:none;overflow:visible} .pq-sum .sumacts{grid-template-columns:1fr 1fr} }
@media (max-width:1100px){ .pq-row{grid-template-columns:minmax(0,1fr) 50px 96px 88px 104px 92px 30px;gap:0 8px} }
/* phone / narrow: every line becomes a card: the item on top, then an equal 4-column grid (Qty · Sub cost · Override · Client) */
@media (max-width:860px){
  .pq-cfg{grid-template-columns:minmax(0,1fr) minmax(0,.6fr);padding:14px}
  .pq-ref.on{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pq-ref.on>.pq-f:first-child{grid-column:1/-1}
  .pq-ref.on .pq-rm,.pq-ref .help{grid-column:1/-1}
  .pq-pgrid{grid-template-columns:minmax(0,1fr)}
  .pq-subs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .pq-addsub{grid-column:1/-1}
  .pq-prow.pq-pxh{display:none}
  .pq-prow{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 44px 10px 12px;position:relative}
  .pq-ph{padding:12px}
  .pq-prow .nm{grid-column:1/-1;order:-1}
  .pq-prow .x{position:absolute;top:10px;right:6px}
}
@media (max-width:560px){
  .pq-head h2{width:100%}
  .pq-stat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;box-sizing:border-box;border-radius:14px}
  .pq-stat button{padding:7px 2px;border-radius:11px}
  .pq-head .grow{display:none}
  .pq-acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .pq-acts .btn{padding:0 6px;font-size:13px;gap:5px;min-width:0;white-space:normal;line-height:1.15;height:42px;text-align:center}
  .pq-acts .pq-mail{grid-column:1/-1}
  .pq-cfg{grid-template-columns:minmax(0,1fr)}
  .pq-seg button{font-size:12.5px;padding:0 4px;white-space:normal;line-height:1.1}
  .pq-sum .sumacts{grid-template-columns:1fr}
  .pq-ref:not(.on){grid-template-columns:minmax(0,1fr)}.pq-ref:not(.on) .help{grid-column:1;padding:0}
  .pq-subs{grid-template-columns:minmax(0,1fr)}
  .pq-ph .pq-nm{max-width:none}
  .pq-prow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px;padding:10px 10px 10px 12px}
  .pq-prow .nm{grid-column:1/3;order:-2}.pq-prow .x{position:static;order:-1;grid-column:3}
  .pq-prow .ck,.pq-prow .un,.pq-prow .pr{grid-column:1/-1}
  .pq-phb{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .pq-phb .btn{min-width:0;white-space:normal;line-height:1.1;padding:0 6px}
  .pq-page{padding:0 16px 18px}.pq-pbar{margin:0 -16px}
  .pq-pto{grid-template-columns:1fr}
  .pq-pth,.pq-ptr{grid-template-columns:62px minmax(0,1fr) 74px;gap:8px;padding:8px 4px}
  .pq-pwrap{padding:8px}
  .pq-dlg{padding:8px 6px}
}
/* job record tabs: 6 tabs (Details · Activity · Files · Alerts · Quote · Messages) stay one equal row */
@media (max-width:700px){ .jt-tabs.n6{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:3px!important;padding:4px!important} .jt-tabs.n6 .jt-tab .jt-l{font-size:10px;letter-spacing:-.2px} }
@media (min-width:701px) and (max-width:1100px){ .jt-tabs.n6 .jt-tab{padding:9px 6px;gap:6px;font-size:13px} .jt-tabs.n6 .jt-lx{display:none} }
/* 0.13.0: notes on the client PDF (per quote, per client default, Settings default) */
.pq-cfg .pq-notes{grid-column:1/-1}
.pq-f textarea{border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:#fff;font:inherit;font-size:14.5px;line-height:1.45;color:var(--ink);min-width:0;width:100%;box-sizing:border-box;resize:vertical;min-height:96px}
.pq-f textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,136,229,.14)}
.pq-notes .help{margin-top:6px}
.pq-nsrc{color:var(--ink2)}
.pq-nacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.pq-nacts:empty{display:none}
.pq-nacts .btn{white-space:normal;text-align:left;height:auto;min-height:34px;padding-top:6px;padding-bottom:6px;line-height:1.25}
.pq-dnotes{margin-bottom:14px}
.pq-dnotes .pq-f{margin-top:12px}
.pq-dnhelp{margin:8px 2px 0}
.pq-pnotes{margin:18px 0 0;border-top:1px solid #dfe4ea;padding-top:12px}
.pq-pnotes i{display:block;font-style:normal;font-size:11px;letter-spacing:.06em;color:#5f6b78;font-weight:700;margin-bottom:6px}
.pq-pnotes p{margin:0;white-space:normal;line-height:1.45}

/* ---- 0.13.1 (30 Oct 2026, David 11:06 "line items clearer + sub cost editable"): door blocks and line-item cards ---- */
.pq-door{container:pqdoor/inline-size;margin-bottom:18px;overflow:hidden;padding:0;border:1px solid #d7e3f0}
.pq-dh{display:flex;align-items:center;gap:6px 10px;padding:12px 16px;background:var(--bluebg);border-bottom:1px solid #d7e3f0;flex-wrap:wrap}
.pq-dh .rf{font-weight:850;font-size:18px;color:var(--blue);letter-spacing:-.01em}
.pq-dh .lc{color:var(--ink);font-weight:700;font-size:15px;min-width:0;overflow-wrap:anywhere}
.pq-dh .chip{font-size:11.5px;font-weight:800;color:var(--blue);background:#fff;border:1px solid #cfe0f3;border-radius:7px;padding:2px 8px}
.pq-dh .grow{flex:1}
.pq-lines{display:flex;flex-direction:column;gap:10px;padding:12px;background:#f5f7fa}
.pq-line{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:12px 46px 12px 14px;font-variant-numeric:tabular-nums}
.pq-line.unpriced{border-color:#F3C969;background:#FFFCF0}
.pq-lt{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0}
.pq-lh{display:flex;align-items:center;gap:8px}
.pq-lh .no{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:11px;background:var(--bg);color:var(--ink2);font-size:12px;font-weight:800}
.pq .cat{font-size:11px;padding:2px 7px}
.pq-lt .t{margin:0;font-size:15px;font-weight:600;color:var(--ink);line-height:1.45;overflow-wrap:anywhere;white-space:pre-line}
.pq-lt .m{display:block;font-size:13px;color:var(--ink2);line-height:1.45;overflow-wrap:anywhere}
.pq-lt .m b{font-weight:700;color:var(--ink)}
.pq-lt .m .flink{font-size:13px;font-weight:700;padding:0}
.pq-lt .m.flag,.pq-lt .m.part{color:#9a6a00;font-weight:600}
.pq-lt .m.flag svg,.pq-lt .m.part svg{width:14px;height:14px;display:inline-block;vertical-align:-2px;margin-right:4px}
.pq-lt .pq-isel{max-width:520px}
.pq-lt .pq-desc{max-width:none}
.pq-fig{display:grid;grid-template-columns:64px repeat(4,minmax(0,1fr));gap:10px 12px;border-top:1px dashed var(--line);padding-top:12px;align-items:start}
.pq-fig .f{display:flex;flex-direction:column;gap:4px;min-width:0}
.pq-fig .fl{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink2);font-weight:800;white-space:nowrap;line-height:1.2}
.pq-fig .fv{min-height:36px;display:flex;align-items:center;font-weight:700;font-size:15px;min-width:0}
.pq-fig .fv>.pq-inp{width:100%}
.pq-fig .pq-inp.sm{height:36px;font-size:15px}
.pq-fig .pq-inp.sm input{text-align:left}
.pq-fig .pq-inp.cost{border-color:#b9c6d4}
.pq-fig .pq-inp.cost.pq-ed{border-color:#7E57C2;background:#F5F0FF}
.pq-fig .pq-inp.cost.need{border-color:#F9A825;background:#FFFBEA}
.pq-fig .fh{font-size:11.5px;color:var(--ink3);line-height:1.3;min-width:0;overflow-wrap:anywhere}
.pq-fig .fh .ed{color:#6a3fb5;font-weight:800}
.pq-fig .fh .flink{font-size:11.5px;font-weight:700;padding:0}
.pq-fig .fk .fv{color:var(--ink2)}
.pq-fig .fq .na{color:var(--ink3);padding-left:4px}
.pq-n{width:100%;max-width:64px;height:36px;border:1px solid #b9c6d4;border-radius:8px;text-align:center;font:inherit;font-size:15px;font-weight:700;box-sizing:border-box;background:#fff}
.pq-n:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(30,136,229,.14)}
.pq-fig .fcl{background:var(--bluebg);border-radius:10px;padding:6px 10px 7px;margin:-6px 0 0}
.pq-fig .fcl .fl{color:var(--blue)}
.pq-fig .fcl .fv b{color:var(--blue);font-size:18px;font-weight:850}
.pq-del{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:8px;border:0;background:none;color:var(--ink3);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.pq-del svg{width:18px;height:18px}
.pq-del:hover{background:var(--failbg);color:var(--fail)}
.pq-dfoot{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:10px 16px;border-top:1px solid #d7e3f0;background:#fff;font-variant-numeric:tabular-nums}
.pq-dfoot .grow{flex:1}
.pq-add{border:1px dashed #b8cde3;border-radius:9px;background:#fff;font:inherit;font-weight:700;color:var(--blue);font-size:14px;cursor:pointer;padding:8px 14px}
.pq-add:hover{background:var(--bluebg)}
.pq-dfoot .dt{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.pq-dfoot .dt i{font-style:normal;font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink2);font-weight:800}
.pq-dfoot .dt b{font-size:15px;font-weight:750;color:var(--ink2)}
.pq-dfoot .dt-cl{background:var(--blue);border-radius:10px;padding:6px 12px}
.pq-dfoot .dt-cl i{color:rgba(255,255,255,.85)}
.pq-dfoot .dt-cl b{color:#fff;font-size:19px;font-weight:850}
.pq-ch{grid-column:1/-1;margin:0;font-size:15px;font-weight:800}
/* wide door: text on the left, figures on the right, same columns on every line so values line up */
@container pqdoor (min-width:1060px){
  .pq-line{grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start}
  .pq-fig{grid-template-columns:62px 132px 106px 124px 118px;border-top:0;padding-top:0;border-left:1px dashed var(--line);padding-left:16px}
}
/* phone-width door: figures in two columns, client price full width */
@container pqdoor (max-width:540px){
  .pq-lines{padding:8px;gap:8px}
  .pq-line{padding:12px 12px 12px 12px}
  .pq-lh{padding-right:34px}
  .pq-fig{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pq-fig .fcl{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 10px;margin:0;padding:8px 12px}
  .pq-fig .fcl .fv{min-height:0}
  .pq-n{max-width:none}
  .pq-dh{padding:10px 12px}
  .pq-dfoot{padding:10px 12px;gap:8px 12px}
  .pq-dfoot .dt-k{display:none}
  .pq-add{flex:1 1 100%;text-align:center}
  .pq-dfoot .grow{display:none}
  .pq-dfoot .dt-c{margin-right:auto;align-items:flex-start}
}

/* 0.16.20 PREVIEW (pronto-dash-quotesave-preview): Save Draft / Save Final buttons + Financial Docs list of saved quotes.
   Desktop-first rules here; phone-only overrides are in the @media (max-width:760px) block at the end of this file. */
.btn.pq-savefinal{background:#1b5e20;border-color:#1b5e20;color:#fff}
.btn.pq-savefinal:hover{background:#174e1b}
.pq-docs{margin-bottom:14px}
.pq-docs h3{margin:0 0 10px;font-size:14.5px;font-weight:800;display:flex;align-items:center;gap:8px}
.pq-doclist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.pq-docrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px 12px}
.pq-docrow.cur{border-color:#1E88E5;box-shadow:inset 0 0 0 1px #1E88E5}
.pq-docst{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:4px 10px;flex:none}
.pq-docst.draft{background:#fff6c9;color:#6d5600}
.pq-docst.final{background:var(--passbg);color:var(--pass)}
.pq-docno{font-weight:750;font-size:13.5px}
.pq-docdate{font-size:12.5px}
.pq-doctot{font-weight:750;font-size:13.5px;margin-left:auto}
.pq-docacts{display:flex;gap:6px;flex-wrap:wrap}
.pq-docempty{font-size:13px;color:var(--ink3);margin:0 0 14px}
/* 0.16.23 PREVIEW (David WhatsApp 6 Nov 09:07-09:10): standalone Financial Docs list view, bottom action row, back link,
   per-doc client-status chip (replaces the old header status pill). */
.pq-docs-standalone{margin-bottom:0}
.pq-docshead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.pq-docshead h3{margin:0}
/* 0.16.23preview5: header button row (room for a future "+ New invoice" beside "+ New quote") + a doc-type label on each
   row (reads "Quote" today; a future invoice row sets its own label), both part of making this list invoicing-ready. */
.pq-dochdbtns{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pq-doctype{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:4px 10px;flex:none;background:#eef1f5;color:#4b5563}
.pq-docopen{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:1 1 auto;min-width:0;background:none;border:0;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.pq-docopen:hover .pq-docno{text-decoration:underline}
.pq-docstatussel{height:30px;border:1px solid var(--line);border-radius:999px;padding:0 24px 0 11px;font-size:11.5px;font-weight:800;letter-spacing:.02em;background:#fff6c9 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236d5600" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 6px center/12px 12px;-webkit-appearance:none;appearance:none;color:#6d5600;flex:none;cursor:pointer}
.pq-docstatussel.s-sent{background-color:var(--bluebg);color:#1565C0}
.pq-docstatussel.s-accepted{background-color:var(--passbg);color:var(--pass)}
.pq-docstatussel.s-declined{background-color:var(--failbg);color:var(--fail)}
.pq-backwrap{margin-bottom:10px}
.pq-stickyhead .pq-backwrap{margin-bottom:8px}
.pq-back{display:inline-flex;align-items:center;gap:5px;font-weight:700}
.pq-footacts{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.pq-topacts{margin:10px 0 0;padding-top:0;border-top:0} /* 0.16.23preview5: top button row, left-aligned under the header/back link -- same .btn markup/handlers as the bottom row, just no footer divider */
/* 0.16.23preview6 (David WhatsApp 6 Nov 13:35 "Buttons should always stay at top and not disappear when scrolling"):
   back link + title/lock-chip/Preview/Download PDF/Email row + this Save/Duplicate/Delete row, as one sticky block.
   top is set inline by layoutSticky() in quote.js (the app topbar's real height); the 60px here is only the value
   before that JS runs on first paint. Solid background so scrolled content passes underneath it, not through it. */
.pq-stickyhead{position:sticky;top:60px;z-index:25;background:var(--bg);padding:2px 0 12px;margin-bottom:12px;border-bottom:1px solid var(--line)}
/* 0.16.21 PREVIEW (David WhatsApp 6 Nov 08:06 "Yes"): Final-quote lock chip + dimmed, disabled editor. */
.pq-lockchip{display:inline-flex;align-items:center;gap:5px;background:#eef1f5;color:var(--ink3);border-radius:999px;padding:4px 10px;font-size:11.5px;font-weight:800;letter-spacing:.02em;margin-left:8px;flex:none}
.pq-lockchip svg{width:13px;height:13px}
.pq-locked{opacity:.68}
.pq-locked input,.pq-locked select,.pq-locked textarea,.pq-locked button{cursor:not-allowed}
@media (max-width:760px){
  .pq-footacts{width:100%}
  .pq-footacts .btn{flex:1 1 calc(50% - 4px)}
  .pq-docrow{flex-direction:column;align-items:flex-start;gap:6px}
  .pq-doctot{margin-left:0}
  .pq-docacts{width:100%}
  .pq-docopen{width:100%}
  .pq-docshead{flex-wrap:wrap}
  .pq-lockchip{margin-left:0}
}

/* 0.16.23preview6 full-screen quote builder (David WhatsApp 6 Nov 13:35: "the quote tool should be full screen when
   building a quote so job stages etc should not be visible, that way there is more room for everything"). quote.js
   toggles body.pq-fs on/off from paint() (on only while the builder, not the Financial Docs list, is showing) -- these
   rules hide everything of the job page above/around the builder (job header incl. the status stepper = "job stages",
   the Details/Files/Alerts/Financial Docs/Activity tab bar, breadcrumbs, the just-saved banner, the cancelled/flagged/
   outstanding banners, the Cancel job link at the bottom) and widen the content column. The app's own top bar (date,
   Add job) is left alone for navigation, same for the left-hand Jobs/Messages/Surveys nav -- neither is job-page chrome.
   Nothing here is destroyed, only hidden: "Back to Financial Docs" in the sticky header turns body.pq-fs back off via
   paint(), which brings every one of these back exactly as they were. */
body.pq-fs .jp-crumbwrap,
body.pq-fs .pg-back,
body.pq-fs .jh2,
body.pq-fs .jp-saved,
body.pq-fs .jm-banner,
body.pq-fs .jt-tabs,
body.pq-fs .jm-dz{display:none}
body.pq-fs .main{max-width:none}
/* phone: sticky is fine (David's own words) but it must not eat the screen -- trim the vertical padding the sticky
   header adds over what it already had, so three stacked rows (back link, title row, button row) cost as little
   height as possible while every button stays reachable without scrolling the page itself. */
@media (max-width:760px){
  .pq-stickyhead{padding-bottom:8px;margin-bottom:10px}
  .pq-stickyhead .pq-backwrap{margin-bottom:6px}
  .pq-stickyhead .pq-head{margin-bottom:6px}
  .pq-stickyhead .pq-topacts{margin-top:6px}
}
