.goal-wrap{display:flex;flex-direction:column;gap:16px}
.goal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.goal-head h3{margin:0 0 4px}
.goal-actions{display:flex;gap:8px;flex-wrap:wrap}
.goal-btn{border:0!important;border-radius:10px;padding:9px 13px;cursor:pointer;font-weight:600;background:#e5e7eb!important;color:#111827!important}
.goal-primary{background:#111827!important;color:#fff!important}
.goal-danger{background:#fee2e2!important;color:#991b1b!important}
.goal-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.goal-kpi{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:14px}
.goal-kpi span{display:block;font-size:12px;color:#64748b;margin-bottom:6px}
.goal-kpi strong{font-size:24px}
.goal-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.goal-toolbar input,.goal-toolbar select{padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#fff}
.goal-search{min-width:280px}
.goal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.goal-card{background:#fff;border:1px solid #e5e7eb;border-radius:14px;padding:16px;cursor:pointer}
.goal-card:hover{border-color:#94a3b8}
.goal-card.overdue{border-color:#fecaca}
.goal-card h4{margin:8px 0 6px}
.goal-meta{font-size:12px;color:#64748b}
.goal-status{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:700}
.goal-status-active{background:#dcfce7;color:#166534}
.goal-status-completed{background:#dbeafe;color:#1d4ed8}
.goal-status-paused{background:#fef3c7;color:#92400e}
.goal-status-draft{background:#f1f5f9;color:#475569}
.goal-status-cancelled{background:#fee2e2;color:#991b1b}
.goal-progress{height:10px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin-top:10px}
.goal-progress>div{height:100%;background:#111827}
.goal-progress-line{display:flex;justify-content:space-between;gap:10px;margin-top:6px;font-size:12px;color:#64748b}
.goal-overdue{color:#b91c1c;font-weight:700}
.goal-modal-bg{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;padding:20px}
.goal-modal{width:min(900px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;padding:20px}
.goal-modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.goal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.goal-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600}
.goal-form input,.goal-form select,.goal-form textarea{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px}
.goal-full{grid-column:1/-1}
.goal-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;flex-wrap:wrap}
.goal-section{margin-top:20px;padding-top:16px;border-top:1px solid #e5e7eb}
.goal-milestone{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid #f1f5f9}
.goal-history{padding:10px 0;border-bottom:1px solid #f1f5f9}
.goal-empty{padding:28px;text-align:center;color:#64748b}
@media(max-width:900px){
  .goal-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .goal-grid{grid-template-columns:1fr}
}
@media(max-width:650px){
  .goal-kpis{grid-template-columns:1fr}
  .goal-form{grid-template-columns:1fr}
  .goal-full{grid-column:auto}
}
