/* pricing-proposal-generator — style blocks lifted from the testrightacademy.com original.
   Externalised because style-src-elem is 'self' on this vhost. */


    /* ===== Pricing Proposal Generator — page-specific ===== */
    .csg-toolbar {
      position: sticky; top: 70px; z-index: 50;
      background: var(--primary); color: #fff;
      display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 10px 24px; flex-wrap: wrap;
    }
    .csg-toolbar .tb-label { font-size: 0.85rem; color: #cbd5e1; max-width: 560px; line-height: 1.4; }
    .csg-toolbar .tb-label strong { color: #fff; }
    .csg-toolbar .tb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .csg-btn {
      display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
      font-family: inherit; font-size: 0.85rem; font-weight: 600;
      padding: 9px 15px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,0.35);
      background: transparent; color: #fff; transition: 0.2s;
    }
    .csg-btn:hover { background: rgba(255,255,255,0.12); }
    .csg-btn.primary { background: #b3271e; border-color: #b3271e; }
    .csg-btn.primary:hover { background: #d94d3f; }

    .csg-info { background: #ecfdf5; border-bottom: 1px solid #a7f3d0; color: #065f46;
      font-size: 0.85rem; padding: 10px 24px; text-align: center; line-height: 1.5; }
    .csg-info i { margin-right: 6px; }

    .csg-wrap { max-width: 1500px; margin: 0 auto; padding: 24px;
      display: grid; grid-template-columns: minmax(340px, 1fr) auto; gap: 26px; align-items: start; }

    /* ---- Editor ---- */
    .csg-editor { min-width: 0; }
    .csg-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
      box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
    .csg-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 11px;
      padding: 14px 18px; font-weight: 700; color: var(--primary); font-size: 0.98rem; user-select: none; }
    .csg-card > summary::-webkit-details-marker { display: none; }
    .csg-card > summary .ci { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 6px;
      background: var(--light-bg); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem; }
    .csg-card > summary .chev { margin-left: auto; color: var(--text-muted); transition: 0.2s; }
    .csg-card[open] > summary .chev { transform: rotate(90deg); }
    .csg-card .body { padding: 4px 18px 18px; }
    .csg-field { margin-bottom: 13px; }
    .csg-field:last-child { margin-bottom: 0; }
    .csg-field label { display: block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
      letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 5px; }
    .csg-field input[type=text], .csg-field input[type=email], .csg-field input[type=url],
    .csg-field input[type=tel], .csg-field input[type=number], .csg-field input[type=date],
    .csg-field textarea, .csg-field select {
      width: 100%; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: 6px;
      padding: 9px 12px; font-family: inherit; font-size: 0.92rem; color: var(--text); background: #fff; }
    .csg-field input:focus, .csg-field textarea:focus, .csg-field select:focus { outline: none; border-color: var(--accent); }
    .csg-field textarea { resize: vertical; min-height: 60px; line-height: 1.5; }
    .csg-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 5px; line-height: 1.45; font-style: italic; }
    .csg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .swatches { display: flex; gap: 6px; margin-top: 7px; }
    .swatches span { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
    .seg { display: inline-flex; border: 1.5px solid var(--border); border-radius: 7px; overflow: hidden; }
    .seg button { border: none; background: #fff; padding: 8px 16px; font-size: 0.85rem; font-weight: 600; cursor: pointer; color: var(--text-muted); }
    .seg button.on { background: var(--accent); color: #fff; }
    .logo-thumb { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
    .logo-thumb img { max-height: 44px; max-width: 130px; border: 1px solid var(--border); border-radius: 4px; padding: 3px; background: #fff; }
    .csg-mini { padding: 8px 13px; font-size: 0.82rem; border: 1.5px solid var(--accent); background: var(--accent);
      color: #fff; border-radius: 6px; cursor: pointer; font-weight: 600; white-space: nowrap; }
    .csg-mini.ghost { background: #fff; color: var(--accent); }

    /* state assistant */
    .sa-banner { background: var(--light-bg); border: 1px solid var(--border); border-radius: 8px;
      padding: 11px 14px; font-size: 0.86rem; line-height: 1.5; margin-bottom: 12px; }
    .sa-banner b { color: var(--primary); }
    .sa-idx-up { color: #b3271e; font-weight: 700; }
    .sa-idx-down { color: #0d7a5f; font-weight: 700; }
    .sa-list { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
    .sa-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 0.84rem; border-bottom: 1px solid var(--border); background: #fff; }
    .sa-row:last-child { border-bottom: none; }
    .sa-row:nth-child(even) { background: #fafbfc; }
    .sa-row .sname { flex: 1; min-width: 0; color: var(--text); }
    .sa-row .sname small { display: block; color: var(--text-muted); font-size: 0.86em; }
    .sa-row .sprice { font-weight: 800; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
    .sa-row .srange { color: var(--text-muted); font-size: 0.8em; white-space: nowrap; }
    .sa-add { flex: 0 0 auto; width: 30px; height: 30px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent);
      border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 700; }
    .sa-add:hover { background: var(--accent); color: #fff; }
    .sa-add.added { border-color: #0d7a5f; color: #0d7a5f; pointer-events: none; }

    /* service rows */
    .item-head, .item-row { display: grid; grid-template-columns: 1fr 120px 92px 34px; gap: 7px; align-items: center; }
    .item-head { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
      color: var(--text-muted); margin-bottom: 6px; }
    .item-row { margin-bottom: 7px; }
    .item-row input { box-sizing: border-box; width: 100%; border: 1.5px solid var(--border); border-radius: 6px;
      padding: 8px 10px; font-family: inherit; font-size: 0.88rem; color: var(--text); }
    .item-row input:focus { outline: none; border-color: var(--accent); }
    .csg-del { flex: 0 0 auto; width: 34px; height: 34px; border: 1.5px solid var(--border); background: #fff;
      color: #b3271e; border-radius: 6px; cursor: pointer; font-size: 0.9rem; }
    .csg-del:hover { border-color: #b3271e; background: #fef2f2; }

    /* package editor blocks */
    .pkg-ed { border: 1.5px dashed var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
    .pkg-ed .pkg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
    .pkg-ed .pkg-head b { color: var(--primary); font-size: 0.85rem; }
    .pkg-ed .pkg-head label { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; color: var(--text-muted); margin-left: auto; cursor: pointer; }

    /* ---- Preview ---- */
    .csg-preview { position: sticky; top: 132px; width: 816px; }
    .csg-scaler { transform-origin: top left; }
    .page-meter { margin-top: 12px; padding: 9px 14px; border-radius: 7px; font-size: 0.82rem; font-weight: 600; text-align: center; }
    .page-meter.ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
    .page-meter.warn { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
    .page-meter.over { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

    /* ===== The proposal sheet (Letter) ===== */
    .sheet { --accent: #0d2e4e; width: 8.5in; min-height: 11in; box-sizing: border-box;
      background: #fff; color: #1f2937; padding: 0.55in 0.6in 0.5in; box-shadow: 0 6px 30px rgba(13,46,78,0.18);
      font-family: "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 10pt; display: flex; flex-direction: column;
      border-top: 6px solid var(--accent); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sheet * { box-sizing: border-box; }
    .pp-fs { font-size: var(--fs, 10pt); flex: 1; display: flex; flex-direction: column; }
    .st-ghost { color: #b6c0cc !important; }

    .pp-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 16px; }
    .pp-biz { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
    .pp-logo { max-height: 0.8in; max-width: 2.1in; flex: 0 0 auto; }
    .pp-bizname { font-size: 1.4em; font-weight: 800; color: var(--accent); line-height: 1.15; }
    .pp-bizdet { font-size: 0.82em; color: #6b7280; line-height: 1.55; margin-top: 5px; white-space: pre-line; }
    .pp-badge { text-align: right; flex: 0 0 auto; }
    .pp-title { font-size: 1.5em; font-weight: 700; letter-spacing: 0.24em; margin-right: -0.24em; color: #334155; line-height: 1.15; }
    .pp-num { font-size: 0.86em; color: #6b7280; font-weight: 600; letter-spacing: 0.04em; margin-top: 6px; }
    .pp-rule { height: 1px; background: #e2e8f0; margin: 0 0 16px; }

    .pp-mid { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
    .pp-h { font-size: 0.72em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: #94a3b8; margin-bottom: 5px; }
    .pp-for .who { font-size: 1.05em; font-weight: 700; color: #1f2937; }
    .pp-for .det { font-size: 0.86em; color: #4b5563; line-height: 1.5; white-space: pre-line; margin-top: 2px; }
    .pp-meta table { border-collapse: collapse; }
    .pp-meta td { font-size: 0.86em; padding: 3px 0 3px 26px; text-align: right; color: #1f2937; font-variant-numeric: tabular-nums; }
    .pp-meta td.k { font-weight: 700; color: #94a3b8; text-transform: uppercase; font-size: 0.7em; letter-spacing: 0.08em; }
    .pp-meta tr.hot td { font-weight: 800; color: var(--accent); }
    .pp-meta tr.hot td.k { color: var(--accent); }

    .pp-intro { font-size: 0.9em; color: #374151; line-height: 1.55; margin: 0 0 16px; white-space: pre-line; }

    .pp-sec-h { font-size: 0.78em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em;
      color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin: 0 0 10px; }

    /* packages */
    .pp-pkgs { display: flex; gap: 12px; margin-bottom: 18px; align-items: stretch; }
    .pp-pkg { flex: 1; border: 1.5px solid #e2e8f0; border-radius: 8px; padding: 12px 13px 13px; position: relative; display: flex; flex-direction: column; }
    .pp-pkg .ribbon { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff;
      font-size: 0.62em; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 10px; border-radius: 50px; white-space: nowrap; }
    .pp-pkg.feat { border-color: var(--accent); border-width: 2px; }
    .pp-pkg .pname { font-size: 0.92em; font-weight: 800; color: var(--accent); margin-bottom: 2px; }
    .pp-pkg .pprice { font-size: 1.45em; font-weight: 800; color: #1f2937; line-height: 1.15; font-variant-numeric: tabular-nums; }
    .pp-pkg .punit { font-size: 0.74em; color: #6b7280; margin-bottom: 8px; }
    .pp-pkg ul { list-style: none; margin: 0; padding: 0; }
    .pp-pkg li { font-size: 0.78em; line-height: 1.35; padding-left: 13px; position: relative; margin-bottom: 3px; color: #374151; }
    .pp-pkg li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900;
      position: absolute; left: 0; top: 1px; color: var(--accent); font-size: 0.72em; }

    /* services table */
    .pp-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
    .pp-table th { color: var(--accent); font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.08em;
      font-weight: 800; padding: 0 10px 6px; text-align: left; border-bottom: 2px solid var(--accent); }
    .pp-table th.r, .pp-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
    .pp-table td { font-size: 0.88em; padding: 6px 10px; border-bottom: 1px solid #eef2f6; color: #374151; vertical-align: top; }
    .pp-table th:first-child, .pp-table td:first-child { padding-left: 2px; }
    .pp-table th:last-child, .pp-table td:last-child { padding-right: 2px; }
    .pp-table td.unit { color: #6b7280; font-size: 0.82em; white-space: nowrap; }
    .pp-table td.price-col { font-weight: 700; color: #1f2937; white-space: nowrap; }

    .pp-terms { font-size: 0.8em; color: #4b5563; line-height: 1.5; margin: 0 0 16px; white-space: pre-line; }

    /* acceptance */
    .pp-accept { display: flex; gap: 30px; margin-bottom: 4px; }
    .pp-accept .col { flex: 1; }
    .pp-accept .line { border-bottom: 1.5px solid #94a3b8; height: 26px; margin-bottom: 4px; }
    .pp-accept .cap { font-size: 0.72em; color: #6b7280; display: flex; justify-content: space-between; }

    .pp-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #e2e8f0;
      display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.78em; color: #94a3b8; }
    .pp-foot .thanks { font-weight: 700; color: var(--accent); }

    /* Modern template */
    .sheet.tpl-modern { border-top: none; }
    .sheet.tpl-modern .pp-top { background: var(--accent); margin: -0.55in -0.6in 0; padding: 0.32in 0.6in; align-items: center; }
    .sheet.tpl-modern .pp-bizname, .sheet.tpl-modern .pp-title { color: #fff; }
    .sheet.tpl-modern .pp-bizdet, .sheet.tpl-modern .pp-num { color: rgba(255,255,255,0.78); }
    .sheet.tpl-modern .pp-logo { background: #fff; border-radius: 6px; padding: 5px; }
    .sheet.tpl-modern .pp-rule { display: none; }
    .sheet.tpl-modern .pp-mid { margin-top: 20px; }
    .sheet.tpl-modern .pp-table th, .sheet.tpl-modern .pp-sec-h { border-bottom-color: var(--accent); }

    /* ===== Print ===== */
    @page { size: letter; margin: 0; }
    @media print {
      .nav, .csg-toolbar, .csg-info, .csg-editor, .page-meter, .page-hero, footer, .fb-band, .csg-foot-note, .csg-mobile-bar, #docStage, .warn-wrap { display: none !important; }
      body { padding: 0 !important; background: #fff !important; }
      .csg-wrap { display: block !important; padding: 0 !important; max-width: none !important; }
      .csg-preview { position: static !important; width: auto !important; top: 0 !important; }
      .csg-scaler { transform: none !important; height: auto !important; }
      .sheet { box-shadow: none !important; margin: 0 !important; width: 8.5in !important; min-height: 0 !important; }
      .st-ghost { display: none !important; }
    }

    /* ===== Responsive ===== */
    @media (max-width: 1180px) {
      .csg-wrap { grid-template-columns: 1fr; }
      .csg-preview { position: static; width: 100%; overflow: hidden; }
    }
    @media (max-width: 700px) {
      .csg-toolbar { top: 60px; }
      .csg-preview { top: 0; }
      .csg-grid2 { grid-template-columns: 1fr; }
      .csg-mobile-bar { display: flex !important; }
      .item-head { display: none; }
      .item-row { grid-template-columns: 1fr 80px 34px; }
      .item-row input[data-k="unit"] { display: none; }
      .sa-row .srange { display: none; }
    }
    .csg-mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
      background: var(--primary); padding: 10px 14px; gap: 10px; box-shadow: 0 -4px 18px rgba(0,0,0,0.25); }
    .csg-mobile-bar .csg-btn { flex: 1; justify-content: center; }
    /* Keep the site's floating "Report an issue" help button clear of the fixed
       mobile action bar (it defaults to bottom-left on small screens). */
    @media (max-width: 700px) { .trafb-btn { bottom: 78px !important; left: auto !important; right: 14px !important; } }
    .toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0d2e4e; color: #fff;
      padding: 11px 20px; border-radius: 8px; font-size: 0.9rem; z-index: 200; opacity: 0; transition: 0.3s; pointer-events: none; }
    .toast.show { opacity: 1; }
    #pdfOverlay { position: fixed; inset: 0; z-index: 300; background: rgba(13,46,78,0.9); color: #fff;
      display: none; flex-direction: column; align-items: center; justify-content: center; gap: 16px; font-size: 1rem; font-weight: 600; }
    #pdfOverlay.show { display: flex; }
    .pdf-spin { width: 44px; height: 44px; border: 4px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: pdfspin 0.8s linear infinite; }
    @keyframes pdfspin { to { transform: rotate(360deg); } }
    .pdf-capturing .st-ghost { display: none !important; }
    .pdf-capturing .sheet { box-shadow: none !important; }

    /* ===== Advanced bid mode ===== */
    .mode-seg { display: inline-flex; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 7px; overflow: hidden; margin-right: 4px; }
    .mode-seg button { border: none; background: transparent; color: #cbd5e1; padding: 8px 14px; font-size: 0.82rem; font-weight: 700; cursor: pointer; font-family: inherit; }
    .mode-seg button.on { background: #b3271e; color: #fff; }
    .adv-only { display: none !important; }
    body.mode-advanced .adv-only { display: block !important; }
    body.mode-advanced .adv-only.inl { display: inline-flex !important; }

    .warn-wrap { max-width: 1500px; margin: 0 auto; padding: 0 24px; }
    .warn-wrap .wb-inner { margin-top: 14px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; gap: 1px; }
    .wb-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 15px; font-size: 0.86rem; line-height: 1.45; }
    .wb-item.err  { background: #fef2f2; color: #991b1b; border-left: 4px solid #b3271e; }
    .wb-item.warn { background: #fffbeb; color: #92400e; border-left: 4px solid #d69e2e; }
    .wb-item.ok   { background: #ecfdf5; color: #065f46; border-left: 4px solid #0d7a5f; }
    .wb-item i { margin-top: 2px; flex: 0 0 auto; }

    /* cost calculator rows */
    .cc-head, .cc-row { display: grid; grid-template-columns: 1fr 60px 84px 84px 30px; gap: 6px; align-items: center; }
    .cc-head { font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 5px; }
    .cc-head .r, .cc-row .amt { text-align: right; }
    .cc-row { margin-bottom: 6px; }
    .cc-row input { box-sizing: border-box; width: 100%; border: 1.5px solid var(--border); border-radius: 6px; padding: 7px 9px; font-family: inherit; font-size: 0.85rem; color: var(--text); }
    .cc-row input:focus { outline: none; border-color: var(--accent); }
    .cc-row .amt { font-weight: 700; color: var(--primary); font-size: 0.84rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .cat-block { border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; margin-bottom: 11px; }
    .cat-block > .cat-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); font-size: 0.86rem; margin-bottom: 9px; }
    .cat-block > .cat-title .ct-tot { margin-left: auto; font-variant-numeric: tabular-nums; }
    .cc-add { padding: 6px 11px; font-size: 0.78rem; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); border-radius: 6px; cursor: pointer; font-weight: 600; }
    .cc-add:hover { background: var(--accent); color: #fff; }

    .calc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 4px 0 12px; }
    .calc-stat { background: var(--light-bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
    .calc-stat .l { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 800; }
    .calc-stat .v { font-size: 1.12rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
    .calc-stat.good .v { color: #0d7a5f; } .calc-stat.bad .v { color: #b3271e; }

    .price-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 4px 0 8px; }
    .price-opt { border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 11px; cursor: pointer; transition: 0.15s; }
    .price-opt:hover { border-color: var(--accent); }
    .price-opt.sel { border-color: var(--accent); background: var(--light-bg); box-shadow: inset 0 0 0 1px var(--accent); }
    .price-opt .pl { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); }
    .price-opt .pv { font-size: 1.16rem; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
    .price-opt .pd { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }

    .inc-toggles { display: flex; flex-direction: column; gap: 7px; }
    .inc-toggles label { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--text); cursor: pointer; }
    .inc-toggles label .lock { margin-left: auto; font-size: 0.7rem; color: var(--text-muted); font-style: italic; }

    .ck-row { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
    .ck-row input[type=checkbox] { width: 17px; height: 17px; flex: 0 0 auto; }
    .ck-row input[type=text] { flex: 1; border: 1.5px solid var(--border); border-radius: 6px; padding: 7px 9px; font-family: inherit; font-size: 0.86rem; }

    .yr-row { display: grid; grid-template-columns: 1fr 110px 30px; gap: 7px; align-items: center; margin-bottom: 6px; }
    .yr-row input { box-sizing: border-box; width: 100%; border: 1.5px solid var(--border); border-radius: 6px; padding: 7px 9px; font-family: inherit; font-size: 0.86rem; }
    .comp-row { display: grid; grid-template-columns: 1fr 96px 1fr 30px; gap: 7px; align-items: center; margin-bottom: 6px; }
    .comp-row input { box-sizing: border-box; width: 100%; border: 1.5px solid var(--border); border-radius: 6px; padding: 7px 9px; font-family: inherit; font-size: 0.85rem; }

    /* off-screen stage for worksheet / checklist PDF capture */
    #docStage { position: fixed; left: -100000px; top: 0; width: 8.5in; }
    .sheet.doc-auto { min-height: 0; height: auto; box-shadow: none; }
    .ws-sec-h { font-size: 0.78em; font-weight: 800; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 4px; margin: 16px 0 9px; }
    .ws-sec-h:first-child { margin-top: 0; }
    .ws-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
    .ws-table th { text-align: left; font-size: 0.7em; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; font-weight: 800; padding: 0 8px 4px; border-bottom: 1px solid #e2e8f0; }
    .ws-table th.r, .ws-table td.r { text-align: right; font-variant-numeric: tabular-nums; }
    .ws-table td { font-size: 0.84em; padding: 4px 8px; border-bottom: 1px solid #eef2f6; color: #374151; }
    .ws-table tr.cat td { font-weight: 800; color: var(--accent); background: #f6f8fb; }
    .ws-table tr.sub td { font-weight: 700; color: #1f2937; }
    .ws-table tr.tot td { font-weight: 800; color: #1f2937; border-top: 2px solid #cbd5e1; font-size: 0.92em; }
    .ws-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 6px 0 12px; }
    .ws-stat { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 10px; }
    .ws-stat .l { font-size: 0.6em; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; font-weight: 800; }
    .ws-stat .v { font-size: 1.02em; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
    .ws-stat.bad .v { color: #b3271e; } .ws-stat.good .v { color: #0d7a5f; }
    .ws-note { font-size: 0.8em; color: #6b7280; line-height: 1.5; margin: 4px 0 10px; }
    .ck-list { list-style: none; padding: 0; margin: 0 0 14px; }
    .ck-list li { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #eef2f6; font-size: 0.9em; color: #374151; }
    .ck-box { width: 15px; height: 15px; border: 1.5px solid #94a3b8; border-radius: 3px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; font-size: 0.66em; color: #0d7a5f; font-weight: 900; }
    .ck-box.on { border-color: #0d7a5f; background: #ecfdf5; }

    /* advanced proposal sheet blocks */
    .pp-bidinfo { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-bottom: 14px; }
    .pp-bidinfo .bi { font-size: 0.84em; color: #374151; }
    .pp-bidinfo .bi b { color: #94a3b8; text-transform: uppercase; font-size: 0.82em; letter-spacing: 0.05em; font-weight: 800; }
    .pp-narr { font-size: 0.86em; color: #374151; line-height: 1.55; margin: 0 0 14px; white-space: pre-line; }
    .pp-yr-table td.r, .pp-yr-table th.r { text-align: right; }
  