/* Inline diagnostic imaging extension for Canigenix Vet Records */
#cxImgPanel[hidden]{display:none!important}
#cxImgPanel{background:linear-gradient(135deg,#173a46,#214c58);border:1px solid #58868c;color:#f2fffd;border-radius:15px;padding:21px;margin:20px 0;max-width:100%;box-sizing:border-box}
#cxImgPanel *{box-sizing:border-box}#cxImgPanel h3,#cxImgPanel h4{color:#f6fffd;margin:8px 0 13px}#cxImgPanel h3{font-size:21px}#cxImgPanel h4{font-size:17px}
#cxImgPanel .cx-img-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
#cxImgPanel .cx-img-muted{font-size:12.5px;color:#c0dad9;line-height:1.5;overflow-wrap:anywhere;margin:5px 0 11px}
#cxImgPanel .cx-img-status{min-height:20px;color:#a8f1cd;font-size:13px}#cxImgPanel .cx-img-status.bad{color:#ffbbb3}
#cxImgPanel .cx-img-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 15px}
#cxImgPanel .cx-img-field{display:flex;flex-direction:column;gap:6px;color:#e9faf8;font-size:13px;font-weight:600;margin:6px 0}
#cxImgPanel input,#cxImgPanel select,#cxImgPanel textarea{background:#eff9f8!important;color:#15363b!important;border:1px solid #91b4b0!important;border-radius:9px!important;padding:9px 11px!important;min-height:42px;opacity:1!important;width:100%;font-size:14px!important}
#cxImgPanel select option{color:#17363c;background:#fff}#cxImgPanel textarea{resize:vertical;min-height:72px}
#cxImgPanel button{cursor:pointer;min-height:38px;padding:8px 12px;margin:0!important;border-radius:9px!important;font-weight:700}
#cxImgPanel button.primary{background:#75dbb7!important;color:#08363a!important;border:1px solid #75dbb7!important}
#cxImgPanel button.outline{background:#244c59!important;color:#e9faf7!important;border:1px solid #80a9ae!important}
#cxImgPanel button:disabled{opacity:.55!important;cursor:not-allowed}
#cxImgPanel .cx-img-form{padding:15px;border-radius:12px;border:1px solid #59818b;background:#163842;display:grid;gap:9px}
#cxImgPanel .cx-img-study{border:1px solid #59838a;border-radius:13px;background:#143640;margin:13px 0;padding:17px}
#cxImgPanel .cx-img-badge{font-size:12px;color:#c5f9e9;border:1px solid #65999a;border-radius:25px;background:#285962;padding:5px 10px}
#cxImgPanel .cx-img-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0;padding:12px;border:1px solid #5e8389;border-radius:10px}
#cxImgPanel .cx-img-upload input{flex:1;min-width:210px;padding:6px!important}
#cxImgPanel .cx-img-images{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:16px;margin:14px 0}
#cxImgPanel .cx-img-image-card{background:#1f4550;border-radius:11px;border:1px solid #547d82;padding:12px;min-width:0}
#cxImgPanel .cx-img-picture{position:relative;background:#091a1d;display:flex;justify-content:center;align-items:center;min-height:170px;overflow:hidden;border-radius:8px}
#cxImgPanel .cx-img-image-surface{position:relative;display:inline-block;max-width:100%;line-height:0}
#cxImgPanel .cx-img-picture img{display:block;object-fit:contain;max-height:420px;max-width:100%;width:auto;height:auto}
#cxImgPanel .cx-img-clickable{cursor:crosshair}#cxImgPanel .cx-img-pin,#cxImgPanel .cx-img-candidate{position:absolute;transform:translate(-50%,-50%);width:23px;height:23px;border:2px solid white;border-radius:50%;background:#25a38d;color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none;font-size:12px;font-weight:900;box-shadow:0 2px 5px #0009}
#cxImgPanel .cx-img-candidate{background:#e19a37}
#cxImgPanel .cx-img-pin-form{margin-top:10px;display:grid;gap:10px}
#cxImgPanel .cx-img-annotations{font-size:13px;color:#e2f3f2;line-height:1.6;padding-left:22px}
#cxImgPanel .cx-img-reviewed{color:#b9ffdc;font-size:13px;font-weight:700}
#cxImgPanel :is(input,textarea,select,button,.cx-img-clickable):focus-visible{outline:3px solid #efdb9b;outline-offset:2px}
@media(max-width:700px){#cxImgPanel{padding:14px}#cxImgPanel .cx-img-grid{grid-template-columns:1fr}}

#cxImgPanel .cx-img-ai{margin-top:16px;border-top:1px solid #657d80;padding-top:12px}#cxImgPanel .cx-img-ai-result{padding:12px;border:1px solid #657d80;border-radius:8px;margin-top:8px}#cxImgPanel .cx-img-ai-result button{margin-right:8px}
