.vehicle-gallery{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#14221f;color:white}.vehicle-gallery-layout{height:100%;display:flex;flex-direction:column}.vehicle-gallery-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;padding-top:max(12px,env(safe-area-inset-top));flex-shrink:0}.vehicle-gallery-head strong{flex:1;min-width:120px;font-size:14px}.vehicle-gallery-head button{min-height:48px;background:#fff;color:#172c29;-webkit-text-fill-color:#172c29;border:1px solid #c9d5cf;font-weight:600}.vehicle-gallery-head button:hover{background:#e7eee9}.vehicle-gallery-head button:disabled{background:#d9dfdb;color:#53665d;-webkit-text-fill-color:#53665d;opacity:1}.vehicle-gallery-head button:focus-visible{outline:3px solid #bde18b;outline-offset:3px}.vehicle-gallery-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;touch-action:pan-y pinch-zoom}.vehicle-gallery-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain}.vehicle-gallery [data-message]{padding:8px 16px;margin:0;color:#d4e1db}.order-header-photo,.photo-grid figure img{cursor:zoom-in!important}[data-doc-pages]{touch-action:pan-y pinch-zoom}

.file-download{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border:1px solid #c9d5cf;border-radius:8px;background:white;color:#172c29!important;-webkit-text-fill-color:#172c29;font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap}.file-download:hover{background:#e7eee9}.file-download:focus-visible{outline:3px solid #688b45;outline-offset:3px}

dialog.document-viewer {
 box-sizing:border-box;
 width:100%;max-width:100%;height:100vh;max-height:100vh;height:100dvh;max-height:100dvh;
 margin:0;padding:0;border:0;border-radius:0;overflow:hidden;
 background:#f2f3f5;color:#262a30;
}
.document-viewer[open] { display:flex;flex-direction:column; }
.document-viewer [hidden] { display:none!important; }
.document-viewer-bar,.document-viewer-nav {
 flex:none;align-items:center;background:#fff;border-bottom:1px solid #dfe2e6;
 padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right));
}
.document-viewer-bar {
 display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;
 padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px;
}
.document-viewer-name {
 min-width:0;overflow:hidden;overflow-wrap:anywhere;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
 font-size:14px;line-height:1.25;
}
.document-viewer-name:focus { outline:none; }
.document-viewer-export { display:flex;align-items:center;gap:2px; }
.document-viewer-bar button,.document-viewer-bar .file-download,.document-viewer-nav button {
 display:inline-flex;align-items:center;justify-content:center;gap:6px;box-sizing:border-box;
 min-width:44px;min-height:44px;margin:0;padding:4px 10px;border:0;border-radius:6px;
 background:transparent;color:inherit;font:inherit;font-size:14px;font-weight:600;white-space:nowrap;
}
.document-viewer button:enabled:hover,.document-viewer .file-download:hover { background:#f1f2f4; }
.document-viewer-bar [data-doc-close] {
 background:#fff;border:1px solid #bcc2ca;color:#20242b;
}
.document-save-help {
 max-width:40rem;margin:0 auto 12px;padding:12px;background:white;
 border:1px solid #dfe2e6;border-radius:8px;
}
.document-save-help p { margin:0 0 8px; }
.document-save-help a,.document-save-help label { display:block;margin-bottom:8px; }
.document-save-help a { padding:8px 0; -webkit-touch-callout:default; }
.document-save-help input { display:block;width:100%;min-width:0;box-sizing:border-box; }
.document-viewer .document-download-icon { font-size:22px;line-height:18px;border-bottom:2px solid currentColor; }
.document-viewer-nav { display:flex;flex-wrap:wrap;justify-content:center;gap:0 16px; }
.document-viewer-nav [role=group] { display:inline-flex;align-items:center; }
.document-viewer-nav button { font-size:23px;line-height:1; }
.document-viewer-nav span { white-space:nowrap;font-size:14px;font-variant-numeric:tabular-nums; }
.document-viewer [data-doc-pages] {
 flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;
 padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
}
.document-viewer [data-doc-status] { margin:12px;text-align:center; }
.document-viewer-content :is(canvas,img,video) { display:block;max-width:100%;height:auto;margin:auto; }
.document-viewer-content canvas { width:100%;max-width:1100px;background:white; }
.document-viewer-content:has(video) { height:100%; }
.document-viewer-content video { max-height:100%; }
@media (max-width:600px) {
 .document-viewer-bar { gap:6px; }
 .document-viewer-bar .document-download-label { display:none; }
}
@media (max-width:480px) {
 .document-viewer-bar {
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"back export" "name name";
  row-gap:2px;
 }
 .document-viewer-bar [data-doc-close] { grid-area:back;justify-self:start; }
 .document-viewer-export { grid-area:export;justify-self:end; }
 .document-viewer-heading { grid-area:name;padding:0 4px 3px; }
}

.attachment-time {display:block;font-size:12px;line-height:1.4;font-weight:normal;}
.attachment-time:empty {display:none;}
.card-photo-time {margin:4px 0 6px;}
#modalContent .order-header-photo:has(+.header-photo-time) {margin-bottom:4px;}
.header-photo-time {margin:0 0 12px;}
.gallery-photo-time {margin:0;padding:6px 16px 0;color:white;font-size:14px;}
.document-viewer-heading {min-width:0;}
