.part-description{display:flex;flex-direction:column;gap:6px}.part-photo small{display:block;color:#526079;font-size:12px}.part-photo-button{padding:3px;min-height:44px;min-width:44px;background:white;color:#173765;border:1px solid #b3c4d9;border-radius:8px}.part-photo-button img{width:64px;height:64px;object-fit:contain;display:block}.part-photo-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:90vh;overflow:auto;border:1px solid #b3c4d9;border-radius:14px;padding:18px;color:#173765}.part-photo-dialog::backdrop{background:#10233c99}.part-photo-dialog>img{display:block;max-width:100%;max-height:55vh;object-fit:contain;margin:12px auto}.part-photo-dialog h2{font-size:18px;overflow-wrap:anywhere}.part-photo-dialog label{display:block;margin:12px 0}.part-photo-dialog input{max-width:100%;box-sizing:border-box}.part-photo-dialog button{min-height:44px}.part-photo-dialog button:focus-visible,.part-photo-button:focus-visible{outline:3px solid #2670bc;outline-offset:2px}

.rr-inventory-access{display:flex!important;align-items:center;justify-content:center;min-height:72px;font-size:20px!important;padding:18px!important;background:#153d70!important;color:white!important;border-radius:14px;margin:16px 0;text-align:center;white-space:normal!important;width:100%;box-sizing:border-box}.rr-billing-reference{padding:10px 12px;background:#fff4d0;color:#362b0f;font-weight:700;border-radius:8px;overflow-wrap:anywhere}.rr-catalogue-photo{margin:12px 0}.part-photo-dialog form{display:grid;gap:12px}.part-photo-dialog label{display:grid;gap:6px}.part-photo-dialog input,.part-photo-dialog select{padding:10px;min-width:0}.photo-preview{overflow:auto;max-height:350px}.photo-preview p{overflow-wrap:anywhere}

.part-photo-dialog button{padding:10px 14px;border:1px solid #9aafca;border-radius:8px;background:#fff;color:#173765}.part-photo-dialog button[type=submit]{background:#173765;color:#fff}.part-photo-dialog form button{width:100%}

/* Estado y monto forman un solo bloque; el editor vive dentro de la orden. */
.order-card-top{align-items:flex-start;gap:20px}.rr-card-status-stack{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:0 1 350px;min-width:0}.rr-card-status-stack .rr-order-status{font-size:clamp(17px,1.4vw,21px);font-weight:800;line-height:1.25;padding:10px 16px;border:1px solid #b5c8e5;border-radius:10px;max-width:none;background:#e3edfc;color:#173765;white-space:normal;text-align:center}.rr-card-status-stack .rr-billing-reference{width:100%;text-align:right;margin:0;padding:12px 16px;border:1px solid #e3c86b;background:#fff3c4}.rr-billing-label{display:block;font-size:13px;font-weight:600;line-height:1.4}.rr-billing-amount{display:block;font-size:clamp(22px,2vw,28px);font-weight:800;line-height:1.3;margin-top:3px}.order-detail .order-status-readonly{font-size:18px;border-left:5px solid #214b87}.order-detail .order-status-readonly strong{display:block;font-size:26px;font-weight:800}.order-detail .order-status-readonly span{font-size:13px}.order-detail>.rr-billing-reference{margin:8px 0 20px;border:1px solid #e3c86b;padding:16px;max-width:440px}.rr-edit-billing{margin-top:12px;min-height:44px;font-size:15px!important}.order-card .rr-billing-reference{overflow-wrap:anywhere}
@media(max-width:760px){.order-card-top{flex-wrap:wrap;gap:10px}.rr-card-status-stack{flex:1 1 100%;align-items:stretch}.rr-card-status-stack .rr-billing-reference{text-align:left}.rr-card-status-stack .rr-order-status{text-align:left;font-size:19px}.order-detail>.rr-billing-reference{max-width:none}}

/* Miniatura del catálogo, asociada por ID exacto del recambio. */
.inventory-item.rr-inventory-photo-card{position:relative}
.inventory-item.rr-inventory-photo-card:has(.rr-card-photo){padding-bottom:76px;min-height:150px}
.inventory-item .rr-card-photo{position:absolute;bottom:9px;right:9px;width:60px;height:60px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #c9d5e5;border-radius:7px;overflow:hidden;pointer-events:none}
.inventory-item .rr-card-photo img{display:block;width:100%;height:100%;object-fit:contain}
