/* IC Comunicaciones V73 - comparación al escanear o subir fotos; NO mueve inventario. */
.tr-v73-compare,.tr-v73-image-dialog{box-sizing:border-box;width:min(1020px,96vw);max-height:94dvh;overflow:auto;border:0;border-radius:18px;padding:clamp(18px,3vw,32px);background:#fff;color:#14374f;box-shadow:0 18px 75px #001a3480}
.tr-v73-compare::backdrop,.tr-v73-image-dialog::backdrop{background:#061c2dcc}
.tr-v73-compare h2{font-size:clamp(24px,3vw,34px);margin:0 0 14px}
.tr-v73-compare h3{font-size:clamp(18px,2.5vw,22px);margin:8px 0 12px}
.tr-v73-intro{border-left:5px solid #d89023;padding:12px;background:#fffaed;font-weight:700;line-height:1.55}
.tr-v73-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:18px 0}
.tr-v73-col{padding:16px;background:#f6f9fd;border:1px solid #cbdde9;border-radius:12px;min-width:0}
.tr-v73-read-code,.tr-v73-candidate strong{font-size:clamp(16px,2vw,21px);font-weight:850;overflow-wrap:anywhere}
.tr-v73-candidate{padding:14px;background:#fff;border:2px solid #bdceda;border-radius:10px;margin:12px 0;overflow-wrap:anywhere}
.tr-v73-candidate p{margin:8px 0}.tr-v73-candidate .tr-v73-difference{color:#a83e25;font-weight:800;background:#fff4eb;padding:8px;border-radius:7px}
.tr-v73-photo-section{padding:16px;border:1px solid #cbdde9;border-radius:12px;margin:18px 0}
.tr-v73-photo-section p{line-height:1.45}.tr-v73-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:12px 0}
.tr-v73-picture{border:1px solid #adcbdf;padding:5px;min-width:0;border-radius:10px;background:white;text-align:left;cursor:pointer;font:inherit;color:#174667;display:flex;flex-direction:column;gap:7px}
.tr-v73-picture img{width:100%;height:135px;object-fit:contain;background:#f3f7f9;border-radius:7px}.tr-v73-picture span{overflow-wrap:anywhere;font-size:12px}
.tr-v73-image-dialog{width:min(1100px,98vw);text-align:center}.tr-v73-image-dialog img{display:block;max-width:100%;max-height:75dvh;object-fit:contain;margin:15px auto}
.tr-v73-alert{font-weight:700;background:#fff8ee;border:1px solid #f3ca83;border-radius:9px;padding:12px;line-height:1.5}
.tr-v73-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.tr-v73-actions .button{white-space:normal!important}
.tr-v73-problems{background:#fffaf1;border:2px solid #e6b966;border-radius:14px;margin:16px 0;padding:16px}
.tr-v73-problems h3{font-size:20px}.tr-v73-problem-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #dfccaa}
.tr-v73-problem-row strong{overflow-wrap:anywhere;word-break:break-word}.tr-v73-problem-row button{white-space:normal!important;min-height:46px}
@media(max-width:680px){.tr-v73-two{grid-template-columns:1fr}.tr-v73-compare{max-height:95dvh}.tr-v73-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.tr-v73-problem-row{flex-direction:column;align-items:stretch}.tr-v73-actions .button{width:100%}}

/* V79: comparación inmediata escaneado vs. bodega, editor en la misma ventana. */
.tr-v79-compare{width:min(1000px,97vw);scroll-padding:16px}
.tr-v79-compare .tr-v73-two{gap:12px;margin:15px 0 9px}
.tr-v79-side{background:#f5f9fc;display:flex;flex-direction:column;gap:8px}
.tr-v79-side h3{margin:0 0 3px}
.tr-v79-side p{margin:0;line-height:1.45}
.tr-v79-small-label{font-weight:700;color:#36526b}
.tr-v79-code{display:flex;flex-wrap:wrap;gap:1px;align-items:center;min-height:50px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(19px,2.5vw,27px);font-weight:850;letter-spacing:.3px;line-height:1.3;word-break:break-all}
.tr-v79-code span{display:inline-block;min-width:1ch;text-align:center;border-radius:4px}
.tr-v79-code span.tr-v79-char-diff{background:#ffe0b4;color:#96320b;box-shadow:inset 0 -2px #db8b2a}
.tr-v79-register{font-size:14px}
.tr-v79-diff-summary{font-weight:700;line-height:1.5;margin:0 0 14px;padding:12px;border:1px solid #bed4e4;border-radius:9px;background:#f4f9fb}
.tr-v79-diff-summary.tr-v79-attention{background:#fff8ed;border-color:#e4bc78;color:#764010}
.tr-v79-diff-summary.tr-v79-exact{background:#ecf9f3;border-color:#b1d8c5;color:#126648}
.tr-v79-editor-wrap{border:2px solid #a5c7df;border-radius:14px;padding:clamp(14px,2.5vw,24px);margin:12px 0 15px;background:#fff}
.tr-v79-editor-wrap h3{margin:0 0 10px}
.tr-v79-editor-context{font-weight:700;overflow-wrap:anywhere}
.tr-v79-form label:not(.tr-v74-check){display:flex;flex-direction:column;gap:7px;margin:12px 0;font-weight:700}
.tr-v79-form input[type=text],.tr-v79-form textarea{box-sizing:border-box;width:100%;max-width:100%;font-family:inherit;padding:13px;border:2px solid #99bad2;border-radius:10px;font-size:clamp(16px,2vw,19px);color:#183f5c}
.tr-v79-form input[type=text]:focus,.tr-v79-form textarea:focus{outline:3px solid #a5dcf2;outline-offset:1px}
.tr-v79-form .tr-v74-check{margin:10px 0;font-size:15px;line-height:1.45}
.tr-v79-form .tr-v74-validation{font-size:14px}
.tr-v79-form .tr-v74-validation.tr-v79-valid{background:#eef9f4;border-color:#a4d8c1;color:#1b6043}
.tr-v79-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tr-v79-actions .button{min-height:44px}
.tr-v79-actions .button:disabled{opacity:.48;cursor:not-allowed}
.tr-v79-choices,.tr-v79-photos{margin:12px 0;border:1px solid #cbdde9;border-radius:10px;padding:10px 14px;background:#f8fafc}
.tr-v79-choices summary,.tr-v79-photos summary{cursor:pointer;font-weight:750;line-height:1.35}
.tr-v79-candidate-list{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:11px}
.tr-v79-candidate-list button{text-align:left;white-space:normal!important;overflow-wrap:anywhere}
.tr-v79-candidate-list .tr-v79-choice-current{border:2px solid #16845d;background:#e8f8f0}
.tr-v79-photos .tr-v73-photo-section{margin:10px 0 0;background:#fff}
@media(max-width:680px){
 .tr-v79-compare{width:100vw;max-height:96dvh;padding:15px;border-radius:12px}
 .tr-v79-compare .tr-v73-two{grid-template-columns:1fr}
 .tr-v79-side{padding:12px}
 .tr-v79-code{font-size:clamp(20px,5.2vw,28px)}
 .tr-v79-actions{display:grid;grid-template-columns:1fr 1fr}
 .tr-v79-actions .button:first-child{grid-column:1}
 .tr-v79-actions .button:nth-child(2){grid-column:2}
 .tr-v79-actions .button:last-child{grid-column:1 / -1}
 .tr-v79-form .tr-v74-check{font-size:14px}
}
