/* ============================================================
   Page: dashboard — 24-kolon dinamik grid (widget registry).
   Her satır 24 birime bölünür; kutucuklar (--span) ile değişken
   genişlik alır. Mobil-öncelikli: varsayılan tam genişlik (24),
   ≥768px tablet (--span-md), ≥1200px masaüstü (--span-lg) devreye girer.
   Span'lar JS'ten (A.dashboard) inline CSS değişkeniyle verilir.
   ============================================================ */
/* Başlık satırı — sol: karşılama; sağ: tarih + güncel kurlar.
   Yalnız dashboard'a özel sınıf (.page-head--with-aside) → diğer sayfaların
   .page-head'i etkilenmez. Dar ekranda sağ blok alta sarar. */
.page-head--with-aside {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--space-5); flex-wrap: wrap;
}
.page-head-aside { text-align: right; flex: 0 0 auto; }
.pha-date { font-weight: 600; color: var(--text); white-space: nowrap; }
/* Tarih ile kurlar arasındaki çizgi — solid beyaz. Kurlar YAN YANA, küçük & normal ağırlık. */
.pha-rates {
  margin-top: var(--space-2); padding-top: var(--space-2);
  border-top: 1px solid #FFFFFF;
  display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; gap: 14px;
}
.pha-rate {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text);
}
.pha-rate .pha-flag {
  width: 18px; height: 12px; border-radius: 3px; flex: 0 0 auto;
  display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
}
.pha-rate .pha-code { color: var(--text-muted); font-weight: normal; }
.pha-rate .pha-val { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; font-weight: normal; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr)); /* minmax(0,..) uzun içerikte taşmayı önler */
  /* BENTO: kartlar İÇERİK yüksekliğinde; her satır = en uzun karta göre. Sabit 24px satır +
     row-span modeli BIRAKILDI (içerikle uyuşmayan span → taşma/masonry karışıklığı yapıyordu). */
  grid-auto-rows: auto;
  gap: 18px;
  align-items: stretch;                              /* aynı satırdaki kartlar eşit boy (en uzuna hizalı) */
  margin-bottom: var(--space-5);
}

/* ── Sürükle-boyutlandırma (her kullanıcı kendi panelini boyutlandırır) ──
   Kartın sağ-alt köşesinden (≈22px zon) çek: genişlik (kolon) + yükseklik (satır).
   Kişiye özel kaydedilir (dashboardPrefs.sizes). Görsel grip = `::after` pseudo
   (widget innerHTML'i ezse de silinmez; pointer-events yok → tıklamayı engellemez).
   Mobilde (<768, tek kolon) pasif/gizli. */
.dash-cell::after {
  content: ''; position: absolute; right: 4px; bottom: 4px; width: 11px; height: 11px;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  border-bottom-right-radius: 3px; opacity: 0; transition: opacity var(--transition), border-color var(--transition);
  pointer-events: none; z-index: 3;
}
.dash-cell:hover::after, .dash-cell.is-near-corner::after { opacity: .75; }
.dash-cell.is-near-corner::after { border-color: var(--brand); }
.dash-cell.is-resizing { outline: 2px dashed var(--brand); outline-offset: -2px; z-index: 5; }
.dash-cell.is-resizing .card { box-shadow: var(--shadow); }
@media (max-width: 767px) { .dash-cell::after { display: none; } }

/* Hücre — en (span) + boy (row-span) CSS değişkenleriyle. */
.dash-cell {
  grid-column: span var(--span, 24);
  grid-row: auto;        /* BENTO: tek satır, içerik yüksekliği (row-span yükseklik için kullanılmaz) */
  min-width: 0;
  position: relative;   /* sürükle-boyutlandırma tutamağı için */
}
/* Kutucuk içeriği (kart) ayrılan boyu doldurur → bir bantta hepsi eşit boy. */
.dash-cell > * { height: 100%; box-sizing: border-box; }

/* ── Kullanıcı YÜKSEKLİK boyutlandırması ────────────────────────────────────
   Varsayılan kartlar İÇERİK yüksekliğindedir (taşma yok). Kullanıcı sağ-alt köşeden
   YÜKSEKLİĞİ de değiştirince (sürükle-boyutlandır), o karta SABİT yükseklik verilir
   (büyür/küçülür) + içerik taşarsa kart-içi scroll. Birim ≈ resize rowStep (42px). */
.dash-cell.is-user-h { height: calc(var(--row-span, 4) * 42px); }
.dash-cell.is-user-h > * { height: 100%; overflow: auto; }
@media (max-width: 767px) { .dash-cell.is-user-h { height: auto; } .dash-cell.is-user-h > * { overflow: visible; } }

/* ── Tek kolon (mobil/dar): kartlar zaten alt alta yığılıyor; sabit row-span +
   height:100% burada ya içeriği taşırıyor (Finansal Nabız) ya da kısa kartta
   boşluk bırakıp sayfa sonunda boş scroll alanı oluşturuyordu. Tek kolonda
   row-span hizalamasının anlamı yok → doğal yüksekliğe bırak: her kart tam
   içeriği kadar, taşma/boşluk olmaz. (Çok kolonlu ≥768px'te row-span aktif kalır.) */
@media (max-width: 767px) {
  .dash-grid { grid-auto-rows: auto; }
  .dash-cell { grid-row: auto; }
  .dash-cell > * { height: auto; }
}

@media (min-width: 768px) {
  .dash-cell { grid-column: span var(--span-md, var(--span, 24)); }
}
@media (min-width: 1200px) {
  .dash-cell { grid-column: span var(--span-lg, var(--span-md, var(--span, 24))); }
}

/* ── Bekleyen İşler (KAHRAMAN) ───────────────────────────────────────────────
   Panonun kalbi: tam-satır tıklanır iş kuyruğu. Her satır sol kenarından önem
   rengiyle (kırmızı/sarı/mavi) işaretli; sağda sayaç + chevron. Native <button>. */
.dash-alerts { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; }
/* Başlık görünümü Bento (bento-dashboard.css): sade ikon-çipi + düz metin.
   Eski renkli gradient bant KALDIRILDI (2026-06-14 Bento geçişi). */
.dash-alerts-head { font-weight: 800; color: var(--text); margin: 0 0 var(--space-2); }
.dash-alerts-body { display: flex; flex-direction: column; gap: var(--space-2); }
.dash-alert-loading { padding: var(--space-2) 0; }
.dash-alert-row {
  width: 100%;
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-3); text-align: left;
  background: var(--surface); cursor: pointer;
  border: 1px solid var(--border); border-left: 4px solid var(--sev, var(--text-muted));
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.dash-alert-row:hover { background: var(--row-hover); transform: translateX(2px); }
.dash-alert--red    { --sev: var(--red); }
.dash-alert--yellow { --sev: var(--yellow); }
.dash-alert--blue   { --sev: var(--blue); }
.dash-alert-ico {
  flex: 0 0 auto; width: 22px; height: 22px;
  background-color: var(--ico-color, var(--text-muted));
  -webkit-mask: var(--ico) no-repeat center / contain;
          mask: var(--ico) no-repeat center / contain;
}
.dash-alert-text { flex: 1 1 auto; min-width: 0; color: var(--text); font-size: var(--fs-sm); }
.dash-alert-count {
  flex: 0 0 auto; font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  font-weight: 700; color: var(--sev, var(--text)); font-size: var(--fs-sm);
}
/* Tüm uyarılar temiz → tek satır yeşil onay. */
.dash-alert-clear {
  display: flex; align-items: center; gap: var(--space-3);
  color: var(--text-muted); font-size: var(--fs-sm); padding: var(--space-2) 0;
}
.dash-alert-clear-ico {
  flex: 0 0 auto; width: 20px; height: 20px;
  background-color: var(--ico-color, var(--green));
  -webkit-mask: var(--ico) no-repeat center / contain;
          mask: var(--ico) no-repeat center / contain;
}
.dash-alert-chev { flex: 0 0 auto; color: var(--text-faint); font-size: 20px; line-height: 1; }
.dash-alert-row:hover .dash-alert-chev { color: var(--sev, var(--text-muted)); }

/* ── Bugün — nabız kartı: büyük ciro + trend + sparkline + alt metrikler ────── */
.dash-pulse { padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; }
/* Başlık satırı: SOL başlık, SAĞ Bugün/Hafta/Ay toggle (ayrıldılar; ortalı hizalı). */
.dash-pulse-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.dash-pulse-label { font-weight: 600; color: var(--text-muted); }
.dash-pulse-trend { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.dash-pulse-trend small { font-weight: 400; color: var(--text-faint); }
.dash-pulse-trend.is-up   { color: var(--green); }
.dash-pulse-trend.is-down { color: var(--red); }
/* Değer satırı: büyük ciro (sol) + trend (sağ). */
.dash-pulse-valrow { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin: var(--space-2) 0; }
.dash-pulse-value {
  font-size: 2rem; font-weight: 700; color: var(--text); margin: 0;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.dash-pulse-spark { flex: 1 1 auto; min-height: 60px; display: flex; align-items: stretch; margin-top: var(--space-2); }
/* Mini sütun grafik — bugün vurgulu, gradient dolgu; her ölçekte keskin (HTML bar) */
.dash-bars { display: flex; align-items: stretch; gap: 6px; width: 100%; height: 100%; }
.dash-bar-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dash-bar-track { flex: 1 1 auto; display: flex; align-items: flex-end; min-height: 28px; }
.dash-bar { width: 100%; min-height: 4px; border-radius: 5px 5px 0 0;
  background: color-mix(in srgb, var(--brand) 20%, transparent); transition: height .35s ease; }
.dash-bar.is-today { background: linear-gradient(to top, var(--brand), color-mix(in srgb, var(--brand) 50%, #fff)); }
.dash-bar-lbl { text-align: center; font-size: 10px; font-weight: 600; color: var(--text-faint); }
.dash-bar-lbl.is-today { color: var(--brand); font-weight: 800; }
/* Satış nabzı dönem seçici (Bugün/Hafta/Ay) */
.dash-pulse-segs { display: inline-flex; gap: 2px; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 2px; flex: 0 0 auto; }
.dash-pulse-seg { border: none; background: transparent; color: var(--text-muted); font-weight: 700; font-size: 12px; padding: 3px 12px; border-radius: var(--radius-full); cursor: pointer; }
.dash-pulse-seg.is-active { background: var(--navy); color: #fff; }
.dash-pulse-subs { display: flex; gap: var(--space-3); margin-top: var(--space-3); flex-wrap: wrap; }
.dash-pulse-sub {
  flex: 1 1 0; display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: var(--space-2) var(--space-3); cursor: pointer;
  background: var(--surface-alt); border: 1px solid var(--border);
  transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease;
}
.dash-pulse-sub:hover {
  border-color: var(--brand);
  background: var(--brand-tint, color-mix(in srgb, var(--brand) 8%, var(--surface)));
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.dash-pulse-sub:hover .dash-pulse-sub-lbl,
.dash-pulse-sub:hover .dash-pulse-sub-val { color: var(--brand); }
.dash-pulse-sub-lbl { font-size: 12px; color: var(--text-muted); transition: color .14s ease; }
.dash-pulse-sub-val { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; transition: color .14s ease; }

/* (Finansal Nabız widget'ı kaldırıldı — .dash-nabiz* stilleri de silindi, 2026-06-07.) */

/* ── Tahsilat müşteri seçici (Hızlı İşlemler → Tahsilat Al modalı) ──────────── */
.dash-pick-list {
  margin-top: var(--space-3); max-height: 320px; overflow-y: auto;
  border: 1px solid var(--border);
}
.dash-pick-empty { padding: var(--space-4); color: var(--text-muted); font-size: var(--fs-sm); text-align: center; }
.dash-pick-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  padding: 10px var(--space-3); cursor: pointer;
  background: var(--surface); border: 0; border-bottom: 1px solid var(--border);
  transition: background .12s ease;
}
.dash-pick-item:last-child { border-bottom: 0; }
.dash-pick-item:hover { background: var(--row-hover); }
.dash-pick-name { font-weight: 600; color: var(--text); }
.dash-pick-sub { font-size: 12px; color: var(--text-muted); }

/* Hızlı İşlemler — grafiğin üstündeki aksiyon çubuğu. 6 buton tek satırda eşit
   genişlikte (flex:1 1 0 → eş pay, nowrap → tek satır), tam genişlik & simetrik. */
.dash-actions {
  display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}
.dash-actions .btn {
  flex: 1 1 0; min-width: 0; justify-content: center; white-space: nowrap;
  /* Her buton işleviyle uyumlu, SOLUK bir ton alır: --tone ilgili sistem token'ı;
     zemin token'ın yüzeyle çok düşük (~%10) karışımı → canlı değil, sakin; kenarlık
     ve yazı/ikon (stroke=currentColor) token renginde. Hover'da ton biraz koyulaşır. */
  color: var(--tone, var(--text));
  background: color-mix(in srgb, var(--tone, var(--text)) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--tone, var(--text)) 28%, var(--border));
}
.dash-actions .btn:hover {
  background: color-mix(in srgb, var(--tone, var(--text)) 17%, var(--surface));
  border-color: color-mix(in srgb, var(--tone, var(--text)) 46%, var(--border));
}
.dash-act--blue  { --tone: var(--blue); }
.dash-act--green { --tone: var(--green); }
.dash-act--red   { --tone: var(--red); }
.dash-act.is-dragging { opacity: .4; }
.dash-actions.is-editing .dash-act { cursor: grab; }
.dash-actions.is-editing .dash-act:active { cursor: grabbing; }
.dash-act--brand { --tone: var(--brand); }
.dash-act--navy  { --tone: var(--navy); }
.dash-act--muted { --tone: var(--text-muted); }
/* Birincil eylem (Satış Yap) — DOLU marka: görsel olarak baskın, diğerlerinden ayrışır. */
.dash-actions .btn.dash-act--primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}
.dash-actions .btn.dash-act--primary:hover {
  background: var(--brand-light, color-mix(in srgb, var(--brand) 88%, #000));
  border-color: var(--brand-light, color-mix(in srgb, var(--brand) 88%, #000));
}
/* Dar ekranda butonlar sarsın (tek satıra sıkışmasın). */
@media (max-width: 640px) {
  .dash-actions { flex-wrap: wrap; }
  .dash-actions .btn { flex: 1 1 40%; }
}

/* ── Ödeme Takvimi widget ───────────────────────────────────── */
.dash-cal { display: flex; flex-direction: column; }
/* Ödeme Takvimi / Son Hareketler başlığı — Bento sade (gradient bant KALDIRILDI). */
.dash-cal-head, .dash-feed-head { font-size: var(--fs-md); font-weight: 800; color: var(--text); margin: 0 0 var(--space-2); }
.dash-cal-head small { font-weight: 600; color: var(--text-muted); font-size: 12px; }
.dash-cal-body { display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.dash-cal-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2);
  width: 100%; text-align: left; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); padding: 5px 9px; cursor: pointer; }
.dash-cal-row:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.dash-cal-row.is-overdue { border-color: #f3c9c9; background: #fff8f8; }
.dash-cal-date { font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.dash-cal-late { color: var(--red); font-weight: 800; }
.dash-cal-tip { font-size: var(--fs-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-cal-amt { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-cal-amt.pos { color: var(--green); }
.dash-cal-amt.neg { color: var(--red); }
.dash-cal-empty { color: var(--text-muted); font-size: var(--fs-sm); padding: var(--space-4) var(--space-3); text-align: center; }

/* ── Son Hareketler (akış) widget ───────────────────────────── */
.dash-feed { display: flex; flex-direction: column; }
.dash-feed-body { display: flex; flex-direction: column; }
.dash-feed-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-2); padding: 5px 0; border-bottom: 1px solid var(--border); }
.dash-feed-row:last-child { border-bottom: none; }
.dash-feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.dash-feed--olustur .dash-feed-dot, .dash-feed--onay .dash-feed-dot { background: var(--green); }
.dash-feed--sil .dash-feed-dot, .dash-feed--iptal .dash-feed-dot { background: var(--red); }
.dash-feed--guncelle .dash-feed-dot, .dash-feed--geri_al .dash-feed-dot { background: var(--blue); }
.dash-feed-txt { font-size: var(--fs-sm); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-feed-time { font-size: var(--fs-xs); color: var(--text-muted); white-space: nowrap; }

/* ── Paneli Düzenle (kişiselleştirme) ──────────────────────── */
.dash-toolbar { display: flex; justify-content: flex-end; margin-bottom: var(--space-3); }
.dash-cust-list { display: flex; flex-direction: column; gap: 6px; }
.dash-cust-row { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 10px; background: var(--surface); }
.dash-cust-row.is-dragging { border-color: var(--brand); box-shadow: var(--shadow); opacity: .92; }
.dash-cust-grip { display: inline-flex; align-items: center; color: var(--text-faint); cursor: grab; touch-action: none; }
.dash-cust-grip:active { cursor: grabbing; }
.dash-cust-grip:hover { color: var(--brand); }
.dash-cust-move { display: flex; flex-direction: column; gap: 1px; }
.dash-cust-arrow { width: 22px; height: 16px; line-height: 1; border: 1px solid var(--border); background: var(--surface-alt);
  border-radius: 4px; cursor: pointer; font-size: 9px; color: var(--text-muted); padding: 0; }
.dash-cust-arrow:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.dash-cust-arrow:disabled { opacity: .35; cursor: default; }
.dash-cust-title { font-weight: 700; color: var(--navy); font-size: var(--fs-sm); }

/* ── Varlıklar / Borçlar bilanço tabloları ─────────────────── */
.dash-bal { display: flex; flex-direction: column; padding: var(--space-4) var(--space-5); }
/* Varlıklar/Borçlar başlığı — Bento sade (renkli gradient bant KALDIRILDI). */
.dash-bal-head { font-size: var(--fs-md); font-weight: 800; color: var(--text); margin: 0 0 var(--space-2); }
.dash-bal-rows { display: flex; flex-direction: column; }
.dash-bal-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; text-align: left; background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 8px 2px; cursor: pointer; }
.dash-bal-row:last-child { border-bottom: none; }
.dash-bal-row:hover { background: var(--row-hover); }
.dash-bal-lbl { font-size: var(--fs-sm); color: var(--text); }
.dash-bal-amt { font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Toplam tutar başlığın sağında (tablonun en üstü) */
.dash-bal-head-total { margin-left: auto; font-size: var(--fs-md); font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-bal--asset .dash-bal-head-total { color: var(--green); }
.dash-bal--liab .dash-bal-head-total { color: var(--red); }
.dash-bal-net { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--border); font-weight: 800; font-size: var(--fs-sm); color: var(--navy); }
.dash-bal-net .money { color: var(--navy); }
.dash-bal-net.is-neg .money { color: var(--red); }

/* ── Modül başlığı önündeki yuvarlatılmış ikon kutusu ─────────── */
.dash-head-ico { display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 9px; margin-right: 9px; vertical-align: middle; flex: 0 0 auto; }
.dash-head-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.dash-head-ico--brand { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.dash-head-ico--blue  { background: color-mix(in srgb, var(--blue) 14%, transparent);  color: var(--blue); }
.dash-head-ico--green { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.dash-head-ico--red   { background: color-mix(in srgb, var(--red) 14%, transparent);   color: var(--red); }
.dash-head-ico--navy  { background: color-mix(in srgb, var(--navy) 16%, transparent);  color: var(--navy); }
/* başlık metni ile ikon dikey ortalı dursun */
.dash-alerts-head, .dash-cal-head, .dash-feed-head, .dash-bal-head { display: flex; align-items: center; }
.dash-cal-head small { margin-left: 6px; }
.dash-pulse-label { display: inline-flex; align-items: center; }

/* ── İşletme Sağlığı Skoru ─────────────────────────────────── */
/* Kart .card space-5 padding'ini KULLANIR (eski padding:0 → başlık tam-genişlikti, çizgi
   kenara dayanıyordu). Böylece başlık+içerik diğer kartlarla aynı inset; çizgi de içeride. */
.dash-health { display: flex; flex-direction: column; }
.dash-health-head { display: flex; align-items: center; font-size: var(--fs-md); font-weight: 700; color: var(--navy); }
.dash-health-grade-badge { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--gc, var(--brand)); background: color-mix(in srgb, var(--gc, var(--brand)) 12%, transparent); border: 1px solid color-mix(in srgb, var(--gc, var(--brand)) 35%, transparent); padding: 3px 10px; border-radius: var(--radius-full); }
/* ── Fihrist widget (Son Hareketler yanında) ── */
.dash-fih { display: flex; flex-direction: column; }
/* Fihrist/Görevler/Notlar başlığı — Bento sade (gradient bant KALDIRILDI). */
.dash-fih-head { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--space-2); font-size: var(--fs-md); font-weight: 800; color: var(--text); }
.dash-fih-all { margin-left: auto; font-size: var(--fs-sm); font-weight: 700; color: var(--brand); text-decoration: none; }
.dash-fih-all:hover { text-decoration: underline; }
.dash-fih-body { padding: var(--space-2) 0; }
.dash-fih-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.dash-fih-row:last-child { border-bottom: none; }
.dash-fih-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-fih-name { font-size: var(--fs-sm); font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-fih-cat { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-fih-acts { display: inline-flex; gap: 6px; flex: 0 0 auto; }

/* 2 kolon: SOL içgörü metinleri | SAĞ skor grafiği + barlar */
.dash-health-2col { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr); gap: var(--space-5); align-items: center; padding: var(--space-3) var(--space-4) var(--space-4); }
@media (max-width: 720px) { .dash-health-2col { grid-template-columns: 1fr; } }
.dash-health-left { min-width: 0; align-self: start; }
.dash-health-left-h { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: var(--space-2); }
.dash-health-2col .dash-health-top { padding: 0; }
.dash-health-2col .dash-health-insights { border-top: none; padding: 0; }
.dash-health-2col .dash-health-ins { padding-left: 0; padding-right: var(--space-2); }
.dash-health-2col .dash-health-ins:first-child { padding-top: 0; }
.dash-health-top { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; padding: var(--space-3) var(--space-4); }
/* Gauge (donut + ortada skor) */
.dash-health-gauge { position: relative; width: 168px; height: 168px; flex: 0 0 auto; }
.dash-health-gauge .chrt-donut, .dash-health-gauge .chrt-donut-svg { margin: 0; width: 168px; height: 168px; display: block; }
.dash-health-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; pointer-events: none; }
.dash-health-score { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.dash-health-score span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.dash-health-grade { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-top: 4px; }
/* Boyut barları */
.dash-health-dims { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dash-health-dim-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.dash-health-dim-lbl { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.dash-health-dim-sc { font-size: var(--fs-sm); font-weight: 800; font-variant-numeric: tabular-nums; }
.dash-health-bar-track { height: 8px; background: var(--surface-alt); border-radius: var(--radius-full); overflow: hidden; }
.dash-health-bar { height: 100%; border-radius: inherit; transition: width .5s ease; }
/* Veri yok durumu */
.dash-health-empty { padding: var(--space-5) var(--space-4) var(--space-4); text-align: center; }
.dash-health-empty-big { font-size: var(--fs-md); font-weight: 800; color: var(--text); margin: 0 0 6px; }
.dash-health-empty-sub { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 auto var(--space-4); max-width: 420px; line-height: 1.5; }
.dash-health-empty .dash-health-dims { max-width: 420px; margin: 0 auto; text-align: left; }
.dash-health-dim--empty .dash-health-dim-lbl { color: var(--text-muted); }
.dash-health-dim--empty .dash-health-dim-sc { color: var(--text-faint); }
/* İçgörü satırları */
.dash-health-insights { border-top: 1px solid var(--border); padding: var(--space-2) 0; display: flex; flex-direction: column; }
.dash-health-ins { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--border); padding: 10px var(--space-4); cursor: pointer; transition: background .12s ease; }
.dash-health-ins:last-child { border-bottom: none; }
.dash-health-ins:hover { background: var(--surface-alt); }
.dash-health-ins-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.dash-health-ins-txt { flex: 1; min-width: 0; font-size: var(--fs-sm); color: var(--text); }
.dash-health-ins-chev { color: var(--text-muted); font-size: var(--fs-md); }
.dash-health-ins--good .dash-health-ins-dot { background: var(--green); }
.dash-health-ins--warn .dash-health-ins-dot { background: var(--brand); }
.dash-health-ins--bad .dash-health-ins-dot { background: var(--red); }
@media (max-width: 560px) { .dash-health-top { justify-content: center; } .dash-health-gauge { width: 150px; height: 150px; } }

/* CRM Takipleri widget */
.dash-crm { display: flex; flex-direction: column; }
.dash-crm-head { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-md); margin: 0 0 var(--space-2); }
.dash-crm-body { display: flex; flex-direction: column; gap: 4px; }
.dash-crm-row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); border: 1px solid var(--border); }
.dash-crm-row:hover { background: var(--row-hover); }
.dash-crm-when { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); min-width: 64px; }
.dash-crm-row.overdue .dash-crm-when { color: var(--red); }
.dash-crm-row.today .dash-crm-when { color: var(--brand); }
.dash-crm-name { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; }
.dash-crm-note { color: var(--text-muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
