/* MyDhariwal Warranty — secure image/PDF preview (v1.22.1) */
.mdw-file-viewer{position:fixed!important;inset:0!important;margin:auto!important;width:min(1050px,calc(100vw - 24px))!important;max-width:1050px!important;height:min(92dvh,1050px)!important;max-height:calc(100dvh - 20px)!important;padding:0!important;overflow:hidden!important;border:1px solid #d6e5de!important;border-radius:22px!important;background:#fff;color:#163c38;box-shadow:0 22px 70px #0a392e4d;}
.mdw-file-viewer[open]{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto;}
.mdw-file-viewer::backdrop{background:rgba(12,40,35,.66);backdrop-filter:blur(4px);}
.mdw-file-head{padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #dceae3;background:linear-gradient(115deg,#f7fcf9,#ebf7f1);min-width:0;}
.mdw-file-heading{min-width:0}.mdw-file-type{font-size:10px;font-weight:850;letter-spacing:.13em;color:#168366}.mdw-file-heading h2{font-size:19px;line-height:1.2;margin:4px 0;overflow-wrap:anywhere}.mdw-file-heading small{display:block;color:#5b7470;font-size:12px;max-width:74vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mdw-file-close{flex:0 0 38px;border:0!important;background:#e3f2eb!important;color:#0d5a49!important;width:38px;height:38px;border-radius:12px!important;font-size:26px;line-height:1;cursor:pointer;}
.mdw-file-body{min-width:0;min-height:0;overflow:auto;background:#ecf4f1;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;}
.mdw-file-body>img{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:auto;}
.mdw-private-pdf{border:0;width:100%;flex:1;min-height:0;background:#fff;display:block;}
.mdw-pdf-hint{background:#f5fbf8;color:#4d655f;border-bottom:1px solid #dce9e2;align-self:stretch;padding:9px 14px;flex:none;font-size:12px;line-height:1.5;text-align:center;}
.mdw-file-actions{display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:white;border-top:1px solid #e0ebe4;}
.mdw-file-actions>*{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;min-height:42px;padding:10px 15px;border-radius:11px!important;font-size:13px!important;font-weight:750!important;text-decoration:none!important;}
.mdw-file-actions .mdw-open-file{background:#067d69!important;color:#fff!important;border:1px solid #067d69!important;}
.mdw-file-actions .secondary{background:#f0f7f3!important;color:#16594a!important;border:1px solid #d3e6db!important;}
.mdw-pdf-badge{display:inline-block;background:#fff0eb;border-radius:5px;padding:2px 6px;color:#a23a29;font-size:10px;font-weight:800;letter-spacing:.04em;vertical-align:middle;}
@media(max-width:760px){.mdw-file-viewer{width:calc(100vw - 12px)!important;height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:18px!important;}.mdw-file-head{padding:10px 12px}.mdw-file-heading h2{font-size:16px}.mdw-file-heading small{font-size:11px}.mdw-pdf-hint{font-size:11px;padding:9px 10px}.mdw-file-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))}.mdw-file-actions .mdw-open-file{grid-column:1/-1}.mdw-file-actions>*{white-space:normal;text-align:center;font-size:12px!important;padding:9px!important;}}
@media(prefers-reduced-motion:reduce){.mdw-file-viewer *{scroll-behavior:auto!important}}
