.mobile-scan-dialog{border:0;border-radius:12px;padding:16px;width:min(94vw,520px);max-height:90vh;background:white;box-shadow:0 20px 80px #132c3860}
.mobile-scan-dialog::backdrop{background:#0a1b23c9}
.mobile-scan-dialog>div{display:grid;gap:12px}
.mobile-scan-dialog h2{margin:0;font-size:19px}
.mobile-scan-dialog video{display:block;width:100%;max-height:68vh;object-fit:cover;background:#0a1b23;border-radius:8px}
.mobile-scan-dialog p{margin:0;color:var(--muted)}
#return-inbound-lookup-form{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto;align-items:end;gap:12px;padding:18px}
#return-inbound-lookup-form label{display:grid;gap:7px;font-size:12px}
.buyer-candidate{overflow-wrap:anywhere}
.buyer-candidate>div{min-width:0}
.buyer-candidate .return-code-large{max-height:220px}
.central-result-card{border:1px solid var(--line);background:#f7fbfa;border-radius:8px;padding:16px;margin-bottom:14px;overflow-wrap:anywhere}
.central-result-card>strong{display:block;margin-bottom:8px}
.central-result-card p{font-size:12px;color:var(--muted);line-height:1.6}
.central-result-card .buyer-candidate,.central-result-card .buyer-product-source{margin-top:10px}
.buyer-reference-photo .product-main-image,.buyer-reference-photo .photo-placeholder{width:148px;height:160px}
.buyer-manual-action{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
#central-manual-candidates{max-height:40vh;overflow:auto;display:grid;gap:8px}
#central-manual-candidates .buyer-candidate{display:flex;align-items:center}
#central-manual-candidates .buyer-candidate label{display:flex;align-items:center;gap:10px;flex:1;margin:0}
#central-manual-candidates .buyer-candidate input{width:auto;margin:0}
#central-manual-candidates .buyer-candidate small{display:block}
.central-product-group{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:8px}
.central-product-group>strong{font-size:13px}
.batch-video-wrap{position:relative}
.batch-camera-dialog video{height:min(56vh,480px);object-fit:contain}
.relink-scan-dialog video{height:min(38vh,320px)}
.relink-needed-toggle{width:100%;min-height:44px}
.batch-camera-actions{display:flex;align-items:center;justify-content:center;gap:22px;margin:18px 0}
.batch-code-options{position:absolute;inset:0;pointer-events:none}
.batch-code-choice{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;border:3px solid #fff;border-radius:50%;background:#079e5a;color:white;font-size:27px;font-weight:700;line-height:1;box-shadow:0 0 0 3px #067446,0 3px 12px #0009;pointer-events:auto;cursor:pointer}
.batch-code-choice-fallback{position:relative;left:auto;top:auto;transform:none;width:auto;max-width:100%;height:auto;min-height:42px;border-radius:8px;margin:6px;padding:5px 10px;font-size:12px;overflow-wrap:anywhere}
.batch-shutter{width:78px;height:78px;border-radius:50%;border:5px solid #fff;outline:3px solid #087b6d;background:#087b6d;color:#fff;font-weight:700;font-size:17px;box-shadow:0 3px 14px #0002;cursor:pointer;flex:none}
.batch-shutter:disabled{opacity:.55;cursor:wait}
.batch-shutter:focus-visible{outline:4px solid #f3a936;outline-offset:4px}
.relink-read-pair{display:flex;flex-wrap:wrap;gap:8px;font-size:13px}
.relink-read-pair span{padding:7px 10px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.relink-camera-actions{gap:12px;flex-wrap:wrap}
.relink-camera-actions .batch-shutter{width:108px;height:72px;border-radius:16px;padding:5px;font-size:15px}
.relink-product-shutter{background:#286eaf;outline-color:#286eaf}
.batch-capture-success{background:#dff6ec;color:#096b43;padding:10px;border-radius:8px;font-weight:700}
.batch-queue{max-height:420px;overflow:auto}
.batch-queue-row{display:flex;justify-content:space-between;gap:12px;padding:10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.relink-manual{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0}
.relink-manual label{flex:1 1 180px}
.relink-manual input{width:100%}
.relink-needed{padding:14px;border:1px solid var(--line);border-radius:10px;background:#f5faf9;margin:12px 0}
.relink-needed-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:0;background:transparent;color:var(--ink);text-align:left}
.relink-needed-heading strong{font-size:16px}
.relink-needed-heading span{color:#3f4fa4;font-size:13px;font-weight:700;white-space:nowrap}
.relink-needed-heading:hover span{text-decoration:underline}
#relink-needed-content[hidden]{display:none}
.relink-needed>.batch-queue{max-height:310px;margin-top:8px;background:white;border:1px solid var(--line);border-radius:8px}
.relink-entry-list{max-height:380px;overflow:auto;margin-top:8px;background:#fff;border:1px solid var(--line);border-radius:8px}
.relink-entry-head,.relink-entry-row{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,1.5fr) minmax(160px,1.4fr) auto;align-items:center;gap:12px;padding:11px 13px}
.relink-entry-head{position:sticky;top:0;z-index:1;background:#eef3f4;color:var(--muted);font-size:12px;font-weight:700}
.relink-entry-row{border-top:1px solid var(--line)}
.relink-entry-row input{width:100%;min-width:0}
.relink-entry-row input:disabled{background:#f5f7f7;color:#54656a}
.relink-entry-status{font-size:12px;color:#63747a;overflow-wrap:anywhere}
.relink-entry-error .relink-entry-status{color:#ad3535}
.relink-entry-row button{white-space:nowrap}
@media(max-width:700px){.relink-entry-head{display:none}.relink-entry-row{grid-template-columns:minmax(0,1fr) auto;gap:9px}.relink-entry-row input{grid-column:1 / -1;grid-row:2}.relink-entry-row .relink-entry-status{grid-column:1;grid-row:3}.relink-entry-row button{grid-column:2;grid-row:3}}
.relink-next-needed{padding:9px 11px;border-radius:8px;background:#e4f5ef;color:#075f4c!important;font-weight:700;overflow-wrap:anywhere}
.relink-camera-list{max-height:32vh;overflow:auto;border:1px solid var(--line);border-radius:8px}
.relink-camera-list[hidden]{display:none}
.relink-needed-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:14px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink);text-align:left;font:inherit}
.relink-needed-choice:last-child{border-bottom:0}
.relink-needed-choice:hover,.relink-needed-choice:focus-visible{background:#e6f4ef;outline:2px solid #178673;outline-offset:-2px}
.relink-needed-choice strong{font-size:16px;overflow-wrap:anywhere}
.relink-needed-choice span{color:var(--muted);font-size:13px}
.relink-needed-choice b{color:#087b6d;white-space:nowrap;font-size:13px}
.relink-selected{padding:14px;border:2px solid #078776;border-radius:10px;background:#eefaf7;margin:12px 0}
.relink-needed .batch-queue-row{align-items:center;flex-wrap:wrap}
.batch-status-table{min-width:1040px;table-layout:auto}
.batch-status-table td{white-space:normal;overflow-wrap:anywhere;min-width:110px}
.batch-status-table td:first-child,.batch-status-table td:nth-child(2){min-width:155px}
.batch-status-table td:nth-child(6){max-width:280px}
.batch-status-table td:last-child{white-space:nowrap}
.batch-status-table td>div+div{margin-top:6px}
.batch-status-table .batch-item-note{display:block;margin-top:7px;font-size:11px}
.return-sync-monitor{padding:12px 18px;border:1px solid var(--line);border-radius:8px;background:white;margin:12px 0;font-size:12px}
.return-sync-monitor>div{margin-top:10px}
.batch-item{display:grid;grid-template-columns:minmax(160px,1fr) minmax(200px,1.2fr) minmax(240px,2fr) auto;gap:16px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:9px;margin:10px 14px;overflow-wrap:anywhere}
.batch-item-code{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.batch-item-orders small{display:block;margin-top:5px}
.batch-item-note{color:var(--muted);font-size:12px;line-height:1.55}
.batch-item-action{justify-self:end}
.batch-bind-layout{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:20px}
.batch-bind-reference,.batch-bind-orders{min-width:0}
.batch-bind-reference>strong,.batch-bind-reference>small{display:block;overflow-wrap:anywhere}
.batch-bind-reference>small{margin-top:7px;color:var(--muted)}
.batch-bind-reference .buyer-reference-photo{display:grid;gap:8px;margin-top:12px}
.batch-bind-reference .buyer-reference-photo .product-main-image{width:100%;height:auto;max-height:270px;object-fit:contain}
.batch-bind-orders>label{font-size:12px}
#batch-order-list{display:grid;gap:8px;max-height:58vh;overflow:auto;margin-top:10px}
.batch-bind-candidate .product-main-image,.batch-bind-candidate .photo-placeholder{width:72px;height:80px}
.batch-bind-candidate button{flex:none}
.batch-procurement-candidate{margin:10px 0}
.batch-procurement-candidate>label{display:flex;align-items:flex-start;gap:10px;flex:1;min-width:0;cursor:pointer}
.batch-procurement-candidate>label>input{width:auto;flex:none;margin:4px 0}
.batch-procurement-candidate>label>span{min-width:0;overflow-wrap:anywhere}
.batch-procurement-candidate .product-main-image,.batch-procurement-candidate .photo-placeholder{width:84px;height:96px;object-fit:contain}
.batch-procurement-candidate>.photo-open{flex:none}
#modal:has(.batch-bind-layout){width:min(1000px,96vw)}
.batch-item-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.batch-item small{display:block;margin-top:6px}
.batch-item .buyer-reference-photo{display:flex;align-items:center;gap:12px;margin-top:10px}
.batch-item .buyer-reference-photo small{max-width:290px}
.batch-item p{margin:8px 0}
@media(max-width:850px){#return-inbound-lookup-form{grid-template-columns:1fr}#return-inbound-lookup-form button{min-height:44px}.ozon-buyer-scan form,.scan-box form{gap:9px}.ozon-buyer-scan form button,.scan-box form button{min-height:44px}.batch-item{grid-template-columns:1fr auto}.batch-item-note{grid-column:1/-1}.batch-item-action{grid-column:2;grid-row:1/3}.batch-bind-layout{grid-template-columns:1fr}.batch-bind-reference .buyer-reference-photo{display:flex;align-items:center}.batch-bind-reference .buyer-reference-photo .product-main-image{width:96px;height:110px}.batch-bind-candidate button{width:100%}}

.return-pickup-address{display:block;font-size:14px;line-height:1.6;color:#14384b;white-space:normal;min-width:240px;max-width:480px}#return-record-location{min-width:280px;max-width:min(640px,85vw)}
