/* Small document previews on execution pages; full-size dialog is shared. */
.product-document-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0 12px}
.product-document-list .document-card-compact{display:grid;grid-template-columns:108px minmax(0,1fr);gap:16px;align-items:start;margin:0;padding:16px;border:1px solid var(--line);min-width:0}
.document-card-compact .document-preview{width:108px;height:153px;min-height:0;margin:0;background:#f5f5f6}
.document-card-compact .document-preview iframe{position:absolute;top:0;left:0;width:300px;height:424px;min-height:0;max-width:none;transform:scale(.36);transform-origin:top left;border:0}
.document-card-compact .document-preview-hint{min-height:32px;padding:7px 6px;font-size:9px}
.document-card-compact .document-card-info{gap:9px;height:100%}
.document-card-compact .document-card-info h3{font-size:14px;line-height:1.5;text-wrap:initial;overflow-wrap:anywhere}
.document-card-compact .document-card-info p{font-size:11px;line-height:1.7;margin:0}
.document-card-compact .document-download{min-height:44px;padding:9px 10px;font-size:10px;line-height:1.5}
@media(max-width:1100px){.product-document-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.product-document-list{grid-template-columns:minmax(0,1fr);gap:12px}.product-document-list .document-card-compact{padding:14px;gap:14px}}
.document-preview-trigger{position:relative;display:block;overflow:hidden;color:var(--ink);text-decoration:none;cursor:zoom-in}
.document-preview-trigger iframe{pointer-events:none}
.document-preview-hint{position:absolute;inset:auto 0 0;display:flex;justify-content:center;align-items:center;min-height:44px;padding:10px 12px;background:var(--ink);color:#fff;font-size:11px;line-height:1.5}
.document-preview-trigger:hover .document-preview-hint{background:var(--action)}
.document-preview-dialog{box-sizing:border-box;width:min(1140px,calc(100vw - 48px));max-width:none;height:calc(100vh - 48px);height:calc(100dvh - 48px);max-height:1080px;padding:0;border:1px solid var(--line);background:var(--paper);color:var(--ink);overflow:hidden;overscroll-behavior:contain}
.document-preview-dialog::backdrop{background:rgba(15,15,20,.78)}
.document-modal-shell{display:flex;flex-direction:column;height:100%;min-height:0}
.document-modal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;border-bottom:1px solid var(--line)}
.document-modal-header h2{min-width:0;max-width:75ch;font-size:18px;line-height:1.4;text-wrap:initial;overflow-wrap:anywhere}
.document-modal-close{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;min-height:44px;padding:8px 14px;border:1px solid var(--line);background:#fff;font-size:12px}
.document-modal-close:hover{border-color:var(--action);color:var(--action)}
.document-modal-close span{font-size:25px;line-height:1}
.document-modal-body{position:relative;flex:1;min-height:0;background:#53545a}
.document-modal-frame{display:block;width:100%;height:100%;border:0;background:#53545a}
.document-modal-status{position:absolute;top:12px;left:12px;right:12px;z-index:1;padding:10px 14px;background:#fff;font-size:12px;line-height:1.6;pointer-events:none}
.document-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px;border-top:1px solid var(--line);background:#fff}
.document-modal-footer p{font-size:11px;line-height:1.7;margin:0}.document-modal-footer p a{color:var(--action)}
.document-modal-footer .button{font-size:11px;min-height:44px;padding:10px 16px;flex-shrink:0}
@media(max-width:600px){.document-preview-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);height:calc(100dvh - 16px);max-height:none}.document-modal-header{align-items:flex-start;gap:12px;padding:12px}.document-modal-header h2{font-size:14px}.document-modal-close{font-size:11px;padding-inline:10px;gap:8px}.document-modal-footer{align-items:flex-start;flex-direction:column;padding:10px 12px;gap:8px}.document-modal-footer .button{width:100%}}
