/* ══════════════════════════════════════════════════════════
   ODONTOGRAMMA — Estratto da form_pieces/odontogramma.html
   ══════════════════════════════════════════════════════════ */

.odontogram-container {
    background: var(--surface-alt, #F8FAFC);
    border: 1px solid var(--border, #E2E8F0);
    border-radius: 12px;
    padding: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.odontogram-row {
    display: flex;
    justify-content: center;
    gap: 0;
}
.odontogram-quadrant {
    flex: 1;
    padding: 8px;
}
.quadrant-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 8px;
}
.teeth-row {
    display: flex;
    justify-content: center;
    gap: 4px;
}
.tooth {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.15s;
    user-select: none;
}
.tooth:hover { transform: scale(1.12); }
.tooth-svg {
    width: 36px;
    height: 44px;
}
.tooth-shape {
    fill: #FFFFFF;
    stroke: #B0BEC5;
    stroke-width: 1.5;
    transition: fill 0.2s, stroke 0.2s;
}
.tooth-cross {
    stroke: #E0E0E0;
    stroke-width: 0.5;
}
.tooth-number {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary, #546E7A);
    margin-top: 2px;
}
.tooth.selected .tooth-shape {
    fill: var(--primary, #1565C0);
    stroke: var(--primary-dark, #0D47A1);
}
.tooth.selected .tooth-cross {
    stroke: rgba(255,255,255,0.3);
}
.tooth.selected .tooth-number {
    color: var(--primary, #1565C0);
    font-weight: 700;
}
.odontogram-divider-v {
    width: 2px;
    background: var(--border, #E2E8F0);
    margin: 0 4px;
    border-radius: 1px;
}
.odontogram-divider-h {
    height: 2px;
    background: var(--border, #E2E8F0);
    margin: 8px 0;
    border-radius: 1px;
}
.odontogram-legend {
    display: flex;
    align-items: center;
}
.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 4px;
    vertical-align: middle;
}
.legend-dot-selected { background: var(--primary, #1565C0); }
.legend-dot-default { background: #FFFFFF; border: 1.5px solid #B0BEC5; }

@media (max-width: 600px) {
    .tooth-svg { width: 28px; height: 34px; }
    .tooth-number { font-size: 0.55rem; }
    .odontogram-container { padding: 12px; }
    .teeth-row { gap: 2px; }
}
