/* 交接作業共用：完成進度條、流程時間軸、首頁儀表板 */

/* 進度條：寬度以 5% 為一階的 class 設定（Blade 不使用 inline style） */
.ho-progress { height: 0.6rem; background: var(--ho-line-soft); border-radius: 0.3rem; overflow: hidden; }
.ho-progress.ho-progress-lg { height: 1rem; }
.ho-progress .ho-bar { height: 100%; background: var(--ho-success); transition: width 0.4s ease; }
.ho-progress .ho-bar.ho-bar-warn { background: var(--ho-warning); }
.ho-progress .ho-bar.ho-bar-muted { background: var(--ho-faint); }
.ho-bar-0 { width: 0; } .ho-bar-5 { width: 5%; } .ho-bar-10 { width: 10%; } .ho-bar-15 { width: 15%; } .ho-bar-20 { width: 20%; }
.ho-bar-25 { width: 25%; } .ho-bar-30 { width: 30%; } .ho-bar-35 { width: 35%; } .ho-bar-40 { width: 40%; } .ho-bar-45 { width: 45%; }
.ho-bar-50 { width: 50%; } .ho-bar-55 { width: 55%; } .ho-bar-60 { width: 60%; } .ho-bar-65 { width: 65%; } .ho-bar-70 { width: 70%; }
.ho-bar-75 { width: 75%; } .ho-bar-80 { width: 80%; } .ho-bar-85 { width: 85%; } .ho-bar-90 { width: 90%; } .ho-bar-95 { width: 95%; } .ho-bar-100 { width: 100%; }
.ho-progress-label { font-size: 0.8rem; color: var(--ho-muted); white-space: nowrap; }
.ho-progress-wrap { display: flex; align-items: center; gap: 0.5rem; min-width: 8rem; }
.ho-progress-wrap .ho-progress { flex: 1 1 auto; }

/* 流程時間軸（橫向步驟） */
.ho-timeline { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; list-style: none; }
.ho-timeline .ho-step { flex: 1 1 0; min-width: 120px; position: relative; text-align: center; padding: 0 0.25rem 0.25rem; }
.ho-timeline .ho-step::before { content: ""; position: absolute; top: 0.9rem; left: 0; right: 0; height: 3px; background: var(--ho-line); z-index: 0; }
.ho-timeline .ho-step:first-child::before { left: 50%; }
.ho-timeline .ho-step:last-child::before { right: 50%; }
.ho-timeline .ho-step.ho-step-done::before { background: var(--ho-success); }
.ho-timeline .ho-step.ho-step-current::before { background: linear-gradient(90deg, var(--ho-success) 50%, var(--ho-line) 50%); }
.ho-timeline .ho-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 1.85rem; height: 1.85rem; border-radius: 50%; background: #fff; border: 3px solid var(--ho-line); color: var(--ho-faint); font-size: 0.8rem; }
.ho-timeline .ho-step-done .ho-dot { background: var(--ho-success); border-color: var(--ho-success); color: #fff; }
.ho-timeline .ho-step-current .ho-dot { border-color: var(--ho-primary); color: var(--ho-primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15); }
.ho-timeline .ho-step-label { display: block; font-weight: 600; font-size: 0.85rem; margin-top: 0.3rem; }
.ho-timeline .ho-step-current .ho-step-label { color: var(--ho-primary); }
.ho-timeline .ho-step-meta { display: block; font-size: 0.75rem; color: var(--ho-muted); line-height: 1.3; }
.ho-timeline .ho-step-note { display: block; font-size: 0.75rem; color: var(--ho-danger); }
.ho-timeline-cancelled .ho-step::before { background: var(--ho-line); }
.ho-timeline-cancelled .ho-step-current .ho-dot { border-color: var(--ho-muted); color: var(--ho-muted); box-shadow: none; }
.ho-timeline-base { font-size: 0.85rem; color: var(--ho-muted); }

/* 首頁儀表板 */
.ho-dash-list .ho-dash-item { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--ho-line-soft); }
.ho-dash-list .ho-dash-item:last-child { border-bottom: 0; }
.ho-dash-list .ho-dash-main { flex: 1 1 260px; min-width: 0; }
.ho-dash-list .ho-dash-title { font-weight: 600; margin-bottom: 0.15rem; }
.ho-dash-list .ho-dash-title a { color: var(--ho-ink); }
.ho-dash-list .ho-dash-next { font-size: 0.85rem; color: var(--ho-text); }
.ho-dash-list .ho-dash-next.ho-dash-next-mine { color: var(--ho-primary); font-weight: 600; }
.ho-dash-list .ho-dash-progress { flex: 0 1 220px; }
.ho-dash-list .ho-dash-flags { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.ho-dash-list .ho-dash-action { flex: 0 0 auto; }
.ho-dash-empty { padding: 1.25rem 1rem; color: var(--ho-muted); text-align: center; }
.ho-quick-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ho-quick-actions .btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.ho-dash-stat .info-box-number { font-size: 1.6rem; }
.ho-dash-stat .info-box-text { white-space: normal; }
.ho-dash-welcome { color: var(--ho-muted); margin-bottom: 0; }
@media (max-width: 767px) {
    .ho-timeline .ho-step { flex-basis: 33%; }
    .ho-dash-list .ho-dash-progress { flex-basis: 100%; }
}

/* 淺色主題（2026-10-16）：時間軸節點加大、完成節點漸層、目前步驟光暈 */
.ho-timeline .ho-dot { width: 2.2rem; height: 2.2rem; font-size: 0.85rem; font-weight: 600; }
.ho-timeline .ho-step::before { top: 1.05rem; }
.ho-timeline .ho-step-done .ho-dot { background: linear-gradient(135deg, #22c55e, var(--ho-success)); border-color: transparent; box-shadow: 0 4px 10px rgba(22, 163, 74, 0.25); }
.ho-timeline .ho-step-current .ho-dot { background: var(--ho-primary-soft); box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.12); animation: ho-pulse 2.4s ease-in-out infinite; }
.ho-timeline .ho-step-label { margin-top: 0.45rem; color: var(--ho-ink); }
.ho-timeline .ho-step:not(.ho-step-done):not(.ho-step-current) .ho-step-label { color: var(--ho-faint); font-weight: 500; }
@keyframes ho-pulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.12); } 50% { box-shadow: 0 0 0 9px rgba(79, 70, 229, 0.06); } }
@media (prefers-reduced-motion: reduce) { .ho-timeline .ho-step-current .ho-dot { animation: none; } }
.ho-progress { border-radius: 999px; }
.ho-progress .ho-bar { border-radius: 999px; background: linear-gradient(90deg, #22c55e, var(--ho-success)); }
.ho-dash-list .ho-dash-item { padding: 0.9rem 1.25rem; transition: background-color 0.15s ease; }
.ho-dash-list .ho-dash-item:hover { background: #fafbff; }
.ho-quick-actions .btn { padding: 0.5rem 0.9rem; }
