/* v897: add/replace-unit styles live in css/424; big message box no longer pushes the buttons off-screen.
/* v896: tabs + pinned message box (units | client). */
/* v895: invalid font shorthands ending in the word inherit replaced by longhands (the declarations were being dropped, so inputs fell back to the browser font). */
/* v894: "PDF" button in the selected-units bar + the "Options as PDF" window (js/420-options-pdf.js) + the in-app PDF preview. Roll back: remove this link + js/420. */
.sab2-btn.bhopdf-btn{border-color:#cea577;color:#f0d9b8}
.sab2-btn.bhopdf-btn:hover{background:rgba(206,165,119,.2);border-color:#e3c08a;color:#fff}
.bhopdf-sw{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid rgba(22,45,76,.14);border-radius:12px;cursor:pointer}
.bhopdf-sw input{position:absolute;opacity:0;width:1px;height:1px}
.bhopdf-sw-ui{flex:none;position:relative;width:42px;height:24px;border-radius:999px;background:rgba(22,45,76,.22);transition:background .16s}
.bhopdf-sw-ui::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .16s}
.bhopdf-sw input:checked+.bhopdf-sw-ui{background:#162d4c}
.bhopdf-sw input:checked+.bhopdf-sw-ui::after{transform:translateX(18px)}
.bhopdf-sw input:focus-visible+.bhopdf-sw-ui{outline:2px solid #cea577;outline-offset:2px}
.bhopdf-sw-tx{display:flex;flex-direction:column;min-width:0}.bhopdf-sw-tx b{font-size:14px;font-weight:800}.bhopdf-sw-tx small{font-size:11.5px;color:#6b7a8c}
.bhopdf-busy .bhopdf-box{cursor:progress}
[data-theme="dark"] .bhopdf-sw{border-color:rgba(255,255,255,.14)}
[data-theme="dark"] .bhopdf-sw-ui{background:rgba(255,255,255,.28)}
[data-theme="dark"] .bhopdf-sw input:checked+.bhopdf-sw-ui{background:#cea577}
@media(prefers-reduced-motion:reduce){.bhopdf-sw-ui,.bhopdf-sw-ui::after{transition:none}}

html.bhopdf-lock,html.bhopdf-lock body{overflow:hidden}
.bhopdf-back{position:fixed;inset:0;z-index:2600;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(8,18,32,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.bhopdf-box{display:flex;flex-direction:column;width:min(520px,100%);max-height:min(92vh,880px);max-height:min(92dvh,880px);border-radius:18px;background:var(--surface,#fff);color:var(--navy-900,#0b2038);box-shadow:0 24px 70px -12px rgba(8,18,32,.55);overflow:hidden}
.bhopdf-box header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px 12px;border-bottom:1px solid rgba(22,45,76,.1)}
.bhopdf-box h3{margin:0;font-family:inherit;font-weight:800;font-size:17px;line-height:1.2}
.bhopdf-box header small{display:block;margin-top:3px;font-size:12px;font-weight:600;color:#6b7a8c}
.bhopdf-x{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:rgba(22,45,76,.07);color:inherit;font-size:22px;line-height:1;cursor:pointer}
.bhopdf-x:hover{background:rgba(22,45,76,.14)}
.bhopdf-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 18px 6px;display:flex;flex-direction:column;gap:13px}
.bhopdf-seg-row{display:grid;grid-template-columns:1fr 1.5fr;gap:12px}
.bhopdf-fld{display:flex;flex-direction:column;gap:5px;min-width:0}
.bhopdf-fld>label{display:flex;align-items:center;gap:6px;font-family:inherit;font-weight:800;font-size:10.5px;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:#6b7a8c}
.bhopdf-fld>label em{font-style:normal;font-weight:600;letter-spacing:0;text-transform:none;color:#98a4b3}
.bhopdf-fld small{font-size:11.5px;line-height:1.35;color:#6b7a8c}
.bhopdf-fld small.bad,.bhopdf-warn{color:#b3541e}
.bhopdf-fld input,.bhopdf-fld textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid rgba(22,45,76,.2);border-radius:10px;background:var(--surface,#fff);color:inherit;font-family:inherit;font-weight:600;font-size:15px;line-height:1.35;outline:0}
.bhopdf-fld textarea{resize:vertical;min-height:150px;font-weight:500;font-size:13.5px;line-height:1.5}
.bhopdf-fld input:focus,.bhopdf-fld textarea:focus{border-color:#cea577;box-shadow:0 0 0 3px rgba(206,165,119,.28)}
.bhopdf-seg{display:flex;gap:4px;padding:3px;border-radius:11px;background:rgba(22,45,76,.07)}
.bhopdf-seg button{flex:1;min-height:40px;padding:0 8px;border:0;border-radius:9px;background:transparent;color:inherit;font-family:inherit;font-weight:700;font-size:14px;line-height:1;cursor:pointer;transition:background .16s,color .16s,box-shadow .16s}
.bhopdf-seg button.on{background:#162d4c;color:#fff;box-shadow:0 2px 8px rgba(22,45,76,.3)}
.bhopdf-units{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.bhopdf-u{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid rgba(22,45,76,.12);border-radius:10px}
.bhopdf-u.over{opacity:.5}
.bhopdf-un{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#cea577;color:#162d4c;font-family:inherit;font-weight:800;font-size:11.5px;line-height:1}
.bhopdf-ut{flex:1;min-width:0;display:flex;flex-direction:column}
.bhopdf-ut b{font-size:13px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bhopdf-ut small{font-size:11.5px}
.bhopdf-ux{flex:none;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:#6b7a8c;cursor:pointer}
.bhopdf-ux:hover{background:rgba(179,84,30,.12);color:#b3541e}
.bhopdf-reset{margin-left:auto;padding:3px 9px;border:1px solid rgba(22,45,76,.2);border-radius:999px;background:transparent;color:inherit;font-family:inherit;font-weight:700;font-size:11px;line-height:1.2;letter-spacing:0;text-transform:none;cursor:pointer}
.bhopdf-reset[hidden]{display:none}
.bhopdf-foot{display:flex;gap:10px;padding:12px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid rgba(22,45,76,.1)}
.bhopdf-copy,.bhopdf-go,.bhopdf-open{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;border-radius:12px;font-family:inherit;font-weight:800;font-size:14px;line-height:1;cursor:pointer}
.bhopdf-copy{flex:none;padding:0 16px;border:1px solid rgba(22,45,76,.22);background:transparent;color:inherit}
.bhopdf-go{flex:1;border:0;background:#162d4c;color:#fff;box-shadow:0 6px 16px -6px rgba(22,45,76,.7)}
.bhopdf-open{flex:1;border:1px solid #cea577;background:transparent;color:inherit}
.bhopdf-open:hover{background:rgba(206,165,119,.16)}
.bhopdf-go i,.bhopdf-open i{font-size:16px}
.bhopdf-go:disabled{background:rgba(22,45,76,.12);color:#8a97a6;box-shadow:none;cursor:not-allowed}
.bhopdf-go:not(:disabled):hover{background:#1d3a62}
.bhopdf-open:disabled{opacity:.55;cursor:wait}
.bhopdf-box button:focus-visible{outline:2px solid #cea577;outline-offset:2px}
[data-theme="dark"] .bhopdf-box{background:#13253d;color:#eaeef3}
[data-theme="dark"] .bhopdf-box header,[data-theme="dark"] .bhopdf-foot{border-color:rgba(255,255,255,.12)}
[data-theme="dark"] .bhopdf-fld input,[data-theme="dark"] .bhopdf-fld textarea{background:#0e1d31;border-color:rgba(255,255,255,.2)}
[data-theme="dark"] .bhopdf-seg{background:rgba(255,255,255,.1)}
[data-theme="dark"] .bhopdf-seg button.on{background:#cea577;color:#13253d}
[data-theme="dark"] .bhopdf-u{border-color:rgba(255,255,255,.14)}
[data-theme="dark"] .bhopdf-x{background:rgba(255,255,255,.1)}
@media(max-width:560px){
  .bhopdf-back{align-items:flex-end;padding:0}
  .bhopdf-box{width:100%;max-height:94vh;max-height:94dvh;border-radius:18px 18px 0 0}
  .bhopdf-fld input,.bhopdf-fld textarea{font-size:16px}   /* no zoom-on-focus on iPhone */
  .bhopdf-seg-row{grid-template-columns:1fr 1.3fr;gap:10px}
}
@media(prefers-reduced-motion:reduce){.bhopdf-seg button{transition:none}}

@media(max-width:560px){.bhopdf-foot{gap:8px;padding-left:12px;padding-right:12px}.bhopdf-copy span{display:none}.bhopdf-copy{padding:0 14px}}

/* v896: tabs + pinned message box (phone-first). Two tabs, the message and the buttons stay at the bottom. */
.bhopdf-box header{align-items:center;padding:14px 16px 10px;border-bottom:0}
.bhopdf-box h3{font-size:18px}
.bhopdf-tabs{flex:none;display:flex;padding:0 16px;border-bottom:1px solid rgba(22,45,76,.1)}
.bhopdf-tabs button{flex:1;position:relative;display:inline-flex;align-items:center;justify-content:center;gap:7px;height:46px;padding:0 8px;border:0;background:transparent;color:#6b7a8c;font-family:inherit;font-weight:700;font-size:14.5px;line-height:1;cursor:pointer}
.bhopdf-tabs button.on{color:#162d4c}
.bhopdf-tabs button.on::after{content:"";position:absolute;left:12%;right:12%;bottom:-1px;height:3px;border-radius:3px 3px 0 0;background:#cea577}
.bhopdf-tabs button:focus-visible{outline:2px solid #cea577;outline-offset:-3px;border-radius:8px}
.bhopdf-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#cea577;color:#162d4c;font-size:11.5px;font-weight:800;line-height:1}
.bhopdf-dot{width:8px;height:8px;border-radius:50%;background:#b3541e}
.bhopdf-dot[hidden]{display:none}
.bhopdf-opt{font-style:normal;font-weight:600;font-size:11.5px;color:#98a4b3}
.bhopdf-body{padding:14px 16px;gap:0;min-height:min(310px,36vh);min-height:min(310px,36dvh)}
.bhopdf-pane{display:flex;flex-direction:column;gap:13px}
.bhopdf-pane[hidden]{display:none}
.bhopdf-dock{flex:none;display:flex;flex-direction:column;gap:6px;padding:10px 16px 8px;border-top:1px solid rgba(22,45,76,.1);background:rgba(22,45,76,.03)}
.bhopdf-dock-h{display:flex;align-items:center;gap:8px;min-height:30px}
.bhopdf-dock-h label{margin-right:auto;font-family:inherit;font-weight:800;font-size:10.5px;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:#6b7a8c}
.bhopdf-dock-h label em{font-style:normal;font-weight:600;letter-spacing:0;text-transform:none;color:#98a4b3}
.bhopdf-dock-h .bhopdf-reset{margin-left:0}
.bhopdf-grow{flex:none;width:30px;height:30px;border:1px solid rgba(22,45,76,.2);border-radius:50%;background:transparent;color:inherit;font-size:12px;cursor:pointer}
.bhopdf-grow:hover{background:rgba(22,45,76,.08)}
.bhopdf-dock textarea{display:block;width:100%;box-sizing:border-box;height:76px;padding:9px 12px;border:1px solid rgba(22,45,76,.2);border-radius:10px;background:var(--surface,#fff);color:inherit;font-family:inherit;font-weight:500;font-size:13.5px;line-height:1.45;resize:none;outline:0}
.bhopdf-dock.big textarea{height:min(32vh,280px);height:min(32dvh,280px)}
.bhopdf-dock textarea:focus{border-color:#cea577;box-shadow:0 0 0 3px rgba(206,165,119,.28)}
.bhopdf-dock small{font-size:11.5px;line-height:1.35;color:#b3541e}
.bhopdf-dock small:empty{display:none}
.bhopdf-foot{border-top:0;padding-top:6px}
.bhopdf-box:has(.bhopdf-dock.big) .bhopdf-body{min-height:0}
[data-theme="dark"] .bhopdf-tabs,[data-theme="dark"] .bhopdf-dock{border-color:rgba(255,255,255,.12)}
[data-theme="dark"] .bhopdf-tabs button.on{color:#fff}
[data-theme="dark"] .bhopdf-dock{background:rgba(255,255,255,.04)}
[data-theme="dark"] .bhopdf-dock textarea{background:#0e1d31;border-color:rgba(255,255,255,.2)}
[data-theme="dark"] .bhopdf-grow{border-color:rgba(255,255,255,.22)}
@media(max-width:560px){
  .bhopdf-dock textarea{font-size:16px;height:88px}
  .bhopdf-box.kb .bhopdf-dock,.bhopdf-box:has(.bhopdf-pane.picking) .bhopdf-dock{display:none}   /* while typing a name/number the keyboard needs the room */
  .bhopdf-box.kb .bhopdf-body,.bhopdf-box:has(.bhopdf-pane.picking) .bhopdf-body{min-height:0}
}

/* in-app PDF preview (js/420-options-pdf-preview.js) */
.pdfp-backdrop{position:fixed;inset:0;z-index:2700;display:grid;place-items:center;padding:14px;background:rgba(15,32,54,.72);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.pdfp-modal{display:flex;flex-direction:column;width:min(1120px,100%);height:min(92vh,860px);height:min(92dvh,860px);background:#fff;border:1px solid rgba(206,165,119,.45);border-radius:16px;box-shadow:0 18px 48px rgba(15,32,54,.45);overflow:hidden}
.pdfp-modal>header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;background:linear-gradient(135deg,#162d4c,#0f2036);border-bottom:3px solid #cea577}
.pdfp-ti{display:grid;gap:2px;min-width:0}.pdfp-ti b{color:#fff;font-family:inherit;font-weight:800;font-size:15px;line-height:1.2;letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pdfp-ti small{color:#cea577;font-family:inherit;font-weight:600;font-size:11px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pdfp-acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pdfp-b{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid #cea577;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-family:inherit;font-weight:700;font-size:13px;line-height:1;text-decoration:none;cursor:pointer;white-space:nowrap}
.pdfp-b:hover{background:rgba(255,255,255,.22)}.pdfp-b:focus-visible,.pdfp-big:focus-visible{outline:2px solid #cea577;outline-offset:2px}
.pdfp-share{background:#cea577;color:#162d4c}.pdfp-share:hover{background:#cea577;filter:brightness(1.06)}
.pdfp-x{border-color:rgba(255,255,255,.55);background:transparent}
.pdfp-i{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.pdfp-body{flex:1;min-height:0;background:#eef1f5}.pdfp-frame{display:block;width:100%;height:100%;border:0}
.pdfp-card{height:100%;display:grid;place-content:center;justify-items:center;gap:10px;padding:24px;text-align:center;color:#162d4c}
.pdfp-card>.pdfp-i{width:44px;height:44px;color:#cea577}.pdfp-card b{font-family:inherit;font-weight:800;font-size:18px;line-height:1.2}.pdfp-card p{margin:0;color:#5a6c86;font-size:13px}
.pdfp-big{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 28px;border-radius:999px;background:#cea577;color:#162d4c;font-family:inherit;font-weight:800;font-size:15px;line-height:1;text-decoration:none}
@media(max-width:560px){.pdfp-backdrop{padding:6px}.pdfp-modal{height:94vh;height:94dvh;border-radius:14px}.pdfp-modal>header{padding:10px 12px}.pdfp-b{padding:0 11px;min-height:36px}.pdfp-b span{display:none}.pdfp-b.pdfp-x span{display:inline}}
.bhopdf-box:has(.bhopdf-pane.picking) .bhopdf-dock{display:none}
.bhopdf-box:has(.bhopdf-pane.picking) .bhopdf-body{min-height:0}
