/**
 * home-dashboard-modern.css  v4 — Sanatsal Açık Tema
 * İlham: Login ekranı sol panel estetiği
 * Açık, ferah, zarif — çerçeve atölyesi kimliği
 * JS/ID dokunulmadı.
 */

/* ═══════════════════════════════════════════
   TOKEN'LAR
   ═══════════════════════════════════════════ */
#view_home .home-dash-modern {
  font-family: "Source Sans 3","Segoe UI",system-ui,sans-serif;
  -webkit-font-smoothing: antialiased;

  /* Login sol panel renkleri — açık versiyonu */
  --d-page:         #f0f3f7;
  --d-surface:      #ffffff;
  --d-surface-2:    #f7f9fc;
  --d-border:       #e4e9f0;
  --d-border-soft:  #eef1f6;
  --d-text:         #1a2638;
  --d-text-2:       #4a5a72;
  --d-text-3:       #8a9ab8;
  --d-accent:       #2c4a6e;   /* lacivert — login sol panel ana rengi */
  --d-accent-2:     #4a7096;
  --d-accent-soft:  #eaf0f7;
  --d-accent-muted: rgba(44,74,110,0.08);
  --d-gold:         #8b6914;   /* altın — çerçeve motifi */
  --d-gold-soft:    rgba(139,105,20,0.08);
  --d-green:        #2d6a4f;
  --d-green-soft:   rgba(45,106,79,0.08);
  --d-red:          #c0392b;
  --d-red-soft:     rgba(192,57,43,0.08);
  --d-amber:        #b45309;
  --d-amber-soft:   rgba(180,83,9,0.08);
  --d-radius:       16px;
  --d-radius-sm:    12px;
  --d-gap:          18px;
  --d-shadow:       0 1px 3px rgba(26,38,56,0.06), 0 4px 16px rgba(26,38,56,0.05);
  --d-shadow-h:     0 8px 32px rgba(26,38,56,0.12);
  --d-shadow-card:  0 2px 8px rgba(26,38,56,0.06), 0 16px 40px rgba(26,38,56,0.06);
}

#view_home .home-setup-checklist {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--d-border, #e4e9f0);
  border-radius: var(--d-radius-sm, 12px);
  background: var(--d-surface, #fff);
  box-shadow: var(--d-shadow, 0 1px 3px rgba(26,38,56,0.06));
}

#view_home .home-setup-checklist-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--d-text, #1a2638);
}

#view_home .home-setup-checklist-sub {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--d-text-2, #4a5a72);
}

#view_home .home-setup-checklist-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

#view_home .home-setup-checklist-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}

#view_home .home-setup-mark {
  width: 1.25rem;
  text-align: center;
  font-weight: 700;
}

#view_home .home-setup-ok {
  color: var(--d-green, #2d6a4f);
}

#view_home .home-setup-pending {
  color: var(--d-text, #1a2638);
}

#view_home .home-setup-checklist-list .link-btn {
  margin-left: auto;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   SAYFA ZEMİNİ — Login sol paneli gibi
   Açık, ince grid deseni, orb'lar
   ═══════════════════════════════════════════ */
body:has(#view_home:not(.hidden)) {
  background: #f0f3f7 !important;
}

body:has(#view_home:not(.hidden)) .shell,
body:has(#view_home:not(.hidden)) .shell.app-content-shell {
  max-width: 100% !important;
  background: transparent !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  padding-bottom: 2.5rem !important;
  position: relative !important;
}

/* Arka plan dekor — login sol panel estetiği */
body:has(#view_home:not(.hidden)) .shell.app-content-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* İnce grid — login'deki gibi */
  background-image:
    linear-gradient(rgba(44,74,110,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44,74,110,0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 75% at 25% 35%, rgba(0,0,0,0.6) 0%, transparent 72%);
}

/* Orb 1 — sağ üst, login sol paneli referans */
body:has(#view_home:not(.hidden)) .shell.app-content-shell::after {
  content: "";
  position: fixed;
  width: 36rem; height: 36rem;
  top: -12rem; right: -8rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136,192,208,0.18) 0%, transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

body:has(#view_home:not(.hidden)) #view_home.home-pro {
  display: block; min-height: 0;
  padding-top: 0.75rem; padding-bottom: 2rem;
  position: relative; z-index: 1;
}
body:has(#view_home:not(.hidden)) #view_home .home-shell {
  display: block; min-height: 0;
}

/* Ana container */
#view_home .home-dashboard.home-dash-modern,
html.design-pro #view_home .home-dashboard.home-dash-modern,
html.design-gentelella #view_home .home-dashboard.home-dash-modern {
  display: block !important; width: 100% !important; max-width: 100% !important;
  margin: 0 !important; padding: 0 !important;
  border: none !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important;
}

/* Panel akışı */
#view_home .dash-panel {
  display: flex; flex-direction: column; gap: var(--d-gap); padding-bottom: 2rem;
}
#view_home .dash-doviz-bar   { order: 0; }
#view_home .dash-mid-grid   { order: 1; }
#view_home .dash-alert      { order: 2; }
#view_home .dash-top-grid   { order: 3; }
#view_home .dash-lower-grid { order: 4; }

/* ═══════════════════════════════════════════
   ANİMASYONLAR
   ═══════════════════════════════════════════ */
@keyframes dashUp {
  from { opacity:0; transform:translateY(18px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes orbFloat {
  0%,100% { transform:translate(0,0) scale(1); }
  40%     { transform:translate(-2%,3%) scale(1.06); }
  70%     { transform:translate(2%,-2%) scale(1.04); }
}
@keyframes alertPulse {
  0%,100% { box-shadow:0 0 0 0 rgba(192,57,43,0); }
  55%     { box-shadow:0 0 0 8px rgba(192,57,43,0.08); }
}
@keyframes dotBlink {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:0.35; transform:scale(1.7); }
}
@keyframes barSlide {
  from { width:0; }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

#view_home .dash-panel > * {
  animation: dashUp .5s cubic-bezier(.22,1,.36,1) both;
}
#view_home .dash-mid-grid   { animation-delay:.06s; }
#view_home .dash-doviz-bar   { animation-delay:.08s; }
#view_home .dash-alert      { animation-delay:.10s; }
#view_home .dash-top-grid   { animation-delay:.13s; }
#view_home .dash-lower-grid { animation-delay:.17s; }
#view_home .dash-top-grid > *:nth-child(1) { animation-delay:.13s; }
#view_home .dash-top-grid > *:nth-child(2) { animation-delay:.17s; }
#view_home .dash-top-grid > *:nth-child(3) { animation-delay:.21s; }
#view_home .dash-top-grid > *:nth-child(4) { animation-delay:.25s; }
#view_home .dash-top-grid > *:nth-child(5) { animation-delay:.29s; }
#view_home .dash-top-grid > *:nth-child(6) { animation-delay:.33s; }
#view_home .dash-lower-grid > *:nth-child(1) { animation-delay:.17s; }
#view_home .dash-lower-grid > *:nth-child(2) { animation-delay:.22s; }

/* ═══════════════════════════════════════════
   SAYFA BAŞLIĞI
   ═══════════════════════════════════════════ */
#view_home .dash-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin: 0 0 .5rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--d-border-soft);
}
#view_home .dash-page-eyebrow {
  margin: 0 0 .25rem;
  font-size: .65rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--d-accent);
}
#view_home .home-dash-modern .home-dashboard-title {
  margin: 0; font-size: clamp(1.3rem,2.5vw,1.65rem);
  font-weight: 600; letter-spacing: -.025em; color: var(--d-text);
}
#view_home .home-dash-modern .home-dashboard-sub {
  margin: .3rem 0 0; font-size: .875rem; color: var(--d-text-3); line-height: 1.45;
}
#view_home .dash-page-head-badge {
  display: inline-flex; align-items: center; gap: .42rem; flex-shrink: 0;
  padding: .4rem .9rem; border-radius: 999px;
  background: #e8f5ef; border: 1px solid rgba(45,106,79,.20);
  color: var(--d-green); font-size: .7rem; font-weight: 700; letter-spacing: .04em;
}
#view_home .dash-page-head-dot {
  width: .42rem; height: .42rem; border-radius: 50%;
  background: var(--d-green); animation: dotBlink 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════
   ORTAK YÜZEY
   ═══════════════════════════════════════════ */
#view_home .dash-surface {
  background: var(--d-surface);
  border: 1px solid var(--d-border);
  border-radius: var(--d-radius);
  box-shadow: var(--d-shadow);
}

/* ═══════════════════════════════════════════
   GECİKME UYARISI
   ═══════════════════════════════════════════ */
#view_home .dash-alert {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: .95rem 1.25rem;
  border: 1px solid rgba(192,57,43,.18);
  border-left: 3px solid var(--d-red);
  border-radius: var(--d-radius-sm);
  background: linear-gradient(100deg, rgba(192,57,43,.05) 0%, rgba(192,57,43,.02) 100%);
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
#view_home .dash-alert:hover {
  box-shadow: var(--d-shadow-h); transform: translateY(-2px);
}
#view_home .dash-alert.hidden { display:none !important; }

#view_home .dash-alert-icon {
  flex-shrink: 0; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; border-radius: 10px;
  background: rgba(192,57,43,.10); color: var(--d-red);
  animation: alertPulse 2.4s ease-in-out infinite;
}
#view_home .dash-alert-icon svg { width: 1.2rem; height: 1.2rem; }
#view_home .dash-alert-label {
  margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: #9b2d1f;
}
#view_home .dash-alert-value {
  margin: .05rem 0 0; font-size: 1.5rem; font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--d-red); line-height: 1.1;
}
#view_home .dash-alert-hint { margin: .1rem 0 0; font-size: .78rem; color: var(--d-text-3); }

/* ═══════════════════════════════════════════
   DÖVİZ KURU ÖZETİ
   ═══════════════════════════════════════════ */
#view_home .dash-doviz-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  padding: .85rem 1rem 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--d-accent) 6%, #fff), var(--d-surface));
  border: 1px solid var(--d-border-soft);
  border-radius: var(--d-radius);
  box-shadow: var(--d-shadow);
}
#view_home .dash-doviz-bar.hidden { display: none !important; }
#view_home .dash-doviz-head {
  display: flex; flex-direction: column; gap: .15rem; min-width: 6rem;
}
#view_home .dash-doviz-eyebrow {
  margin: 0; font-size: .65rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--d-text-3);
}
#view_home .dash-doviz-date {
  font-size: .74rem; color: var(--d-text-2);
}
#view_home .dash-doviz-rates {
  display: flex; flex-wrap: wrap; gap: .55rem;
}
#view_home .dash-doviz-pill {
  display: inline-flex; align-items: baseline; gap: .35rem;
  padding: .45rem .75rem;
  background: var(--d-surface);
  border: 1px solid var(--d-border-soft);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
#view_home .dash-doviz-sym {
  font-size: .95rem; font-weight: 700; color: var(--d-accent);
}
#view_home .dash-doviz-val {
  font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--d-text);
}
#view_home .dash-doviz-unit {
  font-size: .72rem; font-weight: 600; color: var(--d-text-3);
}
#view_home .dash-doviz-hint {
  flex: 1 1 14rem; margin: 0;
  font-size: .78rem; line-height: 1.45; color: var(--d-text-2);
}

/* ═══════════════════════════════════════════
   KPI KARTLARI
   ═══════════════════════════════════════════ */
#view_home .dash-top-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px;
}
@media (min-width:640px)  { #view_home .dash-top-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--d-gap); } }
@media (min-width:1100px) { #view_home .dash-top-grid { grid-template-columns:repeat(6,minmax(0,1fr)); } }

#view_home .dash-metric-card {
  --m: var(--d-accent); --mbg: var(--d-accent-soft);
  container-type: inline-size;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: .85rem;
  padding: 1.2rem 1.15rem 1.25rem;
  background: var(--d-surface);
  border: 1px solid var(--d-border-soft);
  border-radius: var(--d-radius);
  box-shadow: var(--d-shadow);
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

/* Üst aksan çizgisi — login sol paneli referanslı */
#view_home .dash-metric-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--m), color-mix(in srgb,var(--m) 50%,transparent));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
  border-radius: var(--d-radius) var(--d-radius) 0 0;
}
#view_home .dash-metric-card:hover::before { transform: scaleX(1); }

/* Sağ alt dekor dairesi */
#view_home .dash-metric-card::after {
  content: "";
  position: absolute; right: -1.5rem; bottom: -1.5rem;
  width: 6rem; height: 6rem; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb,var(--m) 12%,transparent), transparent 65%);
  pointer-events: none;
  transition: transform .3s, opacity .3s;
}
#view_home .dash-metric-card:hover::after { transform: scale(1.5); }

#view_home .dash-metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--d-shadow-h);
  border-color: color-mix(in srgb,var(--m) 25%,var(--d-border-soft));
}

/* Renk varyantları */
#view_home .dash-metric-card:has(.dash-metric-icon--orders) { --m:#2c4a6e; --mbg:#eaf0f7; }
#view_home .dash-metric-card:has(.dash-metric-icon--week)   { --m:#1a6b9a; --mbg:#e6f3fa; }
#view_home .dash-metric-card:has(.dash-metric-icon--done)   { --m:#2d6a4f; --mbg:#e8f5ef; }
#view_home .dash-metric-card:has(.dash-metric-icon--cash)   { --m:#8b6914; --mbg:#f5efdf; }
#view_home .dash-metric-card:has(.dash-metric-icon--wallet) { --m:#5b3d8a; --mbg:#f0eaf8; }
#view_home .dash-metric-card:has(.dash-metric-icon--warn)   { --m:#b45309; --mbg:#fdf0e0; }

#view_home .dash-metric-icon {
  flex-shrink: 0; width: 2.9rem; height: 2.9rem;
  display: grid; place-items: center; border-radius: 12px;
  color: var(--m); background: var(--mbg);
  border: 1px solid color-mix(in srgb,var(--m) 16%,transparent);
  transition: transform .25s, background .25s, box-shadow .25s;
}
#view_home .dash-metric-card:hover .dash-metric-icon {
  background: var(--m); color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb,var(--m) 30%,transparent);
  transform: scale(1.08) rotate(-5deg);
}
#view_home .dash-metric-icon svg { width: 1.35rem; height: 1.35rem; stroke-width: 2; }
#view_home .dash-metric-icon--lira { font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; }

#view_home .dash-metric-body { min-width: 0; width: 100%; display: flex; flex-direction: column; }
#view_home .dash-metric-label {
  display: block; font-size: clamp(.6rem,3.5cqi,.7rem); font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--d-text-3);
  order: 2; margin-top: .28rem;
}
#view_home .dash-metric-value {
  display: block; font-size: clamp(1.5rem,14cqi,2rem); font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--d-text);
  line-height: 1; letter-spacing: -.04em; order: 1;
}
#view_home .dash-metric-value--money { font-size: clamp(1rem,10cqi,1.35rem); word-break: break-word; line-height: 1.12; }
#view_home .dash-metric-hint {
  display: block; margin-top: .32rem; font-size: clamp(.58rem,3cqi,.68rem);
  color: var(--d-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; order: 3;
}
#view_home .dash-metric-hint strong { color: var(--d-text-2); font-weight: 700; }
#view_home .dash-metric-card--warn .dash-metric-value { color: var(--d-amber); }

/* ═══════════════════════════════════════════
   HERO KARTI — Login sol panel estetiği
   Lacivert gradient, ince grid, orb'lar, çizgiler
   ═══════════════════════════════════════════ */
#view_home .dash-mid-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--d-gap);
}
@media (min-width:860px) {
  #view_home .dash-mid-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(0, 1.85fr) minmax(220px, .95fr);
    align-items: stretch;
  }
}
#view_home .dash-mid-grid > * { min-height: 0; display: flex; flex-direction: column; }

#view_home .dash-welcome-card {
  position: relative; overflow: hidden; flex: 1;
  padding: clamp(1.75rem,4vw,2.5rem) clamp(1.75rem,4vw,2.75rem);
  border-radius: var(--d-radius);

  /* Login sol panel gradyanı */
  background: linear-gradient(155deg, #2a3f54 0%, #384f6c 42%, #3f5874 100%);
  color: #f1f5f9;
  border: 1px solid #2d4158;
  box-shadow: 0 20px 48px rgba(42,63,84,0.28), 0 4px 12px rgba(42,63,84,0.18);
}

/* Login grid deseni — aynısı */
#view_home .dash-welcome-card .dash-welcome-bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 20%, transparent 75%);
}

/* Orb 1 — login sol panel --1 ile aynı */
#view_home .dash-welcome-orb {
  position: absolute; border-radius: 50%; filter: blur(12px); pointer-events: none; z-index: 0;
  width: 22rem; height: 22rem; top: -6rem; right: -4rem;
  background: radial-gradient(circle, rgba(136,192,208,0.45), transparent 68%);
  animation: orbFloat 14s ease-in-out infinite;
}
/* Orb 2 — login sol panel --2 ile aynı */
#view_home .dash-welcome-orb--2 {
  width: 16rem; height: 16rem; top: auto; right: auto; bottom: -4rem; left: -2rem;
  background: radial-gradient(circle, rgba(129,161,193,0.38), transparent 70%);
  animation-duration: 18s; animation-direction: reverse;
}

/* Dekoratif çizgiler — login gibi */
#view_home .dash-welcome-card::before {
  content: "";
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  width: 55%; height: 1px; top: 18%; left: 8%; transform: rotate(-8deg);
}
#view_home .dash-welcome-card::after {
  content: "";
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  width: 40%; height: 1px; bottom: 22%; right: 10%; transform: rotate(6deg); opacity: .7;
}

#view_home .dash-welcome-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 1.4rem; height: 100%;
}
@media (min-width:520px) {
  #view_home .dash-welcome-inner { grid-template-columns: minmax(0,1fr) auto; align-items: center; }
}
@media (min-width:860px) {
  #view_home .dash-welcome-inner { grid-template-columns: 1fr; gap: 1rem; }
  #view_home .dash-welcome-title { font-size: clamp(1.35rem,3vw,1.65rem); }
  #view_home .dash-welcome-sub { -webkit-line-clamp: 2; }
  #view_home .dash-welcome-actions { flex-direction: column; padding-top: .85rem; }
  #view_home .dash-welcome-btn { width: 100%; justify-content: center; padding: .55rem .85rem; }
  #view_home .dash-welcome-viz { min-width: 0; width: 100%; }
  #view_home .dash-donut { width: 7.5rem; height: 7.5rem; }
  #view_home .dash-donut-total { font-size: 1.75rem; }
  #view_home .dash-donut-legend { gap: .15rem; }
  #view_home .dash-donut-leg { padding: .32rem .45rem; }
}
#view_home .dash-welcome-copy { display: flex; flex-direction: column; min-width: 0; }
#view_home .dash-welcome-aside { display: flex; flex-direction: row; gap: .7rem; }
@media (min-width:520px) { #view_home .dash-welcome-aside { flex-direction: column; min-width: 6.5rem; } }

#view_home .dash-welcome-chip {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .28rem; min-width: 5rem; padding: .95rem .7rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px; background: rgba(255,255,255,0.09);
  backdrop-filter: blur(4px); color: #f8fafc;
  cursor: pointer; text-align: center;
  transition: background .2s, border-color .2s, transform .2s;
}
#view_home .dash-welcome-chip:hover {
  background: rgba(255,255,255,0.17); border-color: rgba(255,255,255,0.32); transform: translateY(-3px);
}
#view_home .dash-welcome-chip--warn {
  background: rgba(243,156,18,.17); border-color: rgba(243,156,18,.42);
}
#view_home .dash-welcome-chip-val {
  font-size: clamp(1.45rem,6vw,1.85rem); font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.04em;
}
#view_home .dash-welcome-chip-lbl {
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .72;
}

/* Donut */
#view_home .dash-welcome-viz {
  display: flex; flex-direction: column; align-items: center; gap: 1rem; min-width: 11rem;
}
#view_home .dash-donut {
  position: relative; width: 9.5rem; height: 9.5rem; flex-shrink: 0;
}
#view_home .dash-donut-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 17px), #000 calc(100% - 16px));
  mask:         radial-gradient(farthest-side, transparent calc(100% - 17px), #000 calc(100% - 16px));
  transition: background .7s cubic-bezier(.22,1,.36,1);
}
#view_home .dash-donut-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
#view_home .dash-donut-total {
  font-size: 2.2rem; font-weight: 800; line-height: 1;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: #f8fafc;
}
#view_home .dash-donut-cap {
  margin-top: .3rem; font-size: .58rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(241,245,249,.55);
}
#view_home .dash-donut-legend {
  list-style: none; margin: 0; padding: 0; width: 100%;
  display: flex; flex-direction: column; gap: .25rem;
}
#view_home .dash-donut-leg {
  display: flex; align-items: center; gap: .55rem;
  padding: .42rem .55rem; border-radius: 10px; cursor: pointer;
  transition: background .15s, transform .15s;
}
#view_home .dash-donut-leg:hover { background: rgba(255,255,255,.1); transform: translateX(3px); }
#view_home .dash-donut-leg.hidden { display: none; }
#view_home .dash-donut-dot { width: .6rem; height: .6rem; border-radius: 3px; flex-shrink: 0; }
#view_home .dash-donut-leg--late .dash-donut-dot { background: #ff8787; }
#view_home .dash-donut-leg--week .dash-donut-dot { background: #74c0fc; }
#view_home .dash-donut-leg--rest .dash-donut-dot { background: #63e6be; }
#view_home .dash-donut-leg-lbl { flex: 1; font-size: .8rem; font-weight: 600; color: rgba(241,245,249,.82); }
#view_home .dash-donut-leg-val { font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }

/* Hero metin */
#view_home .dash-welcome-eyebrow {
  margin: 0 0 .45rem; font-size: .6875rem; font-weight: 300;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(241,245,249,.65);
}
#view_home .dash-welcome-title {
  margin: 0; font-size: clamp(1.75rem,5vw,2.2rem);
  font-weight: 300; letter-spacing: -.03em; line-height: 1.12; color: #fff;
}
#view_home .dash-welcome-date {
  margin: .55rem 0 0; font-size: clamp(.875rem,2.5vw,1rem);
  font-weight: 200; color: rgba(241,245,249,.82);
}
#view_home .dash-welcome-sub {
  margin: .65rem 0 0; font-size: clamp(.875rem,2.5vw,.9375rem);
  line-height: 1.6; color: rgba(241,245,249,.78); font-weight: 200;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
#view_home .dash-welcome-actions {
  display: flex; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-top: 1.35rem;
}
#view_home .dash-welcome-btn {
  display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.1rem;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10); color: #f8fafc;
  font-size: .8125rem; font-weight: 500; cursor: pointer;
  font-family: inherit;
  transition: background .18s, border-color .18s, transform .18s;
}
#view_home .dash-welcome-btn svg { width: 1rem; height: 1rem; opacity: .88; }
#view_home .dash-welcome-btn:hover {
  background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); transform: translateY(-2px);
}
#view_home .dash-welcome-btn--solid {
  background: #fff; color: #2c4a6e; border-color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.16); font-weight: 600;
}
#view_home .dash-welcome-btn--solid:hover { background: #eef4fa; }

/* ═══════════════════════════════════════════
   ATÖLYE VİTRİNİ — beyaz zemin, hızlı geçişler
   ═══════════════════════════════════════════ */
@keyframes dashFxDissolveIn {
  from { opacity: 0; transform: scale(1.035); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes dashFxPanLeftIn {
  from { opacity: 0; transform: translateX(5%) scale(0.992); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes dashFxPanUpIn {
  from { opacity: 0; transform: translateY(4.5%) scale(0.992); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dashFxFocusIn {
  from { opacity: 0; filter: blur(7px); transform: scale(1.015); }
  to   { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes dashFxCurtainIn {
  from { opacity: 0; clip-path: inset(0 100% 0 0); transform: scale(1.008); }
  to   { opacity: 1; clip-path: inset(0 0 0 0); transform: scale(1); }
}
@keyframes dashFxTiltIn {
  from { opacity: 0; transform: perspective(900px) rotateY(-7deg) scale(0.985); }
  to   { opacity: 1; transform: perspective(900px) rotateY(0deg) scale(1); }
}
@keyframes dashFxLeave {
  from { opacity: 1; transform: scale(1); filter: blur(0); }
  to   { opacity: 0; transform: scale(0.988); filter: blur(3px); }
}
#view_home .dash-showcase-card {
  position: relative; flex: 1; min-height: 18rem; padding: 0; overflow: hidden;
  border-radius: var(--d-radius); cursor: pointer;
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  border: 1px solid var(--d-border);
  box-shadow: var(--d-shadow);
}
#view_home .dash-showcase-slider {
  position: absolute; inset: 0; z-index: 1;
  background: #fff;
}
#view_home .dash-showcase-slide {
  position: absolute; inset: 0; margin: 0; padding: clamp(.75rem, 2vw, 1.15rem);
  border: none; background: #fff; cursor: pointer;
  opacity: 0; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#view_home .dash-showcase-slide.is-active {
  opacity: 1; pointer-events: auto; z-index: 3;
}
#view_home .dash-showcase-slide.is-leaving {
  opacity: 1; pointer-events: none; z-index: 2;
  animation: dashFxLeave .58s cubic-bezier(.45, 0, .55, 1) forwards;
}
#view_home .dash-showcase-slide img {
  display: block;
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; object-position: center;
  transform-origin: center center;
  will-change: transform, opacity, filter, clip-path;
  filter: drop-shadow(0 8px 22px rgba(42,63,84,.12));
}
#view_home .dash-showcase-slide.fx-dissolve.is-active img {
  animation: dashFxDissolveIn .62s cubic-bezier(.22, 1, .36, 1) both;
}
#view_home .dash-showcase-slide.fx-pan-left.is-active img {
  animation: dashFxPanLeftIn .68s cubic-bezier(.16, 1, .28, 1) both;
}
#view_home .dash-showcase-slide.fx-pan-up.is-active img {
  animation: dashFxPanUpIn .68s cubic-bezier(.16, 1, .28, 1) both;
}
#view_home .dash-showcase-slide.fx-focus.is-active img {
  animation: dashFxFocusIn .72s cubic-bezier(.2, .9, .28, 1) both;
}
#view_home .dash-showcase-slide.fx-curtain.is-active img {
  animation: dashFxCurtainIn .74s cubic-bezier(.22, .95, .28, 1) both;
}
#view_home .dash-showcase-slide.fx-tilt.is-active img {
  animation: dashFxTiltIn .7s cubic-bezier(.2, .85, .25, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  #view_home .dash-showcase-slide.is-active img,
  #view_home .dash-showcase-slide.is-leaving {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════
   KART BAŞLIKLARI
   ═══════════════════════════════════════════ */
#view_home .dash-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin-bottom: .9rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--d-border-soft); flex-shrink: 0;
}
#view_home .dash-card-title {
  margin: 0; font-size: .9375rem; font-weight: 700;
  color: var(--d-text); letter-spacing: -.02em;
}
#view_home .dash-card-badge {
  font-size: .6rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .65rem; border-radius: 6px;
  background: var(--d-accent-soft); color: var(--d-accent);
  border: 1px solid rgba(44,74,110,.12);
}
#view_home .dash-card-link {
  font-size: .78rem; font-weight: 600; color: var(--d-accent);
  background: none; border: none; cursor: pointer;
  padding: .25rem .55rem; border-radius: 8px; font-family: inherit;
  transition: background .15s;
}
#view_home .dash-card-link:hover { background: var(--d-accent-soft); }

/* ═══════════════════════════════════════════
   BUGÜN ATÖLYEde
   ═══════════════════════════════════════════ */
#view_home .dash-today-card { flex: 1; padding: 1.3rem 1.4rem; overflow: hidden; }
#view_home .dash-today-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1; display: flex; flex-direction: column; gap: .1rem; min-height: 0;
}
#view_home .dash-today-item {
  display: flex; align-items: center; gap: .85rem;
  padding: .72rem .6rem; border-radius: 12px; cursor: pointer;
  transition: background .18s, transform .18s;
}
#view_home .dash-today-item:hover {
  background: var(--d-accent-muted); transform: translateX(4px);
}
#view_home .dash-today-icon {
  width: 2.3rem; height: 2.3rem; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 11px;
  background: var(--d-accent-soft); color: var(--d-accent);
  transition: transform .2s, background .2s;
}
#view_home .dash-today-item:hover .dash-today-icon {
  background: var(--d-accent); color: #fff; transform: scale(1.1);
}
#view_home .dash-today-icon svg { width: 1.05rem; height: 1.05rem; }
#view_home .dash-today-text { flex: 1; min-width: 0; font-size: .9rem; font-weight: 400; color: var(--d-text-2); }
#view_home .dash-today-val {
  font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--d-text);
}

/* ═══════════════════════════════════════════
   ALT BÖLÜM — 1fr 2fr (sağda boşluk yok)
   ═══════════════════════════════════════════ */
#view_home .dash-lower-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--d-gap);
}
@media (min-width:720px)  { #view_home .dash-lower-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width:1100px) { #view_home .dash-lower-grid { grid-template-columns: 1fr 2fr; } }
#view_home .dash-lower-grid > * { min-height: 0; display: flex; flex-direction: column; }

#view_home .dash-panel-card { flex: 1; padding: 1.3rem 1.4rem; overflow: hidden; }

/* Ürün listesi */
#view_home .dash-product-list { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-height: 0; }
#view_home .dash-product-item {
  display: flex; align-items: center; gap: .9rem; width: 100%;
  padding: .8rem .55rem; border: none; background: transparent;
  text-align: left; cursor: pointer; border-radius: 12px; font-family: inherit;
  transition: background .18s, transform .18s;
}
#view_home .dash-product-item:hover:not(:disabled) {
  background: var(--d-accent-muted); transform: translateX(4px);
}
#view_home .dash-product-item:disabled { cursor: default; opacity: .38; }

#view_home .dash-product-rank {
  flex-shrink: 0; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; border-radius: 10px;
  font-size: .82rem; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, #2c4a6e, #4a7096);
  box-shadow: 0 4px 10px rgba(44,74,110,.28);
}
#view_home .dash-product-item:nth-child(1) .dash-product-rank {
  background: linear-gradient(140deg,#8b6914,#c9a84c); box-shadow: 0 4px 10px rgba(139,105,20,.28);
}
#view_home .dash-product-item:nth-child(2) .dash-product-rank {
  background: linear-gradient(140deg,#607080,#8aa0b8); box-shadow: 0 4px 10px rgba(96,112,128,.25);
}
#view_home .dash-product-item:nth-child(3) .dash-product-rank {
  background: linear-gradient(140deg,#6b4a1e,#9a7040); box-shadow: 0 4px 10px rgba(107,74,30,.25);
}
#view_home .dash-product-item:disabled .dash-product-rank {
  background: var(--d-border); color: var(--d-text-3); box-shadow: none;
}
#view_home .dash-product-info { flex: 1; min-width: 0; }
#view_home .dash-product-name {
  display: block; font-size: .95rem; font-weight: 700; color: var(--d-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#view_home .dash-product-meta {
  display: block; margin-top: .1rem; font-size: .78rem; color: var(--d-text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#view_home .dash-product-bar {
  margin-top: .5rem; height: 4px; border-radius: 999px;
  background: var(--d-border-soft); overflow: hidden;
}
#view_home .dash-product-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #2c4a6e, #88c0d0);
  width: 0%; transition: width .9s cubic-bezier(.22,1,.36,1);
  animation: barSlide .9s cubic-bezier(.22,1,.36,1) both .35s;
}

/* Dönem tablosu */
#view_home .dash-period-table-wrap {
  overflow: auto; flex: 1; min-height: 0;
  border: 1px solid var(--d-border-soft); border-radius: 12px;
}
#view_home .dash-period-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
#view_home .dash-period-table thead {
  background: linear-gradient(180deg, #f4f7fa, #edf1f7);
}
#view_home .dash-period-table th {
  padding: .72rem .85rem; text-align: center;
  font-size: .65rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--d-text-3); border-bottom: 1px solid var(--d-border);
}
#view_home .dash-period-table th:first-child { text-align: left; }
#view_home .dash-period-table td {
  padding: .78rem .85rem; border-bottom: 1px solid var(--d-border-soft);
  font-variant-numeric: tabular-nums; text-align: center; color: var(--d-text-2);
}
#view_home .dash-period-table tbody tr:last-child td { border-bottom: none; }
#view_home .dash-period-table tbody tr:hover td { background: var(--d-accent-soft); }
#view_home .dash-period-table .dash-period-label { font-weight: 700; color: var(--d-text); text-align: left; }
#view_home .dash-period-cell { cursor: pointer; transition: background .14s; }
#view_home .dash-period-cell:hover { background: var(--d-accent-soft) !important; }
#view_home .dash-period-cell strong { font-weight: 800; color: var(--d-text); }

/* SR only */
#view_home .dash-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════
   MOBİL
   ═══════════════════════════════════════════ */
@media (max-width:560px) {
  body:has(#view_home:not(.hidden)) .shell.app-content-shell {
    padding-left: 1rem !important; padding-right: 1rem !important;
  }
  #view_home .dash-page-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
  #view_home .dash-panel { gap: 10px; }
  #view_home .dash-today-card, #view_home .dash-panel-card { padding: 1rem 1.1rem; }
  #view_home .dash-metric-card { padding: 1rem 1rem 1.1rem; gap: .7rem; }
  #view_home .dash-top-grid { gap: 8px; }
  #view_home .dash-welcome-card { padding: 1.4rem 1.25rem; }
}

/* ═══════════════════════════════════════════
   HAREKETİ AZALT
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion:reduce) {
  #view_home .dash-panel > *,
  #view_home .dash-top-grid > *,
  #view_home .dash-lower-grid > *,
  #view_home .dash-welcome-orb,
  #view_home .dash-alert-icon,
  #view_home .dash-page-head-dot { animation: none !important; }
  #view_home .dash-product-bar span { transition: none !important; animation: none !important; }
  #view_home .dash-metric-card:hover,
  #view_home .dash-today-item:hover,
  #view_home .dash-product-item:hover:not(:disabled),
  #view_home .dash-welcome-chip:hover,
  #view_home .dash-alert:hover { transform: none !important; }
  #view_home .dash-metric-card::before { transition: none !important; }
}
