.detail-address-body h3{align-items:center}.detail-pod-indicator{margin-left:auto;display:inline-flex;align-items:center;gap:5px;white-space:nowrap;text-transform:none;font-size:10px;font-weight:600;border:1px solid #dce5ef;border-radius:6px;background:#fff;color:#6a7a94;padding:5px 7px}.detail-pod-indicator.available{color:#13844f;border-color:#b6dfca;background:#f0faf5}.detail-pod-indicator.error{color:#b42318}.detail-pod-indicator.loading{opacity:.7}.detail-footer{grid-template-columns:1.3fr 1fr 1fr 1fr}.detail-footer button:hover{background:#edf5ff}#pod-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 32px));height:min(820px,90vh);max-height:90vh;max-width:1100px;border:1px solid #dce4ef;border-radius:15px;padding:0;background:white;color:#102342;box-shadow:0 24px 90px #10234240}#pod-dialog::backdrop{background:#111d32b8}.pod-shell{display:flex;flex-direction:column;height:100%;min-height:0;font-size:13px}.pod-header{display:flex;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #e0e8f2}.pod-header h2{margin:0;font-size:22px}.pod-header p{margin:6px 0 0;color:#63748d}.pod-header button{background:transparent;border:0;font-size:26px;color:#64748b;cursor:pointer}.pod-tabs{display:flex;gap:8px;padding:12px 22px;flex-shrink:0;border-bottom:1px solid #e0e8f2}.pod-tabs button{border:1px solid #cbd9ec;background:#fff;border-radius:7px;padding:9px 16px;color:#63748d;font-weight:600;cursor:pointer}.pod-tabs button[aria-selected=true]{background:#edf5ff;color:#075fdc;border-color:#075fdc}#pod-panel{overflow:auto;flex:1;min-height:0;padding:14px 22px;display:flex;flex-direction:column;gap:12px}#pod-message{color:#64748b;text-align:center;white-space:pre-wrap}#pod-message.error{color:#b42318}#pod-message:empty{display:none}#pod-preview{min-height:0;flex:1;overflow:auto;background:#f4f7fb;border:1px solid #e0e8f2;border-radius:8px;text-align:center;display:block}#pod-preview:empty{display:none}#pod-preview img{display:block;margin:auto;object-fit:contain;max-width:100%;max-height:100%;width:auto;height:auto}#pod-preview iframe{width:100%;height:100%;min-height:300px;border:0}#pod-info{display:flex;flex-wrap:wrap;gap:7px 18px;font-size:11px;color:#63748d}#pod-info strong{color:#102342}#pod-gallery{display:flex;gap:9px;overflow:auto;flex-shrink:0;max-height:105px}#pod-gallery button{display:flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 110px;border:1px solid #dce4ef;background:#fff;border-radius:7px;padding:5px;color:#63748d;font-size:10px;cursor:pointer;overflow:hidden}#pod-gallery button>span:last-child{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#pod-gallery button.selected{border:2px solid #075fdc;color:#075fdc}.pod-file-thumb{height:48px;width:75px;display:flex;align-items:center;justify-content:center;font-size:26px;background:#f4f7fb;border-radius:4px}.pod-file-thumb img{max-width:100%;max-height:100%;object-fit:contain}#pod-limitations{font-size:11px;color:#63748d;margin:0}#pod-limitations:empty{display:none}.pod-controls{display:flex;flex-wrap:wrap;gap:8px;padding:13px 22px;border-top:1px solid #e0e8f2;background:#fff;flex-shrink:0}.pod-controls button,#pod-retry{padding:8px 12px;border:1px solid #bcd5f5;border-radius:6px;background:white;color:#0058d8;cursor:pointer;font-size:12px}.pod-controls button:disabled{opacity:.4;cursor:default}#pod-dialog button:focus-visible{outline:2px solid #1766bf;outline-offset:2px}@media(max-width:800px){.detail-footer{grid-template-columns:1fr 1fr}.detail-address-body h3{gap:6px}.detail-pod-indicator{margin-left:0}#pod-dialog{width:calc(100vw - 16px)}.pod-header,.pod-tabs,.pod-controls{padding:12px}#pod-panel{padding:12px}.pod-controls button{font-size:11px;padding:7px}.pod-tabs button{flex:1;padding:9px}}
/* Proof gallery and temporary upload dialog. */
#pod-dialog{width:min(1400px,90vw);max-width:1400px;height:90vh}.pod-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 22px;gap:12px;border-bottom:1px solid #e0e8f2;flex-shrink:0}.pod-tabs{padding:0;border:0}.pod-toolbar-actions,.pod-header-right{display:flex;align-items:center;gap:10px}.pod-toolbar-actions button,#pod-upload-dialog button{border:1px solid #ccd8e7;border-radius:7px;padding:9px 13px;background:white;color:#164278;cursor:pointer}.pod-toolbar-actions #pod-upload,#pod-upload-submit{background:#1264d8;color:white;border-color:#1264d8}#pod-status{border-radius:6px;padding:5px 10px;background:#eef4fb;font-size:12px;font-weight:600}#pod-panel{overflow:auto}.pod-gallery-layout{display:flex;gap:14px;flex:1;min-height:220px}#pod-stage{flex:1;min-width:0;position:relative;background:#1b2637;border-radius:10px;overflow:hidden;display:flex}#pod-preview{display:flex;align-items:center;justify-content:center;background:transparent;border:0;border-radius:0;flex:1;overflow:hidden;min-width:0;width:100%}#pod-preview:empty{display:flex}#pod-preview img{max-width:100%;max-height:100%;width:auto!important;height:auto;object-fit:contain;user-select:none;transform-origin:center;flex-shrink:0}#pod-preview.pannable{cursor:grab;touch-action:none}#pod-preview.pannable:active{cursor:grabbing}#pod-stage button{border:1px solid #64748b66;border-radius:7px;background:#172131cc;color:white;padding:7px 10px;cursor:pointer}#pod-stage button:disabled{opacity:.35}#pod-stage .pod-arrow{position:absolute;top:45%;font-size:30px;padding:4px 12px}#pod-prev{left:12px}#pod-next{right:12px}#pod-fullscreen{position:absolute;right:12px;top:12px}.pod-image-controls{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:5px;background:#172131e6;border:1px solid #64748b66;border-radius:9px;padding:5px;white-space:nowrap;color:white;font-size:11px}.pod-image-controls button{font-size:11px}.pod-image-controls output{min-width:42px;text-align:center}#pod-gallery{display:flex;flex-direction:column;width:135px;max-height:none;min-height:0;overflow:auto;scrollbar-gutter:stable;flex:0 0 135px}#pod-gallery button{flex:0 0 auto;padding:8px}.pod-file-thumb{width:105px;height:82px}.pod-file-thumb img{object-fit:contain}#pod-info{background:#f5f8fc;border:1px solid #e0e8f2;border-radius:8px;padding:12px}.pod-controls{justify-content:flex-end}.pod-controls #pod-open-ds{background:#1264d8;color:white}#pod-stage:fullscreen{width:100vw;height:100vh;border-radius:0}#pod-upload-dialog{width:min(760px,calc(100vw - 24px));max-height:90vh;padding:0;border:1px solid #dce4ef;border-radius:14px;background:white;color:#102342}#pod-upload-dialog::backdrop{background:#111d32b8}.pod-upload-shell{display:flex;flex-direction:column;max-height:90vh}.pod-upload-shell>header{display:block;padding:18px 22px;border-bottom:1px solid #e0e8f2;background:transparent}.pod-upload-shell h2{margin:0;font-size:21px}.pod-upload-shell p{font-size:12px;line-height:1.5;color:#63748d}.pod-upload-shell>section{padding:16px 22px;overflow:auto}.pod-upload-shell>footer{display:flex;justify-content:flex-end;gap:10px;padding:15px 22px;border-top:1px solid #e0e8f2}.pod-upload-shell select{margin:0 0 14px 10px;padding:7px;border:1px solid #ccd8e7;border-radius:6px}#pod-upload-drop{display:flex;flex-direction:column;align-items:center;gap:9px;border:2px dashed #bed2ee;background:#f6faff;padding:24px;border-radius:10px;cursor:pointer;color:#1264d8;text-align:center}#pod-upload-drop small{color:#63748d;font-size:11px}#pod-upload-files{width:100%;font-size:12px;color:#63748d}#pod-upload-drop.drag-over{background:#e7f1ff;border-color:#1264d8}.pod-upload-selection{display:flex;justify-content:space-between;align-items:center;margin:12px 0;font-size:12px}#pod-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}#pod-upload-grid article{display:flex;gap:8px;border:1px solid #e0e8f2;border-radius:8px;padding:9px;min-width:0}#pod-upload-grid img{width:70px;height:85px;object-fit:contain;background:#f5f8fc}#pod-upload-grid article>div{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}#pod-upload-grid strong{font-size:11px;overflow-wrap:anywhere}#pod-upload-grid small,.upload-state{font-size:10px;color:#63748d}#pod-upload-grid article>button{align-self:flex-start;padding:2px 6px}.upload-uploaded{color:#13844f}.upload-failed,#pod-upload-feedback.error,#pod-upload-grid .error{color:#b42318}#pod-upload-grid progress{width:100%;height:5px;accent-color:#1264d8}#pod-upload-feedback{white-space:pre-wrap}#pod-upload-dialog button:disabled{opacity:.45;cursor:default}
@media(max-width:700px){#pod-dialog{width:calc(100vw - 16px)}.pod-toolbar{padding:10px;flex-wrap:wrap}.pod-toolbar-actions{width:100%;justify-content:flex-end}.pod-gallery-layout{flex-direction:column;min-height:280px}#pod-stage{min-height:250px}#pod-gallery{flex-direction:row;flex:0 0 auto;width:100%;max-height:110px}#pod-gallery button{width:100px;flex:0 0 100px}.pod-file-thumb{width:80px;height:62px}.pod-image-controls button{padding:6px!important;font-size:10px}.pod-upload-shell>section{padding:12px}#pod-upload-grid{grid-template-columns:1fr}}
html[data-theme=dark] #pod-dialog,html[data-theme=dark] #pod-upload-dialog{background:#172235;color:#e6edf8}html[data-theme=dark] .pod-header,html[data-theme=dark] .pod-toolbar,html[data-theme=dark] .pod-controls,html[data-theme=dark] .pod-upload-shell>header,html[data-theme=dark] .pod-upload-shell>footer{background:#172235;border-color:#344257}html[data-theme=dark] #pod-info,html[data-theme=dark] #pod-gallery button,html[data-theme=dark] #pod-upload-drop,html[data-theme=dark] #pod-upload-grid article{background:#202e43;color:#d6e2f4;border-color:#344257}html[data-theme=dark] #pod-info strong{color:#e6edf8}html[data-theme=dark] .pod-tabs button,html[data-theme=dark] .pod-toolbar-actions button:not(#pod-upload),html[data-theme=dark] #pod-upload-dialog button:not(#pod-upload-submit){background:#202e43;color:#bcd7fb;border-color:#344257}
#pod-upload{display:inline-flex;align-items:center;gap:6px}#pod-upload svg{width:17px;height:17px}#pod-status.pod-status-delivered{background:#e8f7ed;color:#16803e}#pod-status.pod-status-pickup{background:#fff3e3;color:#aa5705}#pod-status.pod-status-failed{background:#feecec;color:#b42318}#pod-status.pod-status-assigned{background:#edf5ff;color:#1766bf}

/* Original media fills the preview without using gallery thumbnails. */
#pod-preview{position:absolute;inset:0;width:100%;height:100%}#pod-preview img{width:100%!important;height:100%!important;max-width:none;max-height:none;object-fit:contain}#pod-preview iframe{height:100%;min-height:0}.detail-signature{margin-top:18px;padding-top:14px;border-top:1px solid var(--line,#e0e8f2)}.detail-signature h3{margin:0 0 10px;font-size:14px}.detail-signature img{display:block;width:100%;height:150px;object-fit:contain;background:white;border:1px solid var(--line,#e0e8f2);border-radius:7px}.detail-signature p{font-size:11px;color:var(--muted,#63748d);overflow-wrap:anywhere}.detail-signature button{font-size:11px;padding:5px 8px}

#pod-upload[hidden]{display:none!important}
