/* Canigenix Vet v38 — four everyday Visits destinations, two secondary tools.
 * No changes to native consultation, lab, imaging or document editors.
 */
#cgxVisitUnifiedTabs{display:flex;align-items:stretch;gap:12px;margin-top:14px;border-bottom:1px solid #426b73;min-width:0}
#cgxVisitUnifiedTabs .cgx-unified-tabs{display:flex;flex:1;gap:4px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;min-width:0}
#cgxVisitUnifiedTabs [data-cgx-visit-tab]{font-weight:750;font-size:.87rem;min-height:42px}
#cgxVisitUnifiedTabs .cgx-unified-tabs button{flex:0 0 auto;background:transparent!important;color:#c8e2dc!important;border:1px solid transparent!important;border-bottom:3px solid transparent!important;border-radius:8px 8px 0 0!important;padding:10px 14px!important}
#cgxVisitUnifiedTabs .cgx-unified-tabs button.cgx-unified-active{color:#aaffdf!important;border-color:#406c70!important;border-bottom-color:#75e4c0!important;background:#173b44!important}
#cgxVisitUnifiedTabs button:focus-visible,#cgxVisitUnifiedTabs summary:focus-visible,#cgxVisitRecordLinks button:focus-visible{outline:2px solid #9af5d5;outline-offset:2px}
#cgxVisitMore{position:relative;align-self:center;flex:0 0 auto}
#cgxVisitMore>summary{list-style:none;cursor:pointer;color:#c8e2dc;font-size:.88rem;padding:10px 12px;border-radius:8px;font-weight:700}
#cgxVisitMore>summary::-webkit-details-marker{display:none}
#cgxVisitMore>summary:after{content:' ▾';font-size:.74rem}
#cgxVisitMore.cgx-more-active>summary{color:#aaffdf;background:#173b44}
#cgxVisitMore .cgx-visit-more-items{position:absolute;z-index:35;right:0;top:100%;min-width:170px;background:#17333a;border:1px solid #58878a;border-radius:9px;padding:5px;box-shadow:0 9px 22px #0006;display:grid;gap:3px}
#cgxVisitMore:not([open]) .cgx-visit-more-items{display:none}
#cgxVisitMore .cgx-visit-more-items button{border:0;border-radius:6px;text-align:left;padding:10px 12px;background:transparent;color:#e9f4f1;width:100%}
#cgxVisitMore .cgx-visit-more-items button:hover,#cgxVisitMore .cgx-visit-more-items button.cgx-unified-active{background:#295961;color:#aaffdf}
.cgx-unified-hint{font-size:.83rem;color:#c9dedb;margin:8px 0 0}
#cgxVisitRecordLinks{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:12px 0 5px}
#cgxVisitRecordLinks[hidden]{display:none!important}
#cgxVisitRecordLinks>span{font-size:.82rem;font-weight:750;color:#c9dedb;margin-right:3px}
#cgxVisitRecordLinks>button{padding:7px 12px!important;min-height:36px!important;font-size:.83rem!important}
body.cgx-visit-mode #cgxStepper,body.cgx-visit-mode #cgxSideBar{display:none!important}
body.cgx-visit-mode #patientView{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important;align-items:start!important}
body.cgx-visit-mode #patientView > *:not(#cgxVisitHub){display:none!important;position:static!important;max-height:none!important;overflow:visible!important;grid-column:1!important;grid-row:auto!important;min-width:0!important}
body.cgx-visit-mode #patientView > #cgxVisitHub{display:block!important;grid-column:1!important;grid-row:1!important;position:static!important}
body.cgx-visit-mode[data-cgx-visit-screen='overview'] #patientView > #cxVisitManager:not([hidden]),
body.cgx-visit-mode[data-cgx-visit-screen='overview'] #patientView > #cxWorkflowPanel:not([hidden]),
body.cgx-visit-mode[data-cgx-visit-screen='consultation'] #patientView > #consultationSection:not([hidden]),
body.cgx-visit-mode[data-cgx-visit-screen='history'] #patientView > #timelineSection:not([hidden]),
body.cgx-visit-mode[data-cgx-visit-screen='diagnostics'] #patientView > #savedRecordsSection:not([hidden]),
body.cgx-visit-mode[data-cgx-visit-screen='discharge'] #patientView > #patientReportsPanel:not([hidden]),
body.cgx-visit-mode[data-cgx-visit-screen='export'] #patientView > #cgxPimsQuickAccess:not([hidden]){display:block!important;grid-column:1!important;grid-row:auto!important}
body.cgx-visit-mode[data-cgx-visit-screen='export'] #cgxPimsQuickAccess>summary{display:none!important}
body.cgx-visit-mode[data-cgx-visit-screen='export'] #cgxPimsQuickAccess{border:0;background:transparent;margin:0;padding:0}
body.cgx-visit-mode[data-cgx-visit-screen='export'] #cgxPimsPanel{display:block;max-height:none;overflow:visible}
body.cgx-visit-mode #patientView #medicalProfileSection{display:none!important}
.cgx-owner-edit-action{font-size:.82rem!important;white-space:nowrap}
.cgx-owner-edit-action[hidden]{display:none!important}
@media(max-width:680px){#cgxVisitUnifiedTabs{gap:2px}#cgxVisitUnifiedTabs .cgx-unified-tabs button{padding:9px 10px!important;font-size:.8rem}#cgxVisitMore>summary{padding:9px 7px}body.cgx-visit-mode #cgxVisitHub{padding:13px!important}}

/* v119: Native, first-class Photos & AI tab within the consultation.
   Same #clinicPhotoWorkspace; no second photo store, model or handler. */
body.cgx-visit-mode[data-cgx-visit-screen='photos'] #patientView > #savedRecordsSection:not([hidden]){
 display:block!important;grid-column:1!important;grid-row:auto!important;position:static!important;
 max-height:none!important;overflow:visible!important;min-width:0!important}
body.cgx-visit-mode[data-cgx-visit-screen='photos'] #savedRecordsSection > :not(#clinicPhotoWorkspace){display:none!important}
body.cgx-visit-mode[data-cgx-visit-screen='photos'] #savedRecordsSection > #clinicPhotoWorkspace{display:block!important;margin:0!important}
body.cgx-visit-mode #cgxVisitUnifiedTabs .cgx-unified-tabs{flex-wrap:wrap;overflow:visible;white-space:normal}
body.cgx-visit-mode #cgxVisitUnifiedTabs .cgx-unified-tabs button[data-cgx-visit-tab='photos']{
 border-color:#487f7b!important;color:#c8f8e3!important}
body.cgx-visit-mode #cgxVisitUnifiedTabs .cgx-unified-tabs button[data-cgx-visit-tab='photos'].cgx-unified-active{
 color:#092c2a!important;background:#9bedd5!important;border-color:#79e3bf!important}
body.cgx-visit-mode #cgxVisitHub .cgx-hero-actions{display:none!important} /* duplicate shortcuts */
body.cgx-visit-mode #cgxVisitRecordLinks{scroll-margin-top:18px}
body.cgx-visit-mode #clinicPhotoWorkspace{scroll-margin-top:18px}
body.cgx-visit-mode[data-cgx-visit-screen='photos'] #cgxVisitUnifiedHint{color:#cef1e6}
@media (max-width:680px){body.cgx-visit-mode #cgxVisitUnifiedTabs .cgx-unified-tabs button{font-size:.79rem;padding:8px 9px!important}}
