/* WEN SPORT v73 — mevcut Alternatif Tema için üretim ekranı uyumluluk yaması
   Yeni tema değildir. Yalnızca mevcut data-visual-theme="studio" görünümündeki
   beyaz zemin / beyaz yazı ve okunabilirlik sorunlarını düzeltir. */

html[data-visual-theme="studio"]{
  --studio-bg:#07111f;
  --studio-panel:#101e32;
  --studio-panel-2:#14253d;
  --studio-panel-3:#0b1728;
  --studio-line:rgba(148,163,184,.18);
  --studio-text:#edf5ff;
  --studio-muted:#9aadc5;
  --studio-teal:#43e2d8;
  --studio-blue:#72a7ff;
}

/* 1) Üretim Panosu: duraklatma ve kart içi bilgi alanları */
html[data-visual-theme="studio"] .kanban-work-status{
  background:rgba(37,99,235,.12)!important;
  border-color:rgba(96,165,250,.28)!important;
  color:#dbeafe!important;
}
html[data-visual-theme="studio"] .kanban-work-status.paused{
  background:linear-gradient(135deg,rgba(245,158,11,.17),rgba(146,64,14,.16))!important;
  border-color:rgba(251,191,36,.42)!important;
  color:#ffe8ae!important;
}
html[data-visual-theme="studio"] .kanban-work-status strong,
html[data-visual-theme="studio"] .kanban-work-status small,
html[data-visual-theme="studio"] .kanban-work-status em{
  color:inherit!important;
  opacity:1!important;
  text-shadow:none!important;
}
html[data-visual-theme="studio"] .kanban-work-status.paused strong{color:#ffd76b!important}
html[data-visual-theme="studio"] .kanban-work-status.paused small{color:#f7cf87!important}
html[data-visual-theme="studio"] .kanban-work-status.paused em{color:#fff3cf!important}
html[data-visual-theme="studio"] .kanban-work-actions .btn.secondary{
  background:#13243b!important;
  color:#e4edf8!important;
  border-color:rgba(148,163,184,.24)!important;
}
html[data-visual-theme="studio"] .order-card .card-assignee,
html[data-visual-theme="studio"] .order-card .card-quantity,
html[data-visual-theme="studio"] .order-card .card-meta strong{color:#eff6ff!important}

/* 2) Sipariş detayındaki üretim föyü — yalnızca ekranda koyu tema */
@media screen{
  html[data-visual-theme="studio"] #productionSheet.modern-production-sheet,
  html[data-visual-theme="studio"] #productionSheet{
    background:var(--studio-panel-3)!important;
    border-color:var(--studio-line)!important;
    color:var(--studio-text)!important;
    box-shadow:0 24px 70px rgba(0,0,0,.35)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-page-layout{
    background:linear-gradient(180deg,#0b1728 0%,#07111f 100%)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-cover{
    background:transparent!important;
    color:var(--studio-text)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-brand strong,
  html[data-visual-theme="studio"] #productionSheet .foy-cover-order>strong,
  html[data-visual-theme="studio"] #productionSheet .foy-customer-hero h2{
    color:#f6f9ff!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-brand small,
  html[data-visual-theme="studio"] #productionSheet .foy-cover-order>small,
  html[data-visual-theme="studio"] #productionSheet .foy-customer-hero p,
  html[data-visual-theme="studio"] #productionSheet .foy-top-info-grid small{
    color:var(--studio-muted)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-top-info-grid>div,
  html[data-visual-theme="studio"] #productionSheet .foy-section,
  html[data-visual-theme="studio"] #productionSheet .foy-design-card,
  html[data-visual-theme="studio"] #productionSheet .foy-finance-summary-card,
  html[data-visual-theme="studio"] #productionSheet .foy-contact-card,
  html[data-visual-theme="studio"] .production-sheet-tools .foy-version-card,
  html[data-visual-theme="studio"] .production-sheet-tools .foy-check-card{
    background:linear-gradient(145deg,#14253d,#101e32)!important;
    border-color:var(--studio-line)!important;
    box-shadow:none!important;
    color:var(--studio-text)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-top-info-grid .foy-deadline-card{
    background:rgba(37,99,235,.13)!important;
    border-color:rgba(96,165,250,.30)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-top-info-grid .foy-top-file-card{
    background:rgba(124,58,237,.13)!important;
    border-color:rgba(167,139,250,.30)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-top-info-grid .foy-top-file-card.has-number{
    background:rgba(245,158,11,.13)!important;
    border-color:rgba(251,191,36,.34)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-deadline-card strong,
  html[data-visual-theme="studio"] #productionSheet .foy-top-file-card strong{
    color:#f3f7ff!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-deadline-card div>span{color:#8db8ff!important}
  html[data-visual-theme="studio"] #productionSheet .foy-top-file-card div>span{color:#c5b4ff!important}
  html[data-visual-theme="studio"] #productionSheet .foy-top-file-card.has-number div>span{color:#ffd078!important}
  html[data-visual-theme="studio"] #productionSheet .foy-section-title h3,
  html[data-visual-theme="studio"] #productionSheet .foy-contact-card>strong,
  html[data-visual-theme="studio"] #productionSheet .foy-finance-summary-row strong,
  html[data-visual-theme="studio"] #productionSheet .design-placeholder strong{
    color:#f3f8ff!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-section-title p,
  html[data-visual-theme="studio"] #productionSheet .foy-contact-card>p,
  html[data-visual-theme="studio"] #productionSheet .design-placeholder small,
  html[data-visual-theme="studio"] #productionSheet .foy-finance-summary-row em{
    color:var(--studio-muted)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-spec-grid{
    border-color:var(--studio-line)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-spec-item{
    background:#0b1728!important;
    border-color:var(--studio-line)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-spec-item span{color:#7fb4ff!important}
  html[data-visual-theme="studio"] #productionSheet .foy-spec-item strong{color:#eff6ff!important}
  html[data-visual-theme="studio"] #productionSheet .foy-fabric-highlight{
    background:rgba(20,184,166,.09)!important;
    border-color:rgba(45,212,191,.28)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-fabric-alert strong{color:#ff8f8f!important}
  html[data-visual-theme="studio"] #productionSheet .foy-size-groups>article{
    background:#0b1728!important;
    border-color:var(--studio-line)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-size-groups header{
    background:#101e32!important;
    border-color:var(--studio-line)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-size-groups header strong,
  html[data-visual-theme="studio"] #productionSheet .foy-size-groups header span{color:#eaf2ff!important}
  html[data-visual-theme="studio"] #productionSheet .foy-size-groups article>div>div{
    background:#14243a!important;
    border:1px solid rgba(148,163,184,.12)!important;
    color:#9db0c8!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-size-groups article>div>div.has-value{
    background:rgba(37,99,235,.22)!important;
    border-color:rgba(96,165,250,.38)!important;
    color:#dbeafe!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-size-groups b{color:inherit!important}
  html[data-visual-theme="studio"] #productionSheet .foy-instruction{
    background:#0b1728!important;
    border-color:var(--studio-line)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-instruction small{color:#9fb2ca!important}
  html[data-visual-theme="studio"] #productionSheet .foy-instruction p{color:#ff8f8f!important}
  html[data-visual-theme="studio"] #productionSheet .foy-design-frame{
    background:linear-gradient(145deg,#091422,#102039)!important;
    border-color:#3d5470!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-design-frame img{
    background:#091422!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-finance-summary-row{
    border-color:rgba(148,163,184,.14)!important;
  }
  html[data-visual-theme="studio"] #productionSheet .foy-finance-summary-row small,
  html[data-visual-theme="studio"] #productionSheet .foy-contact-heading small{color:#a9bad0!important}
  html[data-visual-theme="studio"] #productionSheet .foy-contact-card>a{color:#74a8ff!important}
}

/* 3) Atölye ekranı kartları */
html[data-visual-theme="studio"] .workshop-card{
  background:linear-gradient(145deg,#14253d,#101e32)!important;
  border-color:var(--studio-line)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.24)!important;
  color:var(--studio-text)!important;
}
html[data-visual-theme="studio"] .workshop-card.late{border-color:rgba(248,113,113,.42)!important}
html[data-visual-theme="studio"] .workshop-card.paused{
  background:linear-gradient(145deg,#2a2216,#111c2c)!important;
  border-color:rgba(245,158,11,.42)!important;
}
html[data-visual-theme="studio"] .workshop-card header span{color:#61e9e1!important}
html[data-visual-theme="studio"] .workshop-card h3,
html[data-visual-theme="studio"] .workshop-card header b{color:#f4f8ff!important}
html[data-visual-theme="studio"] .workshop-card header b small{color:#91a4bd!important}
html[data-visual-theme="studio"] .workshop-meta>span{
  background:#0b1728!important;
  color:#c9d7e8!important;
  border:1px solid rgba(148,163,184,.12)!important;
}
html[data-visual-theme="studio"] .workshop-card .active-work{
  background:rgba(16,185,129,.11)!important;
  border:1px solid rgba(52,211,153,.22)!important;
  color:#9df1cb!important;
}
html[data-visual-theme="studio"] .workshop-card .active-work.is-paused{
  background:rgba(245,158,11,.12)!important;
  border-color:rgba(251,191,36,.26)!important;
  color:#ffd98a!important;
}
html[data-visual-theme="studio"] .workshop-card .active-work strong,
html[data-visual-theme="studio"] .workshop-card .active-work small,
html[data-visual-theme="studio"] .workshop-card .active-work em{color:inherit!important}
html[data-visual-theme="studio"] .workshop-actions .btn.secondary{
  background:#13243b!important;
  color:#e4edf8!important;
  border-color:rgba(148,163,184,.22)!important;
}
html[data-visual-theme="studio"] .active-jobs-panel,
html[data-visual-theme="studio"] .active-job-row{
  background:linear-gradient(145deg,#14253d,#101e32)!important;
  border-color:var(--studio-line)!important;
  color:var(--studio-text)!important;
}

/* 4) Detaylı maliyet hesap makinesi */
html[data-visual-theme="studio"] .cost-page{color:var(--studio-text)!important}
html[data-visual-theme="studio"] .cost-notice{
  background:rgba(37,99,235,.12)!important;
  border-color:rgba(96,165,250,.26)!important;
  color:#bfd5f6!important;
}
html[data-visual-theme="studio"] .cost-notice strong{color:#79adff!important}
html[data-visual-theme="studio"] .cost-card,
html[data-visual-theme="studio"] .cost-results{
  background:linear-gradient(145deg,#14253d,#101e32)!important;
  border-color:var(--studio-line)!important;
  box-shadow:0 12px 32px rgba(0,0,0,.24)!important;
}
html[data-visual-theme="studio"] .cost-card>header{border-color:var(--studio-line)!important}
html[data-visual-theme="studio"] .cost-card header h3,
html[data-visual-theme="studio"] .cost-size-head strong,
html[data-visual-theme="studio"] .cost-field{color:#edf5ff!important}
html[data-visual-theme="studio"] .cost-card header p,
html[data-visual-theme="studio"] .cost-size-head small,
html[data-visual-theme="studio"] .cost-field>small{color:#91a4bd!important}
html[data-visual-theme="studio"] .cost-card>header>span{
  background:rgba(20,184,166,.14)!important;
  color:#63eee4!important;
}
html[data-visual-theme="studio"] .cost-link-btn{
  background:#172a44!important;
  color:#83b3ff!important;
}
html[data-visual-theme="studio"] .cost-field select,
html[data-visual-theme="studio"] .cost-input-wrap,
html[data-visual-theme="studio"] .cost-size-field{
  background:#0b1728!important;
  border-color:rgba(148,163,184,.20)!important;
  color:#edf6ff!important;
}
html[data-visual-theme="studio"] .cost-field select,
html[data-visual-theme="studio"] .cost-input-wrap input,
html[data-visual-theme="studio"] .cost-size-field input{
  color:#edf6ff!important;
}
html[data-visual-theme="studio"] .cost-input-wrap em{
  background:#13243b!important;
  border-color:rgba(148,163,184,.18)!important;
  color:#9fb2ca!important;
}
html[data-visual-theme="studio"] .cost-size-field>span{color:#b6c6da!important}
html[data-visual-theme="studio"] .cost-size-field small{color:#7188a5!important}
html[data-visual-theme="studio"] .cost-divider{background:var(--studio-line)!important}
html[data-visual-theme="studio"] .cost-size-head>b{
  background:#172a44!important;
  color:#83b3ff!important;
}
html[data-visual-theme="studio"] .cost-kpi-grid>div{
  background:#101e32!important;
  border-color:var(--studio-line)!important;
}
html[data-visual-theme="studio"] .cost-kpi-grid span{color:#91a4bd!important}
html[data-visual-theme="studio"] .cost-kpi-grid strong{color:#f2f7ff!important}
html[data-visual-theme="studio"] .cost-profit-box{
  background:rgba(16,185,129,.12)!important;
  color:#8ee8be!important;
}
html[data-visual-theme="studio"] .cost-profit-box>b{
  background:rgba(16,185,129,.16)!important;
  color:#9df1cb!important;
}
html[data-visual-theme="studio"] .cost-breakdown-title,
html[data-visual-theme="studio"] .cost-breakdown-row>div{color:#91a4bd!important}
html[data-visual-theme="studio"] .cost-breakdown-row strong{color:#eaf2ff!important}
html[data-visual-theme="studio"] .cost-breakdown-row>i{background:#26364d!important}
html[data-visual-theme="studio"] .cost-result-actions{
  background:#0d1a2d!important;
  border-color:var(--studio-line)!important;
}
html[data-visual-theme="studio"] .cost-reset-btn{color:#9fb2ca!important}

/* 5) Not Defteri */
html[data-visual-theme="studio"] .notepad-toolbar{
  background:linear-gradient(145deg,#14253d,#101e32)!important;
  border-color:var(--studio-line)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
}
html[data-visual-theme="studio"] .notepad-summary strong{color:#eff6ff!important}
html[data-visual-theme="studio"] .notepad-summary small{color:#91a4bd!important}
html[data-visual-theme="studio"] .notepad-search{
  background:#0b1728!important;
  border-color:rgba(148,163,184,.20)!important;
}
html[data-visual-theme="studio"] .notepad-search input{
  background:transparent!important;
  color:#edf6ff!important;
  border:0!important;
  box-shadow:none!important;
}
html[data-visual-theme="studio"] .notepad-search input::placeholder{color:#7188a5!important}
html[data-visual-theme="studio"] .notepad-empty,
html[data-visual-theme="studio"] #notepadNoResults.notepad-empty{
  background:linear-gradient(145deg,#14253d,#0d1a2d)!important;
  border-color:rgba(148,163,184,.22)!important;
  color:#9fb2ca!important;
}
html[data-visual-theme="studio"] .notepad-empty>span{
  background:#172a44!important;
  color:#62eee6!important;
}
html[data-visual-theme="studio"] .notepad-empty strong{color:#eff6ff!important}
html[data-visual-theme="studio"] .notepad-empty p{color:#9aadc5!important}
html[data-visual-theme="studio"] .notepad-card{
  background:linear-gradient(145deg,#14253d,#101e32)!important;
  border-color:var(--studio-line)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.24)!important;
}
html[data-visual-theme="studio"] .notepad-card h3{color:#f3f8ff!important}
html[data-visual-theme="studio"] .notepad-card header small,
html[data-visual-theme="studio"] .notepad-card-body p,
html[data-visual-theme="studio"] .notepad-card footer>span{color:#9bb0c9!important}
html[data-visual-theme="studio"] .notepad-card>footer{
  background:#0d1a2d!important;
  border-color:var(--studio-line)!important;
}
html[data-visual-theme="studio"] .notepad-pin-mark,
html[data-visual-theme="studio"] .notepad-pin-button{
  background:#172a44!important;
  color:#66efe7!important;
}

/* 6) Ayarlar / Atölye hesap */
html[data-visual-theme="studio"] .settings-submenu{
  background:rgba(16,30,50,.96)!important;
  border-color:var(--studio-line)!important;
  box-shadow:0 10px 28px rgba(0,0,0,.24)!important;
}
html[data-visual-theme="studio"] .settings-submenu button{color:#9fb2ca!important}
html[data-visual-theme="studio"] .settings-submenu button.active,
html[data-visual-theme="studio"] .settings-submenu button:hover{
  background:linear-gradient(135deg,rgba(23,200,191,.22),rgba(23,200,191,.10))!important;
  color:#72f2ea!important;
}
html[data-visual-theme="studio"] .system-reset-panel,
html[data-visual-theme="studio"] .workshop-account-panel,
html[data-visual-theme="studio"] .settings-card{
  background:linear-gradient(145deg,#14253d,#101e32)!important;
  border-color:var(--studio-line)!important;
  color:var(--studio-text)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.22)!important;
}
html[data-visual-theme="studio"] .ent-panel-head h3,
html[data-visual-theme="studio"] .settings-card h3{color:#f3f8ff!important}
html[data-visual-theme="studio"] .ent-panel-head p,
html[data-visual-theme="studio"] .settings-card>p,
html[data-visual-theme="studio"] .system-reset-panel>small,
html[data-visual-theme="studio"] .workshop-account-actions p{color:#9aadc5!important}
html[data-visual-theme="studio"] .workshop-account-kpis article{
  background:#0b1728!important;
  border-color:var(--studio-line)!important;
}
html[data-visual-theme="studio"] .workshop-account-kpis small{color:#8398b3!important}
html[data-visual-theme="studio"] .workshop-account-kpis strong{color:#f2f7ff!important}
html[data-visual-theme="studio"] .workshop-account-table,
html[data-visual-theme="studio"] .workshop-account-table table{
  background:#0d1a2d!important;
}
html[data-visual-theme="studio"] .workshop-account-table th{
  background:#081423!important;
  color:#91a4bd!important;
}
html[data-visual-theme="studio"] .workshop-account-table td{color:#dce7f5!important}
html[data-visual-theme="studio"] .workshop-rate-input input,
html[data-visual-theme="studio"] .workshop-period-tools select,
html[data-visual-theme="studio"] .workshop-period-tools input{
  background:#0b1728!important;
  color:#edf6ff!important;
  border-color:rgba(148,163,184,.20)!important;
}
html[data-visual-theme="studio"] .workshop-rate-input span{color:#9fb2ca!important}
html[data-visual-theme="studio"] .workshop-worker-settlements>article{
  background:#0b1728!important;
  border-color:var(--studio-line)!important;
}
html[data-visual-theme="studio"] .workshop-worker-settlements small,
html[data-visual-theme="studio"] .workshop-worker-settlements span{color:#91a4bd!important}
html[data-visual-theme="studio"] .workshop-worker-settlements strong{color:#f2f7ff!important}
html[data-visual-theme="studio"] .loading-block{
  background:#0b1728!important;
  color:#9fb2ca!important;
  border-color:var(--studio-line)!important;
}

/* Genel güvenlik: alternatif temada açık yüzey üzerinde görünmeyen başlıkları engelle */
html[data-visual-theme="studio"] .page-content .empty-state strong,
html[data-visual-theme="studio"] .page-content .empty-view strong,
html[data-visual-theme="studio"] .page-content .blank-state strong{color:#eff6ff!important}
html[data-visual-theme="studio"] .page-content .empty-state p,
html[data-visual-theme="studio"] .page-content .empty-view p,
html[data-visual-theme="studio"] .page-content .blank-state p{color:#9aadc5!important}

@media(max-width:760px){
  html[data-visual-theme="studio"] .cost-card,
  html[data-visual-theme="studio"] .notepad-toolbar,
  html[data-visual-theme="studio"] .workshop-card{box-shadow:none!important}
}
