/* HUIDI R6.17.2: product catalog stability / dialog / preview closure */
.r6172-adaptive-picker .r61690-customer-picker-shell{min-height:0!important;grid-template-rows:auto auto minmax(0,auto) auto!important;max-height:calc(100dvh - 32px)!important;background:#fff}
.r6172-adaptive-picker .r61690-customer-picker-list{min-height:72px!important;max-height:min(52vh,520px);overflow:auto!important}
.r6172-adaptive-picker .r61690-customer-empty{min-height:120px!important}
.r61690-customer-row.is-current{border-color:#6675ef!important;background:#f2f3ff!important;box-shadow:0 0 0 2px rgba(99,102,241,.08)}
.r61690-customer-row.is-current em{background:#dcfce7!important;color:#166534!important}
.r6172-preview-toolbar{flex-wrap:wrap}.r6172-preview-toolbar .r6172-preview-sep{width:1px;height:22px;background:var(--fp-border);margin:0 2px}.r6172-preview-toolbar button.active{border-color:#6366f1;background:#eef2ff;color:#4338ca}.r6172-preview-toolbar #catalogPreviewZoomLabel{min-width:44px}
.r6172-preview-stage{position:relative;min-height:520px;border:1px solid var(--fp-border);border-top:0;border-radius:0 0 10px 10px;background:#e8edf3;overflow:hidden}.r6172-preview-stage .catalog-preview-frame{width:100%;height:100%!important;min-height:520px!important;border:0!important;border-radius:0!important}.r6172-preview-empty{position:absolute;inset:0;z-index:3;display:grid;place-content:center;justify-items:center;gap:6px;background:#f8fafc;color:#64748b;text-align:center}.r6172-preview-empty[hidden]{display:none!important}.r6172-preview-empty strong{color:#334155;font-size:15px}
.r6172-pdf-status{display:flex;align-items:center;gap:8px;margin-top:9px;padding:8px 10px;border-radius:9px;font-size:11px}.r6172-pdf-status.ok{background:#f0fdf4;color:#166534}.r6172-pdf-status.bad{background:#fff7ed;color:#9a3412}.r6172-pdf-status span{opacity:.86}
#catalogCurrencyWrap[hidden],#catalogShowPriceWrap[hidden]{display:none!important}
@media(min-width:1440px){.r61677-catalog-builder .document-engine-preview .r6172-preview-stage{height:calc(100vh - 320px);min-height:560px}.r61677-catalog-builder .document-engine-preview .r6172-preview-stage .catalog-preview-frame{min-height:100%!important;height:100%!important}}
@media(max-width:760px){.r6172-preview-toolbar .r6172-preview-sep{display:none}.r6172-pdf-status{align-items:flex-start;flex-direction:column}}

/* HUIDI R6.17.5: continuous live preview */
.r6175-preview-toolbar{display:flex;align-items:center;gap:6px}
.r6175-preview-toolbar .r6175-preview-hint{margin-right:auto;font-size:11px;font-weight:700;color:#64748b}
.r6175-preview-stage{overflow:hidden}
.r6175-preview-stage .catalog-preview-frame{width:100%!important;height:100%!important;min-height:680px!important;background:#e8edf3}
@media(min-width:1440px){.r61677-catalog-builder .document-engine-preview .r6175-preview-stage{height:calc(100vh - 272px);min-height:640px}}
@media(max-width:1100px){.r6175-preview-stage .catalog-preview-frame{min-height:600px!important}}
