/* Pediatrics — vaccination chart rows */
.pf-ped-assessment-dx .form-label {
    margin-bottom: 0.2rem;
}

@media (min-width: 768px) {
    .pf-ped-assessment-dx > .row.align-items-end {
        --bs-gutter-x: 0.5rem;
    }
}

.pf-ped-vaccine-chart-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    background: #f8fafc;
}

.pf-ped-vaccine-summary {
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.pf-ped-vaccine-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.pf-ped-vaccine-row .form-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.pf-ped-purpose {
    font-size: 0.8rem;
    line-height: 1.35;
    min-height: 2.4rem;
    resize: vertical;
}

.pf-ped-mandatory-badge.mandatory {
    background: #fef3c7;
    color: #92400e;
}

.pf-ped-mandatory-badge.optional {
    background: #e0f2fe;
    color: #0369a1;
}

.pf-ped-chart-header {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    padding: 0 0.25rem 0.35rem;
}

/* Growth / immunization — compact single-row fields on desktop */
@media (min-width: 992px) {
    .pf-ped-vitals-row .form-label,
    .pf-ped-imm-status-row .form-label {
        font-size: 0.72rem;
        margin-bottom: 0.15rem;
        white-space: nowrap;
    }
}

/* Sidebar age banner + growth chart */
.pf-ped-nav .pf-ped-age-banner .card-body {
    line-height: 1.35;
}

.pf-ped-age-dob {
    font-size: 0.72rem;
}

.pf-ped-age-ym {
    font-size: 0.95rem;
    color: #0f172a;
}

.pf-ped-nav-growth-chart .card-body,
.pf-ped-nav-obesity .card-body {
    padding: 0.5rem 0.55rem;
}

.pf-ped-nav-obesity .form-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pf-ped-nav-obesity #pfPedObesityRisk[readonly] {
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #f8fafc;
}

.pf-ped-nav-obesity #pfPedObesityRisk[readonly].is-obese {
    color: #b45309;
    background-color: #fffbeb;
}

.pf-ped-nav-obesity #pfPedObesityRisk[readonly].is-underweight {
    color: #b91c1c;
    background-color: #fef2f2;
}

.pf-ped-nav-growth-title {
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.pf-ped-nav-growth-svg-host {
    width: 100%;
    min-height: 0;
    overflow-x: auto;
}

.pf-ped-nav-growth-svg-host:has(.pf-ped-growth-dashboard--focus) {
    min-height: 0;
}

.pf-ped-growth-dashboard {
    min-width: 0;
}

.pf-ped-growth-card {
    margin-bottom: 0.35rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.pf-ped-growth-card:last-of-type {
    margin-bottom: 0;
}

.pf-ped-growth-card--weight {
    border-top: 2px solid #3b82f6;
}

.pf-ped-growth-card--height {
    border-top: 2px solid #e11d48;
}

.pf-ped-growth-card--head {
    border-top: 2px solid #16a34a;
}

.pf-ped-growth-card-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    margin: 0;
    border: 0;
    background: #f8fafc;
    padding: 0.38rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    cursor: pointer;
    line-height: 1.2;
}

.pf-ped-growth-card-toggle:hover,
.pf-ped-growth-card-toggle:focus-visible {
    background: #f1f5f9;
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.pf-ped-growth-card-label {
    flex: 1;
    min-width: 0;
}

.pf-ped-growth-card-summary {
    font-weight: 500;
    color: #64748b;
    font-size: 0.62rem;
    white-space: nowrap;
}

.pf-ped-growth-card-chevron {
    display: block;
    width: 0.42rem;
    height: 0.42rem;
    margin-left: 0.1rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.pf-ped-growth-card.is-expanded .pf-ped-growth-card-chevron {
    transform: rotate(-135deg);
}

.pf-ped-growth-card.is-collapsed .pf-ped-growth-card-chevron {
    transform: rotate(-45deg);
}

.pf-ped-growth-card-chart {
    border-top: 1px solid #e2e8f0;
}

.pf-ped-growth-card.is-collapsed .pf-ped-growth-card-toggle {
    padding: 0.42rem 0.5rem;
}

.pf-ped-growth-dashboard--focus .pf-ped-growth-pct-legend {
    margin-top: 0.25rem;
}

.pf-ped-growth-svg {
    width: 100%;
    height: auto;
    display: block;
}

.pf-ped-growth-grid {
    stroke: #e8eef4;
    stroke-width: 0.5;
}

.pf-ped-growth-pct {
    fill: none;
    stroke-width: 0.85;
    stroke-linecap: round;
}

.pf-ped-growth-pct--p97 { stroke: #cbd5e1; }
.pf-ped-growth-pct--p85 { stroke: #d1d5db; }
.pf-ped-growth-pct--p50 { stroke: #94a3b8; stroke-width: 1.1; }
.pf-ped-growth-pct--p15 { stroke: #d1d5db; }
.pf-ped-growth-pct--p3 { stroke: #cbd5e1; }

.pf-ped-growth-svg--weight .pf-ped-growth-pct--p50 { stroke: #60a5fa; }
.pf-ped-growth-svg--height .pf-ped-growth-pct--p50 { stroke: #fb7185; }
.pf-ped-growth-svg--head .pf-ped-growth-pct--p50 { stroke: #4ade80; }

.pf-ped-growth-panel-title {
    font-size: 7px;
    font-weight: 700;
    fill: #334155;
}

.pf-ped-growth-axis-y,
.pf-ped-growth-axis-x {
    font-size: 6px;
    fill: #94a3b8;
}

.pf-ped-growth-axis-x {
    text-anchor: middle;
}

.pf-ped-growth-axis-x-title {
    font-size: 6px;
    fill: #64748b;
    font-weight: 600;
}

.pf-ped-growth-point--history {
    fill: #64748b;
    opacity: 0.9;
}

.pf-ped-growth-svg--weight .pf-ped-growth-point--history { fill: #3b82f6; opacity: 0.55; }
.pf-ped-growth-svg--height .pf-ped-growth-point--history { fill: #e11d48; opacity: 0.55; }
.pf-ped-growth-svg--head .pf-ped-growth-point--history { fill: #16a34a; opacity: 0.55; }

.pf-ped-growth-svg--weight .pf-ped-growth-current-marker .pf-ped-growth-dot,
.pf-ped-growth-svg--weight .pf-ped-growth-current-marker .pf-ped-growth-glow,
.pf-ped-growth-svg--weight .pf-ped-growth-current-marker .pf-ped-growth-ping {
    fill: #2563eb;
}

.pf-ped-growth-svg--height .pf-ped-growth-current-marker .pf-ped-growth-dot,
.pf-ped-growth-svg--height .pf-ped-growth-current-marker .pf-ped-growth-glow,
.pf-ped-growth-svg--height .pf-ped-growth-current-marker .pf-ped-growth-ping {
    fill: #e11d48;
}

.pf-ped-growth-svg--head .pf-ped-growth-current-marker .pf-ped-growth-dot,
.pf-ped-growth-svg--head .pf-ped-growth-current-marker .pf-ped-growth-glow,
.pf-ped-growth-svg--head .pf-ped-growth-current-marker .pf-ped-growth-ping {
    fill: #16a34a;
}

.pf-ped-growth-current-marker .pf-ped-growth-dot {
    stroke: #fff;
    stroke-width: 1.2;
}

.pf-ped-growth-current-marker .pf-ped-growth-glow {
    opacity: 0.35;
    animation: pf-ped-growth-glow 2s ease-in-out infinite;
}

.pf-ped-growth-current-marker .pf-ped-growth-ping {
    opacity: 0.4;
    animation: pf-ped-growth-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.pf-ped-growth-pct-legend {
    font-size: 0.62rem;
    line-height: 1.3;
    padding: 0 0.15rem;
}

.pf-ped-growth-pct-key {
    font-weight: 600;
}

.pf-ped-growth-empty-msg {
    padding: 0 0.25rem;
}

@keyframes pf-ped-growth-ping {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }
    70%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@keyframes pf-ped-growth-glow {
    0%, 100% {
        opacity: 0.25;
        r: 5;
    }
    50% {
        opacity: 0.55;
        r: 7;
    }
}

.pf-ped-legend-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    vertical-align: -1px;
    margin-right: 2px;
}

.pf-ped-legend-current {
    background: #2563eb;
    box-shadow: 0 0 4px rgba(37, 99, 235, 0.45);
}

.pf-ped-legend-history {
    background: #64748b;
}

.pf-snapshot-ped-age {
    white-space: nowrap;
}
