.crm-file-preview[data-slot=dialog-content]{z-index:70;color:#f2f6f8;overscroll-behavior:contain;background:#111b25;border:1px solid #35424e;border-radius:14px;flex-direction:column;gap:0;width:calc(100vw - 48px);max-width:1280px;height:calc(100dvh - 48px);max-height:960px;padding:0;display:flex;overflow:hidden;box-shadow:0 24px 100px #0008}.crm-file-preview.is-expanded[data-slot=dialog-content]{border:0;border-radius:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh}.crm-preview-heading{background:#1b2733;border-bottom:1px solid #34404c;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.crm-preview-heading>div{min-width:0}.crm-preview-heading [data-slot=dialog-title]{color:#f2f6f8;white-space:nowrap;text-overflow:ellipsis;padding:0;font-size:16px;line-height:1.4;overflow:hidden}.crm-preview-heading [data-slot=dialog-description]{color:#b7c7d5;margin-top:3px;font-size:12px}.crm-file-preview button,.crm-file-preview a{color:#f1f6fa;cursor:pointer;touch-action:manipulation;background:#2b3b4a;border:1px solid #0000;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;gap:8px;min-width:44px;min-height:44px;padding:10px;text-decoration:none;display:inline-flex}.crm-file-preview button:hover,.crm-file-preview a:hover{background:#3e5366}:is(.crm-file-preview button:focus-visible,.crm-file-preview a:focus-visible){outline-offset:2px;outline:2px solid #75e0eb}.crm-file-preview button:disabled{opacity:.35;cursor:default}.crm-preview-viewport{background:#111b25;flex:1;min-width:0;min-height:100px;position:relative;overflow:hidden}.crm-preview-stage{touch-action:none;-webkit-user-select:none;user-select:none;position:absolute;inset:0;overflow:hidden}.crm-preview-stage.is-zoomed{cursor:grab}.crm-preview-stage.is-zoomed:active{cursor:grabbing}.crm-preview-stage>img{object-fit:contain;transform-origin:50%;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none;max-width:none;max-height:none;position:absolute;top:50%;left:50%}.crm-file-preview .crm-preview-prev,.crm-file-preview .crm-preview-next{background:#223747e8;border-color:#536774;border-radius:50%;position:absolute;top:50%;transform:translateY(-50%);box-shadow:0 2px 10px #0004}.crm-preview-prev{left:12px}.crm-preview-next{right:12px}.crm-preview-toolbar{background:#1b2733;border-top:1px solid #34404c;flex-shrink:0;justify-content:space-between;align-items:center;gap:8px;padding:10px 16px 4px;display:flex}.crm-preview-toolbar>div{align-items:center;gap:5px;display:flex}.crm-preview-percent{text-align:center;color:#cbd8e0;font-variant-numeric:tabular-nums;min-width:46px;font-size:13px}.crm-preview-help{color:#b6c5d1;text-align:center;background:#1b2733;flex-shrink:0;margin:0;padding:4px 16px 10px;font-size:12px;line-height:1.5}.crm-preview-status{text-align:center;color:#d1dce4;flex-direction:column;justify-content:center;align-items:center;gap:14px;padding:30px 65px;font-size:14px;display:flex;position:absolute;inset:0}.crm-preview-status p{margin:0}@media (max-width:600px){.crm-file-preview[data-slot=dialog-content]{border-radius:12px;width:calc(100vw - 16px);height:calc(100dvh - 24px);max-height:none}.crm-file-preview.is-expanded[data-slot=dialog-content]{border-radius:0;width:100vw;height:100dvh}.crm-preview-heading{padding:8px 10px}.crm-preview-heading [data-slot=dialog-title]{font-size:14px}.crm-preview-toolbar{gap:4px;padding:8px 8px 2px}.crm-preview-toolbar>div{gap:2px}.crm-preview-percent{min-width:40px}.crm-preview-help{padding:4px 10px calc(8px + env(safe-area-inset-bottom));font-size:11px}.crm-file-preview.is-expanded .crm-preview-heading{padding-top:calc(8px + env(safe-area-inset-top))}.crm-preview-prev{left:6px}.crm-preview-next{right:6px}}@media print{.crm-file-preview{display:none!important}}.crm-preview-body{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.crm-preview-toolbar{flex-wrap:wrap}.crm-preview-pages{white-space:nowrap;margin-right:auto;font-size:14px}.crm-document-thumb{background:#f5f8f9;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:100%;height:100%;min-height:54px;display:inline-flex;position:relative;overflow:hidden}.crm-document-thumb img{max-height:100%;object-fit:contain!important;width:100%!important;height:100%!important}.crm-document-thumb>small{color:#176170;background:#e5f1f3;border-radius:3px;padding:2px 3px;font:700 9px Arial;position:absolute;bottom:2px;right:3px}.crm-files-list .crm-document-thumb{width:54px;height:64px}.crm-file-open>.crm-document-thumb{min-height:70px}.crm-files-tiles .crm-document-thumb{height:130px}.crm-files-wide .crm-document-thumb{height:280px}.crm-card-files .crm-file-open:has(.crm-document-thumb){width:98px;height:124px;padding:5px}.crm-card-files .crm-document-thumb{height:100%}@media (max-width:600px){.crm-preview-pages{flex-basis:100%;order:-1;justify-content:center}.crm-preview-toolbar .crm-preview-pages{gap:14px}}.crm-card-files{container-type:inline-size}.crm-card-files>.crm-card-document-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 8px;display:grid}.crm-card-files>.crm-card-document-grid>.crm-card-document{flex-direction:column;align-items:flex-start;gap:6px;min-width:0;margin:0;display:flex}.crm-card-document>small{overflow-wrap:anywhere;min-height:48px;line-height:16px}.crm-card-files>.crm-card-document-grid>.crm-card-document>.crm-file-open{aspect-ratio:98/124;flex-shrink:0;width:100%;max-width:98px;height:auto}.crm-preview-stage.is-media{touch-action:auto;-webkit-user-select:text;user-select:text;overflow:auto}.crm-preview-media{flex-direction:column;justify-content:center;align-items:center;gap:20px;width:100%;height:100%;padding:28px 64px;display:flex}.crm-preview-media video{max-width:100%;max-height:calc(100% - 64px)}.crm-preview-media audio{width:min(600px,100%)}.crm-preview-media p{text-align:center;color:#b6c5d1;font-size:14px}.crm-preview-text{padding:24px 70px;line-height:1.6}.crm-preview-text pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.6 monospace}.crm-preview-text p{color:#b6c5d1;font-size:13px}@media (max-width:600px){.crm-preview-media{padding:20px 50px}.crm-preview-text{padding:18px 48px}}@media (max-width:900px){.crm-preview-heading{padding-top:calc(8px + env(safe-area-inset-top));z-index:2;position:relative}.crm-preview-heading>button{color:#fff;background:#008c98;min-width:104px;font-weight:700}.crm-preview-heading>div{flex:1}.crm-file-preview[data-slot=dialog-content]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}}.crm-document-opening{z-index:1000;left:12px;right:12px;top:calc(12px + env(safe-area-inset-top));color:#244753;background:#fff;border:1px solid #008c98;border-radius:12px;justify-content:space-between;align-items:center;gap:12px;padding:16px;display:flex;position:fixed;box-shadow:0 4px 24px #0004}.crm-document-opening button{color:#fff;background:#008c98;border-radius:8px;padding:12px}.crm-save-error{color:#ffe0ba;white-space:normal;max-width:260px;font-size:12px}
