/* Physician-centered patient, examination and report workspaces.
   Responsive presentation; existing clinical data and save APIs are unchanged. */
#dashboard .cl-compact-patient .cl-dr-cockpit{margin:7px 0 12px;padding:14px 15px;background:linear-gradient(135deg,#f7fbfd,#eef7fa);border:1px solid #c5dce7;border-radius:12px}
#dashboard .cl-compact-patient .cl-dr-cockpit[hidden]{display:none!important}
#dashboard .cl-compact-patient .cl-dr-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
#dashboard .cl-compact-patient .cl-dr-section-heading h3{margin:0 0 4px;font-size:16px;color:#143b53}
#dashboard .cl-compact-patient .cl-dr-section-heading>strong{color:#143b53;font-size:13px}
#dashboard .cl-compact-patient .cl-dr-section-heading>small{color:#597387;font-size:11px}
#dashboard .cl-compact-patient .cl-dr-section-heading>button{padding:9px 13px;white-space:normal;font-size:12px}
#dashboard .cl-compact-patient .cl-dr-mini{color:#536f7e;font-size:11px;margin:3px 0 8px;line-height:1.5}
#dashboard .cl-compact-patient .cl-dr-safety-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
#dashboard .cl-compact-patient .cl-dr-safety{border:1px solid #d6e5ed;background:#fff;border-radius:9px;padding:11px 12px;min-width:0;line-height:1.45}
#dashboard .cl-compact-patient .cl-dr-safety>strong{display:block;color:#164a66;font-size:12px;margin-bottom:5px}
#dashboard .cl-compact-patient .cl-dr-safety.cl-dr-allergy{border-left:4px solid #c68958}
#dashboard .cl-compact-patient .cl-dr-safety.cl-dr-med{border-left:4px solid #4e96a9}
#dashboard .cl-compact-patient .cl-dr-safety.cl-dr-history{border-left:4px solid #92a6b0}
#dashboard .cl-compact-patient .cl-dr-lines{padding-left:16px;margin:2px 0;font-size:11px;line-height:1.5;color:#25445a}
#dashboard .cl-compact-patient .cl-dr-lines li{margin-bottom:4px;overflow-wrap:anywhere}
#dashboard .cl-compact-patient .cl-dr-cockpit-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:9px}
#dashboard .cl-compact-patient .cl-dr-brief-panel{background:#fff;border:1px solid #dce9f1;border-radius:10px;min-width:0;padding:12px 13px}
#dashboard .cl-compact-patient .cl-dr-brief-panel h4{font-size:13px;color:#184a65;margin:0 0 8px}
#dashboard .cl-compact-patient .cl-dr-brief-panel button{font-size:11px;padding:7px 10px;margin:7px 0 0}
#dashboard .cl-compact-patient .cl-dr-date{color:#637d8d;font-size:11px;font-weight:600}
#dashboard .cl-compact-patient .cl-dr-exam-guide{border:1px solid #d2e2ea;background:#f5fafc;border-radius:11px;margin:2px 0 14px;padding:12px 13px}
#dashboard .cl-compact-patient .cl-dr-exam-guide[hidden]{display:none!important}
#dashboard .cl-compact-patient .cl-dr-exam-guide .cl-dr-safety-grid{margin:7px 0}
#dashboard .cl-compact-patient .cl-dr-step-nav{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#dashboard .cl-compact-patient .cl-dr-step-nav button{font-size:11px;padding:7px 9px;border-radius:7px}
#dashboard .cl-compact-patient .cl-dr-step-nav button:last-child{background:#0e708b;color:#fff}
#dashboard .cl-compact-patient #clDoctorDocBox{grid-column:1/-1;grid-area:evidence;background:#f9fcfe;border:1px solid #cce0ec;border-radius:9px;padding:13px 14px;margin-top:4px}
#dashboard .cl-compact-patient #clDoctorDocBox[hidden]{display:none!important}
#dashboard .cl-compact-patient #clDoctorDocBox h3{margin:0;font-size:14px}
#dashboard .cl-compact-patient .cl-dr-file-controls{display:grid;grid-template-columns:minmax(160px,.9fr) minmax(180px,1.2fr) auto;align-items:center;gap:8px}
#dashboard .cl-compact-patient .cl-dr-file-controls select,
#dashboard .cl-compact-patient .cl-dr-file-controls input{margin:0;min-width:0;font-size:12px;padding:8px}
#dashboard .cl-compact-patient .cl-dr-file-controls button{font-size:11px;padding:9px 11px}
#dashboard .cl-compact-patient .cl-dr-doc-status{font-size:11px;color:#4c6f80;margin:9px 0 3px}
#dashboard .cl-compact-patient .cl-dr-file-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #d8e9f0;background:#fff;border-radius:8px;margin:6px 0;padding:8px 10px}
#dashboard .cl-compact-patient .cl-dr-file-row>div{min-width:0;overflow-wrap:anywhere}
#dashboard .cl-compact-patient .cl-dr-file-row strong{font-size:12px}
#dashboard .cl-compact-patient .cl-dr-file-row button{font-size:11px;padding:6px 9px}
#dashboard .cl-compact-patient .cl-encounter-fields{grid-template-areas:"date complaint" "history examination" "vitals vitals" "assessment treatment" "recommendations recommendations" "profile profile" "evidence evidence" "footer footer"}
#clDoctorReportNavigation{display:flex;flex-wrap:wrap;gap:6px;padding:10px 14px;border:1px solid #d2e1ea;border-radius:9px;margin:8px 0;background:#f5fafc}
#clDoctorReportNavigation button{font-size:11px;padding:7px 9px;white-space:normal}
#clDoctorReportNavigation + .cl-dr-mini{font-size:11px;color:#637887;margin:3px 0 12px}
@media(max-width:1050px){
 #dashboard .cl-compact-patient .cl-dr-cockpit-grid{grid-template-columns:1fr}
 #dashboard .cl-compact-patient .cl-dr-file-controls{grid-template-columns:1fr 1fr}
 #dashboard .cl-compact-patient .cl-dr-file-controls button{grid-column:1/-1}
}
@media(max-width:850px){
 #dashboard .cl-compact-patient .cl-dr-safety-grid{grid-template-columns:1fr}
 #dashboard .cl-compact-patient .cl-dr-file-controls{grid-template-columns:1fr}
 #dashboard .cl-compact-patient .cl-dr-file-controls button{grid-column:1}
 #dashboard .cl-compact-patient .cl-encounter-fields{grid-template-areas:"date" "complaint" "history" "examination" "vitals" "assessment" "treatment" "recommendations" "profile" "evidence" "footer"}
}

/* Gmail + shared-pool sources in today's encounter, responsive image previews. */
#clDoctorGmailSources{padding:13px 14px;margin:13px 0 16px;border:1px solid #d4e5ed;background:#fff;border-radius:10px}
#clDoctorGmailSources h4{color:#153a52;font-size:14px;margin:0 0 7px}
#clDoctorGmailSources .cl-dr-gmail-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
#clDoctorGmailSources .cl-dr-gmail-toolbar button{font-size:12px;padding:9px 12px}
#clDoctorGmailSources .cl-dr-gmail-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:10px}
#clDoctorGmailSources .cl-dr-gmail-item{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:12px;padding:10px;border:1px solid #d9e5ee;border-radius:9px;background:#f8fbfd;min-width:0}
#clDoctorGmailSources .cl-dr-gmail-preview{width:100%;height:120px;display:flex;align-items:center;justify-content:center;background:#eef3f8;border-radius:7px;overflow:hidden}
#clDoctorGmailSources .cl-dr-gmail-thumbnail{max-height:120px;max-width:100%;object-fit:contain}
#clDoctorGmailSources .cl-dr-gmail-file-icon{font-size:13px;font-weight:700;color:#5b7485;letter-spacing:.04em}
#clDoctorGmailSources .cl-dr-gmail-item-meta{min-width:0;overflow-wrap:anywhere}
#clDoctorGmailSources .cl-dr-gmail-item-meta strong{font-size:13px;color:#234a62}
#clDoctorGmailSources .cl-dr-gmail-item-meta select{width:100%;padding:8px;margin:6px 0;font-size:12px}
#clDoctorGmailSources .cl-dr-gmail-item-actions{display:flex;flex-wrap:wrap;gap:7px}
#clDoctorGmailSources .cl-dr-gmail-item-actions button{font-size:12px;padding:8px 11px}
#clDoctorGmailSources .cl-dr-gmail-attached{margin-top:15px}
@media(max-width:650px){
 #clDoctorGmailSources .cl-dr-gmail-items{grid-template-columns:1fr}
 #clDoctorGmailSources .cl-dr-gmail-item{grid-template-columns:105px minmax(0,1fr)}
 #clDoctorGmailSources .cl-dr-gmail-preview{height:105px}
}
