.dentistry-consultations details{padding:16px;border:1px solid #c6dbdd;border-radius:12px;margin:18px 0}.dentistry-consultations summary{font-weight:700;cursor:pointer}.dentistry-consultations .specialty-timeline h3{font-size:19px}.dentistry-tooth-preview{display:flex;align-items:center;gap:24px;margin:12px 0;padding:16px;background:#f0f7f7;border-radius:12px;min-height:112px}.dentistry-tooth-preview .tooth-map{width:72px;height:72px;flex-shrink:0}.dentistry-tooth-preview .tooth-lateral{width:80px;height:118px;flex-shrink:0}.dentistry-tooth-preview>b{font-size:26px;color:#0a7469}.dentistry-dialog .dentistry-procedure{background:#f5f9fa}.dentistry-dialog section{scroll-margin-top:110px}.dentistry-dialog input[type=checkbox]{flex-shrink:0}.dentistry-dialog .specialty-check{margin:7px 0}.dentistry-dialog legend{color:#1b615a}.dentistry-consultations .specialty-visit p{line-height:1.6}
@media(max-width:600px){.dentistry-dialog .specialty-field-grid{grid-template-columns:1fr}.dentistry-consultations .specialty-actions .btn{width:100%}.dentistry-tooth-preview{justify-content:center}}

/* Restore the established full odontogram: original drawings, colored cards,
   condition names and a scoped detail panel. Never stretch only the tooth map. */
.dentistry-established-odontogram{min-width:0;margin:20px 0}
.dentistry-dialog{width:min(1400px,calc(100vw - 28px))}
.dentistry-established-odontogram .dentistry-odontogram-workspace{grid-template-columns:minmax(0,1fr) 300px;min-width:0;gap:18px}
.dentistry-odontogram-workspace>div{min-width:0}
.dentistry-arch{min-width:0;border:0!important;padding:0!important;margin:0 0 18px!important}
.dentistry-arch h5{font-size:13px;margin:8px 0;color:var(--muted)}
.dentistry-arch-scroll{overflow-x:auto;padding:5px;max-width:100%;overscroll-behavior-x:contain}
.dentistry-established-odontogram .odontogram{grid-template-columns:repeat(var(--teeth-per-arch),minmax(48px,1fr));gap:5px;margin:0;padding:4px 0 8px;overflow:visible}
.dentistry-established-odontogram .tooth{min-width:48px;padding:8px 2px;min-height:168px;transform:none}
.dentistry-established-odontogram .tooth small{font-size:10px;line-height:1.25;overflow-wrap:anywhere}
.dentistry-established-odontogram .tooth .tooth-map{width:38px;height:42px}
.dentistry-established-odontogram .tooth .tooth-lateral{width:48px;height:70px}
.dentistry-established-odontogram .tooth-detail{position:static;min-width:0}
.dentistry-established-odontogram .tooth-detail label{font-size:13px}
.dentistry-established-odontogram .surface-picker{grid-template-columns:1fr 1fr;gap:8px}
.dentistry-established-odontogram .surface-picker label,.dentistry-established-odontogram .region-picker label{display:flex;gap:7px;font-size:12px;align-items:center}
.dentistry-established-odontogram input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:none;accent-color:var(--primary)}
.dentistry-established-odontogram .tooth-detail .btn{margin:8px 0}
.dentistry-established-odontogram .odontogram-legend{padding-top:14px;border-top:1px solid var(--line);font-size:12px;line-height:1.4}
.dentistry-established-odontogram .tooth-history span{display:inline}
.dentistry-established-odontogram .dentition-switch{max-width:100%}
.dentistry-established-odontogram .dentition-switch .seg{min-width:0;flex:1;white-space:normal}
.dentistry-pending-tooth{font-weight:800;color:#8d4d00}
@media(max-width:1300px){.dentistry-established-odontogram .dentistry-odontogram-workspace{grid-template-columns:1fr}.dentistry-established-odontogram .tooth-detail{max-width:100%}}
@media(max-width:600px){.dentistry-established-odontogram .dentition-switch{width:100%}.dentistry-established-odontogram .dentition-switch .seg{font-size:14px;padding:10px 7px}}
