
/* Odontograma estilo Apple (2026-10-28): control segmentado Hallazgo/Realizado con píldora deslizante, herramientas en 2 columnas, sin scroll interno */
#odontogramaModal { --om-rojo: #e11d48; --om-rojo-bg: #fff1f3; --om-azul: #2563eb; --om-azul-bg: #eaf1ff; --om-fill: #f2f4f8; }
#odontogramaModal[data-modo="azul"] { --om-on: var(--om-azul); --om-on-bg: var(--om-azul-bg); }
#odontogramaModal, #odontogramaModal[data-modo="rojo"] { --om-on: var(--om-rojo); --om-on-bg: var(--om-rojo-bg); }
#odontogramaModal[data-modo="azul"] { --om-on: var(--om-azul); --om-on-bg: var(--om-azul-bg); }
html body #odontogramaModal .odonto-modo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border: 0; border-radius: 14px; background: var(--om-fill); }
html body #odontogramaModal .odonto-modo .om-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.12), 0 4px 10px -4px rgba(15,23,42,.18); transition: transform .28s cubic-bezier(.22,1,.36,1); }
#odontogramaModal[data-modo="azul"] .odonto-modo .om-thumb { transform: translateX(100%); }
html body #odontogramaModal .odonto-modo button { position: relative; z-index: 1; flex-direction: row; gap: 8px; min-height: 44px; padding: 0 10px; border: 0 !important; background: transparent !important; color: var(--muted); font-size: .95rem; }
html body #odontogramaModal .odonto-modo button b { font-size: .95rem; font-weight: 700; }
html body #odontogramaModal .odonto-modo button.act { color: var(--ink); }
html body #odontogramaModal .odonto-modo .om-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; opacity: .55; transition: opacity .2s; }
html body #odontogramaModal .odonto-modo .modo-rojo .om-dot { background: var(--om-rojo); }
html body #odontogramaModal .odonto-modo .modo-azul .om-dot { background: var(--om-azul); }
html body #odontogramaModal .odonto-modo button.act .om-dot { opacity: 1; }
html body #odontogramaModal .odonto-modo button:focus-visible { outline: 2px solid var(--om-on); outline-offset: 1px; }
.odonto-modo-hint { order: 0; margin: -4px 2px 2px; font-size: .78rem; line-height: 1.25; color: var(--muted); }
@media (min-width: 835px) {
  html body #odontogramaModal .odonto-body { grid-template-columns: 336px minmax(0, 1fr) !important; }
  html body #odontogramaModal .odonto-side { gap: 8px; padding: 14px 14px 10px; overflow-y: auto; scrollbar-width: thin; }
  html body #odontogramaModal .odonto-g { display: grid !important; grid-template-columns: 1fr 1fr; gap: 6px !important; margin: 0 0 6px !important; }
  html body #odontogramaModal .odonto-g > .odonto-grp { grid-column: 1 / -1; margin: 8px 2px 0 !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--muted); }
  html body #odontogramaModal .odonto-tool-chip { min-height: 40px !important; height: auto; padding: 6px 10px !important; gap: 8px; border: 1.5px solid transparent; border-radius: 12px; background: var(--om-fill); font-size: .8rem !important; font-weight: 600; line-height: 1.15; white-space: normal; text-align: left; box-shadow: none; transition: background .15s, border-color .15s, transform .12s; }
  html body #odontogramaModal .odonto-tool-chip:hover { background: #e8ecf3; border-color: transparent; }
  html body #odontogramaModal .odonto-tool-chip:active { transform: scale(.97); }
  html body #odontogramaModal .odonto-tool-chip.active { background: var(--om-on-bg); border-color: var(--om-on); color: var(--om-on); box-shadow: none; }
  html body #odontogramaModal .odonto-tool-chip:focus-visible { outline: 2px solid var(--om-on); outline-offset: 1px; }
  html body #odontogramaModal .odonto-tool-chip .tool-dot { width: 12px !important; height: 12px !important; }
}
@media (min-width: 835px) and (max-height: 820px) {
  html body #odontogramaModal .odonto-tool-chip { min-height: 38px !important; height: auto; font-size: .78rem !important; }
}
