.dh-fi-calculator { width: 100%; padding: 0; }
.dh-fi-calculator *,
.dh-fi-calculator *::before,
.dh-fi-calculator *::after { box-sizing: border-box; }

.dh-fi-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); }
.dh-fi-header { text-align: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 3px solid #edb133; }
.dh-fi-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-fi-title { margin: 0 0 4px; color: #346af1; font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 800; line-height: 1.15; }
.dh-fi-subtitle { margin: 0; color: var(--color-text-muted, #6b7280); font-size: 0.78rem; }
.dh-fi-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-fi-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-fi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dh-fi-field { background: #f9fafb; border: 1px solid #e5e7eb; border-left: 4px solid #346af1; border-radius: 8px; padding: 14px; }
.dh-fi-field-titulo { color: #346af1; font-size: 0.78rem; font-weight: 800; margin-bottom: 8px; }
.dh-fi-input { width: 100%; min-height: 44px; padding: 10px 12px; border: 2px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.85rem; font-weight: 600; color: #1f2937; background: #fff; }
.dh-fi-input:focus { outline: none; border-color: #346af1; }

.dh-fi-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; margin-top: 8px; }
.dh-fi-primary:hover { background: #2855d4; }

.dh-fi-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; text-align: center; }

.dh-fi-results { display: none; margin-top: 18px; padding: 20px; border-radius: 12px; background: linear-gradient(135deg, #e8f4f8, #dbeafe); border: 2px solid #346af1; }
.dh-fi-results.is-show { display: block; animation: dhFiFadeIn 0.3s ease; }
@keyframes dhFiFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.dh-fi-resultado-titulo { font-size: 1rem; font-weight: 800; color: #346af1; text-align: center; margin-bottom: 14px; }

.dh-fi-num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.dh-fi-num-card { background: #fff; border-radius: 8px; padding: 12px 8px; text-align: center; border: 1px solid #e5e7eb; }
.dh-fi-num-card--highlight { background: #346af1; border-color: #346af1; }
.dh-fi-num-card--highlight .dh-fi-num-label,
.dh-fi-num-card--highlight .dh-fi-num-sub { color: #a8d4e0; }
.dh-fi-num-card--highlight .dh-fi-num-valor { color: #fff; }
.dh-fi-num-label { font-size: 0.6rem; font-weight: 800; color: #6b7280; text-transform: uppercase; margin-bottom: 4px; }
.dh-fi-num-valor { font-size: 1.25rem; font-weight: 800; color: #346af1; line-height: 1.1; margin-bottom: 2px; }
.dh-fi-num-sub { font-size: 0.6rem; color: #6b7280; }

.dh-fi-detail { background: #fff; border-radius: 8px; padding: 14px; margin-top: 12px; text-align: left; }
.dh-fi-detail-title { font-size: 0.72rem; font-weight: 800; color: #1f2937; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.dh-fi-detail-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #e5e7eb; font-size: 0.74rem; gap: 10px; }
.dh-fi-detail-item:last-child { border-bottom: none; }
.dh-fi-detail-item span:first-child { color: #6b7280; font-weight: 600; flex: 1; }
.dh-fi-detail-item span:last-child { color: #1f2937; font-weight: 700; }
.dh-fi-detail p { font-size: 0.74rem; line-height: 1.6; color: #1f2937; }
.dh-fi-detail--atencao { background: rgba(52, 106, 241, 0.08); border: 1px solid #edb133; }
.dh-fi-detail--atencao .dh-fi-detail-title { color: #92400e; }
.dh-fi-detail strong { color: #346af1; }

.dh-fi-tabela-wrap { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 8px; }
.dh-fi-tabela { width: 100%; border-collapse: collapse; }
.dh-fi-tabela th { background: #346af1; color: #fff; font-size: 0.65rem; font-weight: 800; padding: 8px 10px; text-align: left; text-transform: uppercase; }
.dh-fi-tabela td { padding: 8px 10px; font-size: 0.74rem; color: #374151; border-bottom: 1px solid #e5e7eb; line-height: 1.4; }
.dh-fi-tabela tr:last-child td { border-bottom: none; }
.dh-fi-col-idade { font-weight: 800; color: #346af1; }
.dh-fi-tabela tr.is-active td { background: #e8f4f8; font-weight: 800; }

.dh-fi-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; margin-bottom: 10px; }
.dh-fi-chip { padding: 8px 14px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; cursor: pointer; border: 2px solid #e5e7eb; background: #fff; color: #1f2937; font-family: inherit; transition: all 0.2s; min-height: 36px; }
.dh-fi-chip:hover { background: rgba(52, 106, 241, 0.08); border-color: #edb133; color: #1f2937; }
.dh-fi-chip.is-selected { background: #346af1; color: #fff; border-color: #346af1; }

.dh-fi-formula-detail { background: #f9fafb; border: 1px solid #e5e7eb; border-left: 4px solid #346af1; border-radius: 8px; padding: 14px; margin-top: 10px; display: none; }
.dh-fi-formula-detail.is-show { display: block; animation: dhFiFadeIn 0.3s ease; }
.dh-fi-formula-detail-titulo { color: #346af1; font-size: 0.85rem; font-weight: 800; margin-bottom: 8px; }
.dh-fi-formula-detail-item { display: flex; gap: 10px; margin-top: 6px; font-size: 0.74rem; line-height: 1.5; }
.dh-fi-formula-detail-label { color: #346af1; font-weight: 800; min-width: 80px; flex-shrink: 0; }
.dh-fi-formula-detail-value { color: #1f2937; flex: 1; }

.dh-fi-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.6; }

@media (max-width: 500px) { .dh-fi-grid { grid-template-columns: 1fr; } .dh-fi-num-grid { grid-template-columns: repeat(2, 1fr); } }
