.dh-egfr-calculator { width: 100%; padding: 0; }

.dh-egfr-calculator *,
.dh-egfr-calculator *::before,
.dh-egfr-calculator *::after { box-sizing: border-box; }

.dh-egfr-card {
    max-width: 100%;
    margin: 0;
    padding: 18px;
    border-radius: var(--radius-xl, 16px);
    background: var(--color-bg-primary, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    box-shadow: none;
}

.dh-egfr-header {
    text-align: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 3px solid #edb133;
}

.dh-egfr-kicker {
    margin: 0 0 6px;
    color: var(--color-text-muted, #64748b);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dh-egfr-title {
    margin: 0 0 4px;
    color: #346af1;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 800;
    line-height: 1.15;
}

.dh-egfr-subtitle {
    margin: 0;
    color: var(--color-text-muted, #6b7280);
    font-size: 0.78rem;
}

.dh-egfr-info {
    background: rgba(52, 106, 241, 0.08);
    border: 1px solid #edb133;
    border-left: 4px solid #edb133;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 0.78rem;
    color: #1f2937;
    line-height: 1.5;
}

.dh-egfr-section-title {
    margin: 18px 0 10px;
    padding-left: 10px;
    border-left: 4px solid #edb133;
    color: #346af1;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dh-egfr-inputs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

.dh-egfr-question {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #346af1;
    border-radius: 8px;
    padding: 12px;
}

.dh-egfr-question--full { grid-column: 1 / -1; }

.dh-egfr-question-title {
    color: #346af1;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.dh-egfr-question-desc {
    color: #6b7280;
    font-size: 0.72rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.dh-egfr-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dh-egfr-input {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    background: #fff;
    color: #1f2937;
}

.dh-egfr-input:focus {
    outline: none;
    border-color: #346af1;
    box-shadow: 0 0 0 3px rgba(52, 106, 241, 0.15);
}

.dh-egfr-input-unit {
    font-size: 0.78rem;
    font-weight: 800;
    color: #6b7280;
    min-width: 50px;
}

.dh-egfr-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.dh-egfr-options--inline {
    flex-direction: row;
    gap: 12px;
}

.dh-egfr-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
}

.dh-egfr-option:hover {
    background: rgba(52, 106, 241, 0.08);
    border-color: #edb133; color: #1f2937;
}

.dh-egfr-option.is-selected {
    background: #346af1;
    border-color: #346af1;
    color: #fff;
}

.dh-egfr-actions { margin-top: 16px; }

.dh-egfr-primary {
    width: 100%;
    min-height: 48px;
    padding: 14px;
    background: #346af1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s ease;
}

.dh-egfr-primary:hover { background: #2855d4; }

.dh-egfr-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.82rem;
    font-weight: 600;
}

.dh-egfr-results {
    margin-top: 18px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    animation: dhEgfrFadeIn 0.3s ease;
}

@keyframes dhEgfrFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dh-egfr-pontuacao {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1;
}

.dh-egfr-pontuacao-unit {
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 8px;
}

.dh-egfr-interpretacao {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}

.dh-egfr-descricao {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 12px;
    color: #1f2937;
}

.dh-egfr-detail {
    background: #fff;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    text-align: left;
}

.dh-egfr-detail-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dh-egfr-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.78rem;
}

.dh-egfr-detail-item:last-child { border-bottom: none; }
.dh-egfr-detail-item span:first-child { color: #6b7280; font-weight: 600; }
.dh-egfr-detail-item span:last-child { color: #1f2937; font-weight: 700; }

.dh-egfr-detail-item--alert {
    border-top: 2px solid #346af1;
    padding-top: 10px;
    margin-top: 6px;
    border-bottom: none;
}

.dh-egfr-detail-item--alert span:first-child { color: #346af1; font-weight: 800; }
.dh-egfr-detail-item--alert span:last-child { color: #346af1; }

.dh-egfr-detail--guidance {
    background: rgba(52, 106, 241, 0.08);
    border: 1px solid #edb133;
}

.dh-egfr-detail--guidance .dh-egfr-detail-title { color: #92400e; }

.dh-egfr-guidance-text {
    font-size: 0.78rem;
    color: #1f2937;
    line-height: 1.55;
}

.dh-egfr-results--estagio1 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border: 2px solid #346af1; }
.dh-egfr-results--estagio1 .dh-egfr-pontuacao,
.dh-egfr-results--estagio1 .dh-egfr-interpretacao { color: #346af1; }

.dh-egfr-results--estagio2 { background: linear-gradient(135deg, #e0f2fe, #bae6fd); border: 2px solid #346af1; }
.dh-egfr-results--estagio2 .dh-egfr-pontuacao,
.dh-egfr-results--estagio2 .dh-egfr-interpretacao { color: #059669; }

.dh-egfr-results--estagio3a { background: linear-gradient(135deg, #fef3c7, #fde68a); border: 2px solid #edb133; }
.dh-egfr-results--estagio3a .dh-egfr-pontuacao,
.dh-egfr-results--estagio3a .dh-egfr-interpretacao { color: #d97706; }

.dh-egfr-results--estagio3b { background: linear-gradient(135deg, #fed7aa, #fdba74); border: 2px solid #f97316; }
.dh-egfr-results--estagio3b .dh-egfr-pontuacao,
.dh-egfr-results--estagio3b .dh-egfr-interpretacao { color: #ea580c; }

.dh-egfr-results--estagio4 { background: linear-gradient(135deg, #fee2e2, #fecaca); border: 2px solid #ef4444; }
.dh-egfr-results--estagio4 .dh-egfr-pontuacao,
.dh-egfr-results--estagio4 .dh-egfr-interpretacao { color: #dc2626; }

.dh-egfr-results--estagio5 { background: linear-gradient(135deg, #e5e5e5, #d4d4d4); border: 2px solid #3f3f46; }
.dh-egfr-results--estagio5 .dh-egfr-pontuacao,
.dh-egfr-results--estagio5 .dh-egfr-interpretacao { color: #18181b; }

.dh-egfr-collapsible {
    background: #346af1;
    color: #fff;
    cursor: pointer;
    padding: 12px 14px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 8px;
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dh-egfr-collapsible:hover { background: #2855d4; }
.dh-egfr-collapsible.is-open { border-radius: 8px 8px 0 0; }
.dh-egfr-collapsible-icon { transition: transform 0.3s; }
.dh-egfr-collapsible.is-open .dh-egfr-collapsible-icon { transform: rotate(180deg); }

.dh-egfr-collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.dh-egfr-collapsible-inner {
    padding: 14px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: #1f2937;
}

.dh-egfr-table {
    width: 100%;
    border-collapse: collapse;
}

.dh-egfr-table th {
    background: #346af1;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dh-egfr-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: #1f2937;
}

.dh-egfr-table tbody tr:last-child td { border-bottom: none; }

.dh-egfr-formula {
    background: #e8f4f8;
    border: 2px solid #346af1;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-bottom: 12px;
}

.dh-egfr-formula-content {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.5;
}

.dh-egfr-formula-content sup { font-size: 0.62rem; }

.dh-egfr-def {
    margin: 6px 0;
    font-size: 0.78rem;
    color: #1f2937;
}

.dh-egfr-def strong { color: #346af1; }

.dh-egfr-reference {
    margin-top: 16px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    font-size: 0.7rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 500px) {
    .dh-egfr-inputs-grid { grid-template-columns: 1fr; }
    .dh-egfr-options--inline { flex-direction: column; }
    .dh-egfr-pontuacao { font-size: 2.1rem; }
}
