/* assets/css/health.css — Motor Health */
.mh-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; }
.mh-steps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #ececef; border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; }
.mh-steps b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--wine, #6e040f); color: #fff; font-size: 12px; }

.mh-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.mh-form { position: sticky; top: 90px; display: grid; gap: 12px; padding: 18px; border: 1px solid #ececef; border-radius: 16px; background: #fff; }
.mh-form h2 { margin: 0; font-size: 16px; }
.mh-field { display: grid; gap: 5px; }
.mh-field label { font-size: 12.5px; font-weight: 600; }
.mh-field label small { font-weight: 400; color: var(--muted, #6b7280); }
.mh-field select, .mh-field input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; box-sizing: border-box; }
.mh-help { font-size: 11.5px; color: var(--muted, #6b7280); }
.mh-err { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 12.5px; }
.mh-submit { min-height: 44px; font-size: 14px; }
.mh-privacy { margin: 0; font-size: 11.5px; color: var(--muted, #6b7280); text-align: center; }

.mh-result { display: grid; gap: 14px; }
.mh-summary { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid #ececef; border-radius: 16px; background: #fff; }
.mh-ring { position: relative; flex: none; width: 104px; height: 104px; }
.mh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mh-ring circle { fill: none; stroke-width: 11; }
.mh-ring .bg { stroke: #f1f1f3; }
.mh-ring .fg { stroke: #059669; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .6s ease; }
.mh-ring.is-yellow .fg { stroke: #d97706; }
.mh-ring.is-red .fg { stroke: #dc2626; }
.mh-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; }
.mh-sum-text h2 { margin: 0 0 4px; font-size: 18px; }
.mh-sum-text p { margin: 0; font-size: 12.5px; color: var(--muted, #6b7280); }
.mh-counts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px !important; }
.mh-chip { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.mh-chip.is-red { background: #fef2f2; color: #b91c1c; }
.mh-chip.is-yellow { background: #fffbeb; color: #b45309; }
.mh-chip.is-green { background: #ecfdf5; color: #047857; }

.mh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
.mh-result > * { min-width: 0; }
.mh-item { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid #ececef; border-left-width: 4px; border-radius: 12px; background: #fff; }
.mh-item.is-red { border-left-color: #dc2626; }
.mh-item.is-yellow { border-left-color: #d97706; }
.mh-item.is-green { border-left-color: #059669; }
.mh-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mh-item-head b { font-size: 14.5px; }
.mh-badge { flex: none; padding: 2px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.is-red .mh-badge { background: #fef2f2; color: #b91c1c; }
.is-yellow .mh-badge { background: #fffbeb; color: #b45309; }
.is-green .mh-badge { background: #ecfdf5; color: #047857; }
.mh-bar { height: 7px; margin: 10px 0 8px; border-radius: 999px; background: #f1f1f3; overflow: hidden; }
.mh-bar i { display: block; height: 100%; border-radius: inherit; background: #059669; }
.is-yellow .mh-bar i { background: #d97706; }
.is-red .mh-bar i { background: #dc2626; }
.mh-info { margin: 0; font-size: 12.5px; font-weight: 600; }
.mh-last { margin: 2px 0 0; font-size: 11.5px; color: var(--muted, #6b7280); }
.mh-tips { margin-top: 6px; font-size: 12px; color: var(--muted, #6b7280); }
.mh-tips summary { cursor: pointer; color: var(--wine, #6e040f); font-weight: 600; }
.mh-tips p { margin: 4px 0 0; line-height: 1.5; }
.mh-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mh-btns .btn-info { min-height: 32px; font-size: 12px; padding: 0 12px; }
.mh-edit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mh-edit input { min-height: 34px; padding: 0 10px; border: 1px solid #d1d5db; border-radius: 8px; font: inherit; font-size: 13px; }
.mh-edit input[type=number] { width: 180px; }
.mh-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; background: #fffbeb; font-size: 12.5px; color: #92400e; }
.mh-note p { margin: 0; flex: 1; min-width: 220px; line-height: 1.5; }

@media (max-width: 900px) {
  .mh-layout { grid-template-columns: 1fr; }
  .mh-form { position: static; }
  .mh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mh-summary { gap: 14px; padding: 14px; }
  .mh-ring { width: 84px; height: 84px; }
  .mh-ring b { font-size: 20px; }
  .mh-steps li { padding: 10px; font-size: 12px; }
}

/* Penunjuk progres (langkah 1-4) */
.mh-steps li { padding: 0; }
.mh-steps a { display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; padding: 12px 14px; color: inherit; text-decoration: none; border-radius: 12px; box-sizing: border-box; }
.mh-steps li { transition: border-color .15s, background .15s; }
.mh-steps span { display: flex; flex-direction: column; min-width: 0; }
.mh-steps small { font-size: 11.5px; font-weight: 500; color: var(--muted, #6b7280); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-steps li:not(.is-done):not(.is-active):not(.is-alert) b { background: #e5e7eb; color: #6b7280; }
.mh-steps li.is-active { border-color: var(--wine, #6e040f); }
.mh-steps li.is-done b { background: #059669; font-size: 0; }
.mh-steps li.is-done b::after { content: "✓"; font-size: 13px; }
.mh-steps li.is-done small { color: #047857; font-weight: 700; }
.mh-steps li.is-alert { border-color: #f59e0b; background: #fffbeb; }
.mh-steps li.is-alert b { background: #d97706; }
.mh-steps li.is-alert.is-red { border-color: #fca5a5; background: #fef2f2; }
.mh-steps li.is-alert.is-red b { background: #dc2626; }
.mh-steps li.is-alert small { color: #b45309; font-weight: 700; }
.mh-steps li.is-alert.is-red small { color: #b91c1c; }
.mh-steps li.is-locked a { cursor: default; }
.mh-steps li:not(.is-locked) a:hover { background: #fafafa; }
.mh-item.is-focus { box-shadow: 0 0 0 3px rgba(217, 119, 6, .35); }
.mh-fresh { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #ecfdf5; color: #047857; font-size: 11px; font-weight: 700; }
@media (max-width: 640px) {
  .mh-steps small { white-space: normal; }
  .mh-steps a { align-items: flex-start; }
}
