/* Case Plan tab */

/* ─── Case Plan Styles ─── */
.cp-progress-ring { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.cp-progress-ring svg { transform: rotate(-90deg); }
.cp-progress-ring .ring-bg { fill: none; stroke: #e2e8f0; stroke-width: 10; }
.cp-progress-ring .ring-fg { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.8s cubic-bezier(.4,0,.2,1), stroke 0.4s; }
.cp-progress-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cp-progress-label .score-num { font-family: 'Outfit', sans-serif; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.cp-progress-label .score-text { font-size: 0.7rem; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }

.cp-goal-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: #fff; margin-bottom: 8px; transition: all 0.15s; }
.cp-goal-item:hover { border-color: var(--teal-light); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.cp-goal-item.done { opacity: 0.6; }
.cp-goal-item.done .goal-text { text-decoration: line-through; color: var(--muted); }
.cp-goal-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.cp-goal-item .goal-text { flex: 1; font-size: 0.85rem; font-weight: 500; color: var(--navy); }
.cp-goal-item .goal-actions { display: flex; gap: 4px; }

.cp-action-table { width: 100%; border-collapse: collapse; }
.cp-action-table th { background: #f8fafc; padding: 10px 12px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); text-align: left; }
.cp-action-table td { padding: 10px 12px; font-size: 0.82rem; color: var(--slate); border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.cp-action-table tr:last-child td { border-bottom: none; }
.cp-action-table tr:hover td { background: #fafbfc; }
.cp-status-select { border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 0.76rem; font-weight: 600; outline: none; cursor: pointer; }
.cp-status-pending { background: #fef9c3; color: #a16207; }
.cp-status-ongoing { background: #dbeafe; color: #1d4ed8; }
.cp-status-completed { background: #dcfce7; color: #15803d; }

.cp-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 10px; background: #e2e8f0; outline: none; transition: background 0.3s; }
.cp-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); }
.cp-slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); cursor: pointer; border: none; }
