/* SyntaxFlow — "Quote on site" (presupuesto en la obra), r2930. Phone first: one step on screen, every control
   44 px or more (gloves), the colours of the site's tokens (light and dark). The paper reuses sf.css (.d-*). */
#po-app{ min-height:34rem; display:grid; gap:14px; }
#po-app .btn{ min-height:44px; }
#po-app .btn.small{ min-height:44px; min-width:44px; }
#po-app input:not([type=checkbox]),#po-app select,#po-app textarea{ min-height:44px; width:100%; box-sizing:border-box; font-size:1rem; }
.po-stepsbox{ min-width:0; }
.po-steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; counter-reset:none; }
.po-steps button{ width:100%; min-height:48px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:6px 4px;
  border:1px solid var(--rule-2); border-radius:10px; background:var(--surface); color:var(--ink-2); font:inherit; font-size:.8rem; line-height:1.15; cursor:pointer; text-align:center; }
.po-steps button[aria-current=step]{ border-color:var(--glass); background:var(--glass); color:#fff; font-weight:650; }
.po-steps button:focus-visible{ outline:3px solid var(--glass); outline-offset:2px; }
.po-n{ font-weight:700; font-size:.95rem; }
.po-t{ overflow-wrap:anywhere; }
.po-bar{ display:flex; align-items:center; gap:8px; min-height:24px; font-size:.85rem; }
.po-work{ display:block; }
.po-work[data-step="4"]{ display:grid; gap:20px; }
@media (min-width:1100px){ .po-work[data-step="4"]{ grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); } }
.po-desk{ display:grid; gap:14px; min-width:0; }
.po-step{ display:grid; gap:14px; min-width:0; }
.po-step[hidden]{ display:none; }
.po-h{ margin:0; font-size:1.25rem; font-stretch:108%; }
.po-h:focus{ outline:none; }
.po-h:focus-visible{ outline:3px solid var(--glass); outline-offset:3px; border-radius:4px; }
.po-hn{ display:block; font-size:.8rem; font-weight:600; color:var(--ink-3); letter-spacing:.02em; }
.po-lead{ margin:0; }
.po-sub{ margin:6px 0 0; font-size:1.02rem; }
.po-list{ display:grid; gap:14px; }
.po-card{ gap:10px; }
.po-card-h{ margin:0; font-size:1.05rem; display:flex; gap:6px; align-items:baseline; flex-wrap:wrap; }
.po-code{ display:inline-block; min-width:2.2em; padding:1px 8px; border-radius:999px; background:var(--glass-tint); color:var(--glass-deep); font-weight:700; text-align:center; }
.po-three{ border:1px solid var(--rule); border-radius:10px; padding:10px 12px 0; margin:0; min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0 8px; }
.po-three.po-two{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.po-three legend{ padding:0 4px; font-weight:600; font-size:.92rem; color:var(--ink-2); }
.po-three .field label{ font-size:.82rem; }
.po-out{ display:grid; gap:2px; padding:10px 12px; border-radius:10px; background:var(--surface-2); border:1px solid var(--rule); font-variant-numeric:tabular-nums; }
.po-out p{ margin:0; }
.po-k{ color:var(--ink-3); font-size:.9rem; }
.po-fab strong{ color:var(--glass-deep); font-size:1.08rem; }
.po-flags{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.po-flags:empty{ display:none; }
.po-flag{ margin:0; padding:8px 10px; border-radius:8px; font-size:.9rem; line-height:1.4; background:var(--surface-2); color:var(--ink-2); border-left:4px solid var(--rule-2); }
.po-flag.warn{ border-left-color:var(--pencil-ink); color:var(--ink); font-weight:560; }
.po-card-acts,.po-acts,.po-adds,.po-nav{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.po-adds .btn{ flex:1 1 30%; }
.po-nav{ justify-content:space-between; border-top:1px solid var(--rule); padding-top:12px; }
.po-nav .btn.primary{ margin-left:auto; }
.po-photo{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.po-thumb{ width:160px; height:120px; object-fit:cover; border-radius:8px; background:var(--paper-2); }
.po-rates{ display:grid; gap:10px; }
.po-rate{ border:1px solid var(--rule); border-radius:10px; padding:10px 12px 0; margin:0; min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 8px; align-items:end; }
.po-rate.need{ border-color:var(--pencil-ink); border-width:2px; }
.po-rate .po-rdel{ margin-bottom:14px; }
@media (min-width:700px){ .po-rate{ grid-template-columns:1fr 1.3fr .9fr .9fr auto; } }
.po-chips{ display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.po-check{ display:flex; gap:10px; align-items:center; min-height:44px; }
.po-check input{ width:24px; height:24px; flex:0 0 24px; margin:0; }
.po-check label{ margin:0; padding:10px 0; cursor:pointer; }
.po-sum h3{ margin:0; font-size:1.02rem; }
.po-sumlist{ list-style:none; margin:0; padding:0; display:grid; gap:4px; }
.po-sumlist li{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--rule); font-size:.92rem; }
.po-sumlist li span{ min-width:0; overflow-wrap:anywhere; white-space:pre-line; }
.po-sumlist li strong{ white-space:nowrap; font-variant-numeric:tabular-nums; }
.po-sumlist li.out strong{ color:var(--ink-3); font-weight:500; white-space:normal; text-align:right; }
.po-tot{ display:grid; grid-template-columns:1fr auto; gap:4px 12px; margin:6px 0 0; font-variant-numeric:tabular-nums; }
.po-tot dd{ margin:0; text-align:right; }
.po-tot .po-total{ font-weight:750; font-size:1.12rem; padding-top:4px; border-top:2px solid var(--ink); }
#po-app summary{ cursor:pointer; font-weight:600; min-height:44px; display:flex; align-items:center; }
.po-paper{ min-width:0; }
.po-end{ border-top:1px solid var(--rule); padding-top:12px; }
/* the paper: the legal note and the place to sign (millimetres, as the rest of .sf-doc) */
.sf-doc .po-legal{ margin:6mm 0 0; padding:2.5mm 3.5mm; border:.3mm solid #9aa3ad; border-radius:1.5mm; font-size:8.2pt; line-height:1.45; color:#1b1f24; break-inside:avoid; }
.sf-doc .po-sign{ display:grid; grid-template-columns:1.2fr 1fr; gap:8mm; margin-top:7mm; break-inside:avoid; }
.sf-doc .po-sign h3{ font-size:7.5pt; text-transform:uppercase; letter-spacing:.1em; color:#4a525c; margin:0 0 2mm; }
.sf-doc .po-sline{ margin:0; height:11mm; border-bottom:.3mm solid #1b1f24; display:flex; align-items:flex-end; font-size:7.5pt; color:#4a525c; }
.sf-doc .po-sline span{ transform:translateY(-1mm); }
.sf-doc .po-signnote{ margin:3mm 0 0; font-size:7.8pt; color:#4a525c; break-inside:avoid; }
@media (prefers-reduced-motion:reduce){ #po-app *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
@media print{ .po-stepsbox,.po-bar,.po-nav,#po-live{ display:none !important; } }
/* r2940 (17-11-2026): the customer's signature and keeping the job (Plan Taller), the lock of a signed quote */
.po-lock{ display:grid; gap:8px; padding:12px 14px; border-radius:10px; border:2px solid var(--glass); background:var(--glass-tint); color:var(--ink); }
.po-lock[hidden]{ display:none; }
.po-lock p{ margin:0; font-weight:560; }
.po-next{ display:grid; gap:12px; padding:14px; border-radius:12px; border:1px solid var(--rule-2); background:var(--surface); }
.po-next[hidden]{ display:none; }
.po-next h3{ margin:0; font-size:1.08rem; }
.po-next .po-acts .btn{ flex:1 1 100%; }
@media (min-width:560px){ .po-next .po-acts .btn{ flex:1 1 auto; } }
.po-state{ margin:0; padding:8px 10px; border-radius:8px; background:var(--surface-2); font-size:.92rem; line-height:1.4; overflow-wrap:anywhere; }
.po-state.ok{ border-left:4px solid var(--glass); }
.po-state.warn{ border-left:4px solid var(--pencil-ink); }
.po-pad{ display:grid; gap:8px; }
.po-pad canvas{ display:block; width:100%; height:200px; touch-action:none; border:2px dashed var(--rule-2); border-radius:10px; background:#fff; cursor:crosshair; }
.po-pad canvas:focus-visible{ outline:3px solid var(--glass); outline-offset:2px; }
.po-pad .po-when{ margin:0; font-size:.9rem; color:var(--ink-2); }
.po-legalbox{ max-height:14rem; overflow:auto; padding:10px 12px; border:1px solid var(--rule); border-radius:8px; font-size:.86rem; line-height:1.45; background:var(--surface-2); }
.po-legalbox h4{ margin:0 0 4px; font-size:.9rem; }
.po-legalbox p{ margin:0 0 8px; white-space:pre-line; }
.po-ticket{ display:grid; gap:10px; padding:14px; border-radius:12px; border:2px solid var(--glass); background:var(--surface); }
.po-ticket h4{ margin:0; font-size:1.05rem; }
.po-ticket p{ margin:0; }
.po-ticket .po-price{ font-weight:650; }
.po-ticket .po-acts{ gap:8px; }
.po-ticket a.btn{ display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; }
.po-link{ display:grid; gap:8px; }
.po-link input{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.85rem !important; }
/* the paper: the signature, the fingerprint, the right to cancel the fitting and its form as an annex */
.sf-doc .po-signed .po-sigimg{ display:block; width:60mm; height:20mm; object-fit:contain; border-bottom:.3mm solid #1b1f24; margin-bottom:1.5mm; }
.sf-doc .po-signed p{ margin:0; font-size:8pt; line-height:1.4; }
.sf-doc .po-signed .po-k{ color:#4a525c; font-size:7.5pt; }
.sf-doc .po-via{ color:#4a525c; font-style:italic; }
.sf-doc .po-hash{ margin:3mm 0 0; font-size:7pt; color:#1b1f24; line-height:1.5; break-inside:avoid; overflow-wrap:anywhere; }
.sf-doc .po-hash code{ font-family:ui-monospace,Menlo,Consolas,monospace; font-size:7pt; }
.sf-doc .po-wd{ margin:4mm 0 0; padding:2.5mm 3.5mm; border:.3mm solid #9aa3ad; border-radius:1.5mm; font-size:7.8pt; line-height:1.45; color:#1b1f24; break-inside:avoid; }
.sf-doc .po-wd h3,.sf-doc .po-annex h3{ margin:0 0 1.5mm; font-size:8.5pt; }
.sf-doc .po-wd p{ margin:0 0 1.5mm; }
.sf-doc .po-early{ padding-top:1.5mm; border-top:.2mm dashed #9aa3ad; }
.sf-doc .po-annex{ margin-top:8mm; padding-top:6mm; border-top:.3mm dashed #9aa3ad; font-size:8.5pt; line-height:1.8; break-before:page; page-break-before:always; }
.sf-doc .po-annex p{ margin:0; }
@media print{ .po-lock,.po-next{ display:none !important; } }
/* r2945: how the customer signs (the finger or the name typed), the sent quote's lock, the signed paper's mode */
.po-mode{ border:0; margin:0; padding:0; display:grid; gap:0; min-width:0; }
.po-mode legend{ font-weight:600; padding:0; margin:0 0 2px; }
.po-drawbox,.po-typebox{ display:grid; gap:8px; }
.po-drawbox[hidden],.po-typebox[hidden]{ display:none; }
.po-lock-sent{ border-color:#b45309; }
.sf-doc .po-signed .po-smode{ margin-top:1mm; }
.sf-doc .po-signed .po-simple{ color:#4a525c; font-size:7pt; }
/* r2950 (18-11-2026): the deposit of a signed quote (Stripe Connect, Plan Taller) and its receipt */
.po-senal{ display:grid; gap:12px; padding:14px; border-radius:12px; border:1px solid var(--rule-2); background:var(--surface); }
.po-senal[hidden]{ display:none; }
.po-senal h3{ margin:0; font-size:1.08rem; }
.po-senal h4{ margin:4px 0 0; font-size:1rem; }
.po-senal .po-acts .btn{ flex:1 1 100%; }
@media (min-width:560px){ .po-senal .po-acts .btn{ flex:1 1 auto; } }
.po-senal .po-dbasis{ border:0; margin:0; padding:0; display:grid; gap:4px; }
.po-senal .po-dbasis legend{ font-weight:560; margin-bottom:4px; }
.po-senal .po-check{ display:flex; align-items:center; gap:10px; min-height:44px; }
.po-senal .po-check input{ width:22px; height:22px; margin:0; }
.po-senal .po-check label{ display:flex; align-items:center; min-height:44px; flex:1; }
.po-senal .po-dtest{ margin:0; }
.po-senal input[type=text]{ max-width:100%; }
.po-rcpt-view{ border:1px solid var(--rule); border-radius:8px; padding:12px; background:#fff; color:#111; font-size:.9rem; overflow-wrap:anywhere; }
.po-rcpt-doc h2{ margin:6px 0 2px; font-size:1.2rem; }
.po-rcpt-doc p{ margin:6px 0; line-height:1.45; }
.po-rcpt-head{ display:grid; gap:4px; border-bottom:1px solid #bbb; padding-bottom:8px; }
.po-rcpt-t{ width:100%; border-collapse:collapse; margin:8px 0; }
.po-rcpt-t th, .po-rcpt-t td{ text-align:left; vertical-align:top; padding:4px 6px 4px 0; border-bottom:1px solid #e3e3e3; }
.po-rcpt-t th{ font-weight:560; width:45%; }
.po-rcpt-legal{ font-size:.86em; }
.sf-doc .po-dstamp{ margin:3mm 0; padding:2mm 3mm; border:0.4mm solid #0b6b3a; border-radius:1.5mm; font-weight:600; color:#0b6b3a; }
#po-rcpt-print{ display:none; }
@media print{
  body.po-rcpt-on > *:not(#po-rcpt-print){ display:none !important; }
  body.po-rcpt-on #po-rcpt-print{ display:block !important; color:#000; font:10.5pt/1.45 Archivo, Arial, sans-serif; }
}
/* r2960 (18-11-2026): order the glass and the cutting plan, step 4 of «Quote on site» */
.po-ped{ display:grid; gap:12px; padding:14px; border-radius:12px; border:1px solid var(--rule-2); background:var(--surface); }
.po-ped h3{ margin:0; font-size:1.08rem; }
.po-ped > .hint{ margin:0; }
.po-ped .po-acts .btn, .po-ped a.btn{ flex:1 1 100%; display:inline-flex; align-items:center; justify-content:center; min-height:44px; text-decoration:none; text-align:center; }
@media (min-width:560px){ .po-ped .po-acts .btn, .po-ped .po-acts a.btn{ flex:1 1 auto; } }
.po-ped-panel{ display:grid; gap:10px; }
.po-ped-panel[hidden]{ display:none; }
.po-ped-check{ display:flex; align-items:center; gap:10px; min-height:44px; }
.po-ped-check input{ width:22px; height:22px; margin:0; flex:none; }
.po-ped-check label{ display:flex; align-items:center; min-height:44px; flex:1; }
.po-ped-panel > .hint{ margin:0; }
.po-ped-warn{ margin:0; padding:8px 10px; border-left:4px solid var(--pencil-ink, var(--warn)); color:var(--ink); }
.po-ped-doc{ border:1px solid var(--rule); border-radius:8px; padding:12px; background:#fff; color:#111; font-size:.88rem; overflow-x:auto; overflow-wrap:anywhere; }
.po-ped-doc .d-head{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; border-bottom:1px solid #bbb; padding-bottom:6px; }
.po-ped-doc .d-h1{ margin:0; font-size:1.15rem; }
.po-ped-doc dl{ display:grid; grid-template-columns:auto auto; gap:0 8px; margin:4px 0 0; }
.po-ped-doc dd{ margin:0; }
.sf-doc .po-ped-g h3{ margin:10px 0 4px; font-size:1rem; }
.sf-doc .po-ped-g table{ width:100%; border-collapse:collapse; }
.sf-doc .po-ped-g th, .sf-doc .po-ped-g td{ text-align:left; padding:3px 6px 3px 0; border-bottom:1px solid #e3e3e3; vertical-align:top; }
.sf-doc .po-ped-g .n{ text-align:right; white-space:nowrap; }
.sf-doc .po-ped-g tfoot th, .sf-doc .po-ped-g tfoot td{ font-weight:600; border-bottom:0; }
.sf-doc .po-ped-lab{ color:#444; }
.sf-doc .po-ped-tot{ margin:10px 0 4px; }
.sf-doc .po-ped-note{ font-size:.85em; color:#333; margin:4px 0; }
.po-ped-sheet{ border:0; margin:0; padding:0; display:grid; gap:4px; }
.po-ped-sheet legend{ font-weight:560; margin-bottom:4px; }
.po-ped-sheet .sf-row{ display:flex; flex-wrap:wrap; gap:8px; }
.po-ped-sheet .field{ flex:1 1 140px; min-width:0; }
.po-ped-sheet input{ width:100%; min-height:44px; }
.po-cut-list{ display:grid; gap:8px; }
.po-ped-msg.warn{ color:var(--ink); font-weight:600; }
#po-pedprint{ display:none; }
@media print{
  body.po-ped-on > *:not(#po-pedprint){ display:none !important; }
  body.po-ped-on #po-pedprint{ display:block !important; color:#000; font:10.5pt/1.45 Archivo, Arial, sans-serif; }
  body.po-ped-on #po-pedprint .d-head{ display:flex; justify-content:space-between; gap:8mm; border-bottom:0.3mm solid #999; padding-bottom:2mm; }
  body.po-ped-on #po-pedprint dl{ display:grid; grid-template-columns:auto auto; gap:0 3mm; margin:0; }
  body.po-ped-on #po-pedprint dd{ margin:0; }
  body.po-ped-on #po-pedprint .po-ped-g{ break-inside:avoid; }
}

/* r2960: the commercial part of «Quote on site» */
.po-jump{ display:flex; flex-wrap:wrap; gap:4px 12px; margin:12px 0 0; }
.po-jump a{ display:inline-flex; align-items:center; min-height:44px; }
.po-flow{ list-style:none; margin:16px 0 0; padding:0; display:grid; gap:20px; grid-template-columns:1fr; }
@media (min-width:720px){ .po-flow{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (min-width:1100px){ .po-flow{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
.po-flow figure{ margin:0; display:grid; gap:10px; }
.po-flow img{ width:100%; max-width:320px; height:auto; justify-self:center; }
.po-flow figcaption{ line-height:1.5; }
.po-plans{ display:grid; gap:16px; grid-template-columns:1fr; margin:12px 0; }
@media (min-width:720px){ .po-plans{ grid-template-columns:repeat(2, minmax(0, 1fr)); } }
.po-plan{ border:1px solid var(--rule-2); border-radius:12px; padding:14px 16px; background:var(--surface); }
.po-plan h3{ margin:0 0 6px; }
.po-plan ul{ margin:0 0 8px; padding-left:20px; }
.po-plan-t{ border:2px solid var(--glass); }
.po-soon{ font-weight:560; }
