/* Odontograma do prontuário (02/10): vermelho = a tratar, azul = já existe, X = ausente */
.od-caixa { position: relative; display: grid; gap: 10px; }
.od-topo { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.od-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #F1F4F9; border-radius: 12px; padding: 4px; }
.od-seg button { border: 0; background: none; padding: 5px 11px; border-radius: 9px; font: 600 13px var(--sans); color: #4A5875; cursor: pointer; }
.od-seg button[aria-pressed="true"] { background: #14213D; color: #fff; font-weight: 800; }
.od-rolar { overflow-x: auto; }
.od-svg { display: block; width: 100%; min-width: 640px; max-width: 860px; height: auto; margin: 0 auto; }
.od-svg text { font: 700 10px var(--sans); fill: #4A5875; }
.od-face { fill: #fff; stroke: #94A3B8; stroke-width: 1; cursor: pointer; transition: fill .3s ease; }
.od-face:hover { fill: #ECFDF5; }
.od-face.od-t { fill: #DC2626; }
.od-face.od-f { fill: #2563EB; }
.od-raiz { fill: #FDFBF7; stroke: #94A3B8; cursor: pointer; }
.od-raiz-imp { fill: #F8FAFC; }
.od-implante { fill: #2563EB; }
.od-coroa { fill: #fff; stroke: #94A3B8; cursor: pointer; transition: fill .3s ease; }
.od-coroa.od-f { fill: #2563EB; }
.od-canal { stroke-width: 3; stroke-linecap: round; fill: none; }
.od-canal.od-t { stroke: #DC2626; } .od-canal.od-f { stroke: #2563EB; }
.od-x { stroke-width: 2.6; stroke-linecap: round; pointer-events: none; }
.od-xa { stroke: #334155; } .od-xt { stroke: #DC2626; }
.od-letra { font: 800 10px var(--sans); fill: #fff; pointer-events: none; }
.od-meio { stroke: #CBD5E1; stroke-dasharray: 4 4; }
.od-ver .od-face, .od-ver .od-raiz, .od-ver .od-coroa { cursor: default; }
.od-ver .od-face:hover { fill: #fff; }
.od-ver .od-face.od-t:hover { fill: #DC2626; } .od-ver .od-face.od-f:hover { fill: #2563EB; }
.od-legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 12.5px; color: #4A5875; }
.od-q { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.od-q.od-t { background: #DC2626; } .od-q.od-f { background: #2563EB; }
.od-resumo td.od-sit-t { color: #B91C1C; font-weight: 800; }
.od-resumo td.od-sit-f { color: #1D4ED8; font-weight: 800; }
.od-resumo td.od-sit-x { color: #334155; font-weight: 800; }
.od-nada { margin: 0; }
/* O balão do dente */
.od-balao { position: absolute; z-index: 20; width: 300px; background: #fff; border: 1px solid #E3E8F2; border-radius: 14px; box-shadow: 0 14px 34px rgba(20, 33, 61, .18); padding: 12px; display: grid; gap: 8px; font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) { .od-balao { animation: od-abre .2s ease; } @keyframes od-abre { from { opacity: 0; transform: scale(.97); } } }
.od-balao b { font-size: 14.5px; }
.od-faces, .od-ops { display: flex; flex-wrap: wrap; gap: 4px; }
.od-ops { display: grid; grid-template-columns: 1fr 1fr; }
.od-ops.od-falta { outline: 2px solid #F59E0B; outline-offset: 3px; border-radius: 8px; }
.od-balao button { border: 1.5px solid #E3E8F2; background: #fff; border-radius: 8px; padding: 4px 8px; font: 700 13px var(--sans); color: #14213D; cursor: pointer; text-align: left; display: flex; gap: 6px; align-items: center; }
.od-balao button[aria-pressed="true"] { background: #14213D; color: #fff; border-color: #14213D; }
.od-balao button:focus-visible, .od-seg button:focus-visible { outline: 2px solid #10B981; outline-offset: 2px; }
.od-balao textarea { border: 1.5px solid #C9D3E6; border-radius: 10px; padding: 6px 8px; font: 400 13px var(--sans); resize: none; height: 46px; }
.od-rodape { display: flex; justify-content: flex-end; gap: 6px; }
.od-rodape .od-salvar { background: #10B981; border-color: #10B981; color: #fff; }
@media (max-width: 560px) { .od-balao { width: calc(100% - 8px); left: 4px !important; } }
/* No registro assinado, o odontograma ocupa a largura toda do cartão */
.pt-cartao dl dt:has(+ dd .od-ver), .pt-cartao dl dd:has(.od-ver) { grid-column: 1 / -1; }
