/* Odontogram tooth grid cells */
.tooth-cell {
    width: 46px;
    height: 52px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(0,0,0,0.12);
    transition: transform 0.15s, box-shadow 0.15s;
    font-size: 0.65rem;
    font-weight: 700;
    color: #1f2937;
    gap: 2px;
    position: relative;
}

.tooth-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    z-index: 1;
}

.tooth-cell .tooth-fdi {
    font-size: 0.7rem;
    font-weight: 800;
    opacity: 0.85;
}

.tooth-cell .tooth-flags {
    font-size: 0.5rem;
    display: flex;
    gap: 1px;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1;
}

.tooth-midline {
    width: 2px;
    background: #374151;
    border-radius: 2px;
    align-self: stretch;
    margin: 0 2px;
}

.tooth-jaw-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Patient search dropdown */
.patient-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
}

.patient-dropdown-item {
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 0.9rem;
}

.patient-dropdown-item:hover {
    background-color: rgba(102, 126, 234, 0.08);
}
