/* Local attachment review, shared by every quotation form. */
.sm-attachment-preview{box-sizing:border-box;min-width:0;max-width:100%;margin:16px 0;padding:14px;border:1px solid #c4c4b9;border-top:2px solid #f76835;border-radius:0;background:#e7e7df;color:#25251f;color-scheme:light;font:12px/1.6 Arial,Helvetica,sans-serif;overflow:hidden}
.sm-attachment-preview[hidden],.sm-attachment-preview [hidden]{display:none!important}
.sm-attachment-preview .plan-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px}
.sm-attachment-preview .plan-preview-format{flex:none;font-size:9px;letter-spacing:1px;border:1px solid #bebeb1;padding:3px 7px;color:#57574c}
.sm-attachment-preview .plan-preview-name{margin:8px 0 0;font-weight:600;font-size:11px;overflow-wrap:anywhere;line-height:1.6;color:#38382d}
.sm-attachment-preview .plan-preview-picker{margin-top:12px}
.sm-attachment-preview .plan-preview-picker label{display:block;font-size:10px;margin-bottom:5px;color:#525247}
.sm-attachment-preview .plan-preview-picker select{box-sizing:border-box;width:100%;max-width:100%;min-height:40px;background:#f7f7f1;border:1px solid #bcbcaf;border-radius:0;padding:8px;color:#292923;font:11px Arial,Helvetica,sans-serif}
.sm-attachment-preview .plan-preview-stage{display:flex;align-items:center;justify-content:center;height:280px;min-width:0;overflow:hidden;margin-top:12px;background:#fafaf6;border:1px solid #d1d1c4}
.sm-attachment-preview .plan-preview-stage :is(img,canvas){display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.sm-attachment-preview .plan-preview-stage svg{display:block;width:100%;height:100%}
.sm-attachment-preview .plan-preview-empty{font-size:12px;line-height:1.8;max-width:300px;margin:0;padding:24px;text-align:center;color:#606052}
.sm-attachment-preview .plan-preview-pages{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:10px;font-size:10px;color:#57574a}
.sm-attachment-preview :is(.plan-preview-pages button,.plan-preview-actions button,.plan-preview-actions a){display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #b4b4a7;background:transparent;color:#35352a;font:11px Arial,Helvetica,sans-serif;padding:9px 11px;cursor:pointer;text-decoration:none}
.sm-attachment-preview button:disabled{opacity:.4;cursor:default}
.sm-attachment-preview :is(button,a,select):focus-visible{outline:2px solid #c25028;outline-offset:2px}
.sm-attachment-preview .plan-preview-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}
.sm-attachment-preview .plan-preview-actions button{border-color:#a95030}
.sm-attachment-preview .plan-preview-status{color:#535347;font:11px/1.7 Arial,Helvetica,sans-serif;margin:10px 0 0;overflow-wrap:anywhere}
.sm-attachment-preview .plan-preview-privacy{color:#626255;font:10px/1.7 Arial,Helvetica,sans-serif;margin:10px 0 0}
.attachment-preview-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:92dvh;padding:20px;border:1px solid #56564b;border-top:3px solid #f76835;border-radius:10px;background:#e7e7df;color:#25251f;overflow:auto;color-scheme:light}
.attachment-preview-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
.attachment-preview-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:15px}
.attachment-preview-dialog-top h2{font:700 25px/1.2 Arial,Helvetica,sans-serif;margin:0;letter-spacing:-.7px;color:#25251f}
.attachment-preview-dialog-top button{width:44px;height:44px;flex:none;border:1px solid #bcbcaf;border-radius:0;background:transparent;color:#25251f;cursor:pointer;font:25px Arial,Helvetica,sans-serif}
.attachment-preview-dialog .sm-attachment-preview{padding:0;border:0;margin:12px 0 0}
.attachment-preview-dialog .plan-preview-stage{height:clamp(300px,55dvh,800px)}
@media(min-width:1101px){.tube-workspace:has(.sm-attachment-preview:not([hidden]))>.machine-panel{align-self:start;position:sticky;top:18px}.tube-workspace:has(.sm-attachment-preview:not([hidden])) .scene{flex:none;height:540px}}
@media(max-width:600px){.sm-attachment-preview{padding:11px}.sm-attachment-preview .plan-preview-stage{height:240px}.attachment-preview-dialog{padding:15px;width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.attachment-preview-dialog .plan-preview-stage{height:48dvh}.attachment-preview-dialog-top h2{font-size:23px}}

.fold-review-files .fold-review-dxf-download{flex:none;align-self:center;margin-left:auto;padding:4px 8px;border:1px solid #b37856;color:#ffd0b8;font:11px/1.5 Arial,Helvetica,sans-serif;white-space:nowrap;text-decoration:none}
@media(max-width:600px){.fold-review-files li{flex-wrap:wrap}.fold-review-files .fold-review-dxf-download{margin-left:60px}}
