/* ============================================================
   Görevler / Yapılacaklar — sayfa + panel widget ortak stilleri.
   ============================================================ */

/* — Sayfa başlığı — */
.gv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-4); }
.gv-title { font-size: var(--fs-xl); font-weight: 800; margin: 0; color: var(--text); }
.gv-sub { margin: 4px 0 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* — İstatistik kartları — */
.gv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-4); }
/* Sol ikon-çipi + gövde (diğer sayfalardaki istatistik kartı deseni) */
.gv-stat { display: flex; align-items: center; gap: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--space-3) var(--space-4); }
.gv-stat-ico { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); }
.gv-stat-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gv-stat-body { min-width: 0; }
.gv-stat-val { font-size: var(--fs-xl); font-weight: 800; color: var(--text); line-height: 1.1; }
.gv-stat-label { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.gv-stat--red .gv-stat-val { color: var(--red); }
.gv-stat--red .gv-stat-ico { background: var(--red-soft); color: var(--red); }
.gv-stat--green .gv-stat-val { color: var(--green); }
.gv-stat--green .gv-stat-ico { background: var(--green-soft); color: var(--green); }

/* — Araç çubuğu (filtre sekmeleri + kişi) — */
.gv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.gv-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.gv-tab { padding: 8px var(--space-3); font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); border: 1px solid transparent; border-radius: var(--radius-sm); background: transparent; cursor: pointer; }
.gv-tab:hover { color: var(--text); background: var(--surface-alt); }
.gv-tab.is-active { color: var(--brand); border-bottom: 2px solid var(--brand); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.gv-kisi { max-width: 240px; }

/* — Görev satırı (sayfa + widget) — */
.gv-list { display: flex; flex-direction: column; gap: 8px; }
.gv-row { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.gv-row.is-overdue { border-color: var(--red); }
.gv-row.is-done { opacity: .62; }
.gv-row.is-done .gv-baslik { text-decoration: line-through; }

.gv-check { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background var(--transition), border-color var(--transition); padding: 0; }
.gv-check:hover { border-color: var(--brand); }
.gv-check.on { background: var(--green); border-color: var(--green); }
.gv-check svg { width: 14px; height: 14px; }

.gv-main { flex: 1; min-width: 0; }
.gv-line1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gv-prio { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.gv-baslik { font-weight: 700; color: var(--text); font-size: var(--fs-sm); }
.gv-aciklama { color: var(--text-muted); font-size: var(--fs-xs); margin-top: 2px; }
.gv-meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-top: 4px; font-size: var(--fs-xs); color: var(--text-muted); }
.gv-who { color: var(--green); font-weight: 600; }

.gv-badge { font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: var(--radius-full); background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }
.gv-badge--rep { background: var(--brand-tint); color: var(--brand); border-color: transparent; }
.gv-badge--red { background: var(--red-tint, rgba(220,38,38,.1)); color: var(--red); border-color: transparent; }

.gv-actions { display: flex; gap: 4px; flex-shrink: 0; }
.gv-iconbtn { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gv-iconbtn:hover { color: var(--text); border-color: var(--border-strong); }
.gv-iconbtn--danger:hover { color: var(--red); border-color: var(--red); }
.gv-iconbtn svg { width: 15px; height: 15px; }

.gv-empty { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); padding: var(--space-8) var(--space-4); background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }

/* — Form modalı — */
.gv-form .field { margin-bottom: var(--space-3); }
.gv-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 560px) { .gv-form-grid { grid-template-columns: 1fr; } .gv-stats { grid-template-columns: repeat(3, 1fr); } }

/* — Panel widget'ı (Görevler) — */
.gw-tasks { display: flex; flex-direction: column; gap: 6px; }
.gw-tasks .gv-row { padding: 8px var(--space-3); }
.gw-foot { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.gw-foot .text-muted { font-size: var(--fs-xs); }
.gw-empty { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); padding: var(--space-5) var(--space-3); }

/* — Kişisel Notlar widget'ı — */
.gw-notes { display: block; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 120px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3); font: inherit; font-size: var(--fs-sm); color: var(--text); background: var(--surface); }
.gw-notes:focus { outline: none; border-color: var(--brand); }
.gw-note-hint { font-size: var(--fs-xs); color: var(--text-faint); margin-top: 4px; }

/* — Düşük stok / Çok satan mini liste — */
.gw-mini { display: flex; flex-direction: column; gap: 4px; }
.gw-mini-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 6px 8px; border-radius: var(--radius-sm); }
.gw-mini-row:hover { background: var(--surface-alt); }
.gw-mini-name { font-size: var(--fs-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-mini-val { font-size: var(--fs-sm); font-weight: 700; flex-shrink: 0; }
.gw-mini-val--red { color: var(--red); }
.gw-mini-val--yellow { color: var(--yellow); }

/* — Günlük kasa hedefi — */
.gw-target-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: 8px; }
.gw-target-cur { font-size: var(--fs-xl); font-weight: 800; color: var(--text); }
.gw-target-goal { font-size: var(--fs-sm); color: var(--text-muted); }
.gw-target-bar { height: 10px; background: var(--surface-alt); border-radius: var(--radius-full); overflow: hidden; }
.gw-target-fill { height: 100%; background: var(--brand); border-radius: var(--radius-full); transition: width var(--transition); }
.gw-target-fill.is-met { background: var(--green); }
.gw-target-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-muted); }
.gw-target-edit { background: none; border: none; color: var(--brand); cursor: pointer; font-size: var(--fs-xs); font-weight: 600; padding: 0; }
