/* Panel Tema - Gece/Gündüz + Renk */

/* ========== GÜNDÜZ (Light) ========== */
html[data-theme="light"] {
    --panel-bg: #f1f5f9;
    --panel-card: #ffffff;
    --panel-text: #1e293b;
    --panel-text-muted: #64748b;
    --panel-border: #e2e8f0;
    --sidebar-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --sidebar-text: #cbd5e1;
    --sidebar-text-active: #fff;
    --sidebar-hover: rgba(255,255,255,0.1);
    --navbar-bg: #ffffff;
    --table-bg: #ffffff;
    --table-hover: #f8fafc;
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
}

/* ========== GECE (Dark) ========== */
html[data-theme="dark"] {
    --panel-bg: #0f172a;
    --panel-card: #1e293b;
    --panel-text: #e2e8f0;
    --panel-text-muted: #94a3b8;
    --panel-border: #334155;
    --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #f1f5f9;
    --sidebar-hover: rgba(255,255,255,0.08);
    --navbar-bg: #1e293b;
    --table-bg: #1e293b;
    --table-hover: #334155;
    --input-bg: #334155;
    --input-border: #475569;
}

html[data-theme="dark"] body {
    background-color: #0f172a;
}

/* ========== RENK TEMALARI (Accent) ========== */
html[data-color="blue"] {
    --theme-primary: #3b82f6;
    --theme-primary-hover: #2563eb;
    --theme-sidebar-active: rgba(59, 130, 246, 0.25);
    --theme-sidebar-border: #60a5fa;
}

html[data-color="green"] {
    --theme-primary: #10b981;
    --theme-primary-hover: #059669;
    --theme-sidebar-active: rgba(16, 185, 129, 0.25);
    --theme-sidebar-border: #34d399;
}

html[data-color="purple"] {
    --theme-primary: #8b5cf6;
    --theme-primary-hover: #7c3aed;
    --theme-sidebar-active: rgba(139, 92, 246, 0.25);
    --theme-sidebar-border: #a78bfa;
}

html[data-color="orange"] {
    --theme-primary: #f97316;
    --theme-primary-hover: #ea580c;
    --theme-sidebar-active: rgba(249, 115, 22, 0.25);
    --theme-sidebar-border: #fb923c;
}

/* ========== UYGULAMA ========== */
html[data-theme="dark"] .dashboard .sidebar,
html[data-theme="light"] .dashboard .sidebar {
    background: var(--sidebar-bg) !important;
}

html[data-theme="dark"] .sidebar-header,
html[data-theme="light"] .sidebar-header {
    border-bottom-color: var(--panel-border) !important;
}

html[data-theme="dark"] .sidebar-header h3,
html[data-theme="light"] .sidebar-header h3 {
    color: var(--sidebar-text-active) !important;
}

html[data-theme="dark"] .sidebar-header small,
html[data-theme="light"] .sidebar-header small {
    color: var(--sidebar-text) !important;
}

html[data-theme="dark"] .sidebar-menu-item,
html[data-theme="light"] .sidebar-menu-item {
    color: var(--sidebar-text) !important;
}

html[data-theme="dark"] .sidebar-menu-item:hover,
html[data-theme="light"] .sidebar-menu-item:hover {
    background: var(--sidebar-hover) !important;
    color: var(--sidebar-text-active) !important;
}

html[data-theme="dark"] .sidebar-menu-item.active,
html[data-theme="light"] .sidebar-menu-item.active {
    background: var(--theme-sidebar-active) !important;
    color: var(--theme-sidebar-border) !important;
    border-left-color: var(--theme-sidebar-border) !important;
}

html[data-theme="dark"] .main-content,
html[data-theme="light"] .main-content {
    background-color: var(--panel-bg) !important;
}

html[data-theme="dark"] .top-navbar,
html[data-theme="light"] .top-navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--panel-border);
}

html[data-theme="dark"] .page-title,
html[data-theme="light"] .page-title {
    color: var(--panel-text) !important;
}

html[data-theme="dark"] .content-wrapper,
html[data-theme="light"] .content-wrapper {
    background-color: var(--panel-bg);
}

html[data-theme="dark"] .dashboard-card,
html[data-theme="light"] .dashboard-card {
    background-color: var(--panel-card) !important;
    border: 1px solid var(--panel-border);
    color: var(--panel-text);
}

/* Koyu temada kart içi metin: Bootstrap .text-dark siyah bırakır, okunmaz */
html[data-theme="dark"] .dashboard-card p.text-dark,
html[data-theme="dark"] .dashboard-card .text-dark:not(.badge):not(.btn) {
    color: var(--panel-text) !important;
}

/* Pazar yeri personel — sipariş sayfası altındaki yönetici linkleri (koyu temada koyu mavi = okunmaz) */
html[data-theme="dark"] .main-content .pazar-siparis-admin-links a {
    color: #93c5fd !important;
}
html[data-theme="dark"] .main-content .pazar-siparis-admin-links a:hover {
    color: #bfdbfe !important;
}

html[data-theme="dark"] .dashboard-card .card,
html[data-theme="light"] .dashboard-card .card {
    background-color: var(--panel-card);
    border-color: var(--panel-border);
    color: var(--panel-text);
}

html[data-theme="dark"] .dashboard-card .card-header,
html[data-theme="light"] .dashboard-card .card-header {
    background-color: var(--panel-card);
    border-bottom-color: var(--panel-border);
    color: var(--panel-text);
}

html[data-theme="dark"] .table,
html[data-theme="light"] .table {
    color: var(--panel-text);
}

html[data-theme="dark"] .table thead th {
    background-color: var(--panel-border) !important;
    border-color: var(--panel-border);
    color: var(--panel-text);
}

html[data-theme="dark"] .table tbody tr:hover,
html[data-theme="light"] .table tbody tr:hover {
    background-color: var(--table-hover);
}

html[data-theme="dark"] .table td,
html[data-theme="dark"] .table th,
html[data-theme="light"] .table td,
html[data-theme="light"] .table th {
    border-color: var(--panel-border);
}

/* Admin Raporlar: main-content açık metin rengi beyaz kartta okunmaz; tablo da açık zemin + koyu yazı */
html[data-theme="dark"] .dashboard .rapor-card,
html[data-theme="light"] .dashboard .rapor-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
html[data-theme="dark"] .dashboard .rapor-card .rapor-baslik,
html[data-theme="light"] .dashboard .rapor-card .rapor-baslik {
    border-bottom-color: #e2e8f0 !important;
}
html[data-theme="dark"] .dashboard .rapor-card h4,
html[data-theme="dark"] .dashboard .rapor-card h5,
html[data-theme="light"] .dashboard .rapor-card h4,
html[data-theme="light"] .dashboard .rapor-card h5 {
    color: #0f172a !important;
}
html[data-theme="dark"] .dashboard .rapor-card h6,
html[data-theme="light"] .dashboard .rapor-card h6 {
    color: #0f172a !important;
}
/* Gradient özet kutuları — üstteki h6 kuralını geçersiz kılar, beyaz metin */
html[data-theme="dark"] .dashboard .rapor-card .stat-box,
html[data-theme="light"] .dashboard .rapor-card .stat-box {
    color: #fff !important;
}
html[data-theme="dark"] .dashboard .rapor-card .stat-box h6,
html[data-theme="light"] .dashboard .rapor-card .stat-box h6 {
    color: rgba(255, 255, 255, 0.92) !important;
}
html[data-theme="dark"] .dashboard .rapor-card .stat-box .value,
html[data-theme="light"] .dashboard .rapor-card .stat-box .value {
    color: #ffffff !important;
}
html[data-theme="dark"] .dashboard .rapor-card .form-label,
html[data-theme="light"] .dashboard .rapor-card .form-label {
    color: #0f172a !important;
}
html[data-theme="dark"] .dashboard .rapor-card .text-muted,
html[data-theme="light"] .dashboard .rapor-card .text-muted {
    color: #475569 !important;
}
html[data-theme="dark"] .dashboard .rapor-card .form-control,
html[data-theme="dark"] .dashboard .rapor-card .form-select,
html[data-theme="light"] .dashboard .rapor-card .form-control,
html[data-theme="light"] .dashboard .rapor-card .form-select {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="dark"] .dashboard .rapor-card .table,
html[data-theme="light"] .dashboard .rapor-card .table {
    color: #0f172a !important;
    --bs-table-color: #0f172a;
}
html[data-theme="dark"] .dashboard .rapor-card .table thead th,
html[data-theme="light"] .dashboard .rapor-card .table thead th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="dark"] .dashboard .rapor-card .table tbody td,
html[data-theme="light"] .dashboard .rapor-card .table tbody td {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="dark"] .dashboard .rapor-card .table tbody tr:hover td,
html[data-theme="light"] .dashboard .rapor-card .table tbody tr:hover td {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}
html[data-theme="dark"] .dashboard .rapor-card .badge.bg-secondary,
html[data-theme="light"] .dashboard .rapor-card .badge.bg-secondary {
    color: #fff !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select,
html[data-theme="light"] .form-control,
html[data-theme="light"] .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--panel-text);
}

html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-select:focus {
    background-color: var(--input-bg);
    border-color: var(--theme-primary);
    color: var(--panel-text);
}

html[data-theme="dark"] .form-control::placeholder {
    color: var(--panel-text-muted);
}

/* Readonly: bg-light vb. koyu temada beyaz kutu + soluk yazı = okunmaz; her zaman panel metin rengi */
html[data-theme="dark"] .form-control[readonly],
html[data-theme="light"] .form-control[readonly] {
    background-color: var(--input-bg) !important;
    color: var(--panel-text) !important;
    opacity: 1;
    cursor: default;
}

/* Form etiketleri (Ad, Soyad, Email vb.) her temada okunabilir olsun */
html[data-theme="dark"] .form-label,
html[data-theme="light"] .form-label {
    color: var(--panel-text) !important;
}

html[data-theme="dark"] .dashboard-card .form-label,
html[data-theme="light"] .dashboard-card .form-label {
    color: var(--panel-text) !important;
}

/* Bootstrap bg-light: koyu temada beyaz kutu + form-label hâlâ açık renkte → okunmaz */
html[data-theme="dark"] .dashboard-card .bg-light .form-label,
html[data-theme="dark"] .dashboard-card .bg-light .form-label.small,
html[data-theme="dark"] .dashboard-card .bg-light .col-form-label {
    color: #0f172a !important;
}
html[data-theme="dark"] .dashboard-card .bg-light .text-muted {
    color: #475569 !important;
}

/* form-check-label (switch/checkbox): bg-light üzerinde açık tema metni kalırsa okunmaz */
html[data-theme="dark"] .dashboard-card .bg-light .form-check-label,
html[data-theme="light"] .dashboard-card .bg-light .form-check-label {
    color: #0f172a !important;
}

/* Açık zeminli özet kutuları (bg-light): kartın açık metin rengi miras kalıp rakamları silik gösterir */
html[data-theme="dark"] .dashboard-card .bg-light .fs-1,
html[data-theme="dark"] .dashboard-card .bg-light .fs-2,
html[data-theme="dark"] .dashboard-card .bg-light .fs-3,
html[data-theme="dark"] .dashboard-card .bg-light .fs-4,
html[data-theme="dark"] .dashboard-card .bg-light .fs-5,
html[data-theme="light"] .dashboard-card .bg-light .fs-1,
html[data-theme="light"] .dashboard-card .bg-light .fs-2,
html[data-theme="light"] .dashboard-card .bg-light .fs-3,
html[data-theme="light"] .dashboard-card .bg-light .fs-4,
html[data-theme="light"] .dashboard-card .bg-light .fs-5 {
    color: #0f172a !important;
}

/* Profil / form bölüm başlıkları (Kişisel Bilgiler, Firma Bilgileri) */
html[data-theme="dark"] .dashboard-card h6.text-primary,
html[data-theme="light"] .dashboard-card h6.text-primary {
    color: var(--theme-primary) !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="light"] .text-muted {
    color: var(--panel-text-muted) !important;
}

html[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--panel-text-muted);
}

html[data-theme="dark"] .nav-tabs .nav-link.active {
    color: var(--theme-primary);
    background-color: var(--panel-card);
    border-color: var(--panel-border);
}

html[data-theme="dark"] .list-group-item {
    background-color: var(--panel-card);
    border-color: var(--panel-border);
    color: var(--panel-text);
}

/* Bildirim listesi: her temada okunabilir arka plan ve hover */
html[data-theme="light"] .dashboard-card .list-group-flush .list-group-item {
    background-color: #ffffff;
    color: var(--panel-text);
    transition: all 0.2s ease;
}
html[data-theme="light"] .dashboard-card .list-group-flush .list-group-item:hover {
    background-color: #e2e8f0 !important;
    color: var(--panel-text);
}
html[data-theme="light"] .dashboard-card .list-group-flush .list-group-item .text-muted {
    color: #475569 !important;
}
html[data-theme="light"] .dashboard-card .list-group-flush .list-group-item.bg-light {
    background-color: #f1f5f9 !important;
}
html[data-theme="light"] .dashboard-card .list-group-flush .list-group-item.bg-light:hover {
    background-color: #e2e8f0 !important;
}

html[data-theme="dark"] .dashboard-card .list-group-flush .list-group-item {
    background-color: var(--panel-card);
    color: var(--panel-text);
    border-color: var(--panel-border);
    transition: all 0.2s ease;
}
html[data-theme="dark"] .dashboard-card .list-group-flush .list-group-item:hover {
    background-color: var(--table-hover) !important;
    color: var(--panel-text);
}
html[data-theme="dark"] .dashboard-card .list-group-flush .list-group-item .text-muted {
    color: var(--panel-text-muted) !important;
}
/* Gece modunda kategori listesinde okunabilir yazı (text-dark kaldırıldığında yedek; .text-dark kullanan sayfalar için) */
html[data-theme="dark"] .dashboard-card .list-group-flush .list-group-item .text-dark,
html[data-theme="dark"] .dashboard-card .list-group-flush .list-group-item .kategori-ana-link {
    color: var(--panel-text) !important;
}
html[data-theme="light"] .dashboard-card .list-group-flush .list-group-item .kategori-ana-link {
    color: #212529 !important;
}
html[data-theme="dark"] .dashboard-card .list-group-flush .list-group-item.bg-light {
    background-color: #334155 !important;
}
html[data-theme="dark"] .dashboard-card .list-group-flush .list-group-item.bg-light:hover {
    background-color: var(--table-hover) !important;
}

html[data-theme="dark"] .dropdown-menu {
    background-color: var(--panel-card);
    border-color: var(--panel-border);
}

html[data-theme="dark"] .dropdown-item {
    color: var(--panel-text);
}

html[data-theme="dark"] .dropdown-item:hover {
    background-color: var(--table-hover);
}

html[data-theme="dark"] .dropdown-divider {
    border-color: var(--panel-border);
}

/* Admin: Duyuru düzenle/ekle formu
   Tema değişkenleriyle kilitle (bazı sayfalarda Bootstrap beyaz zemin + dark yazı çakışıyor). */
.admin-duyuru-edit {
    background: var(--panel-card) !important;
    border-color: var(--panel-border) !important;
    color: var(--panel-text) !important;
}
.admin-duyuru-edit .card-body {
    background: transparent !important;
    color: var(--panel-text) !important;
}
.admin-duyuru-edit .form-label,
.admin-duyuru-edit .form-check-label {
    color: var(--panel-text) !important;
}
.admin-duyuru-edit .text-muted {
    color: var(--panel-text-muted) !important;
}
.admin-duyuru-edit .form-control,
.admin-duyuru-edit .form-select,
.admin-duyuru-edit textarea.form-control {
    background: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--panel-text) !important;
}
.admin-duyuru-edit .form-control::placeholder,
.admin-duyuru-edit textarea.form-control::placeholder {
    color: var(--panel-text-muted) !important;
}
.admin-duyuru-edit .card-header small {
    color: rgba(255,255,255,0.9);
}
.admin-duyuru-edit input[type="datetime-local"] {
    color-scheme: light;
}
html[data-theme="dark"] .admin-duyuru-edit input[type="datetime-local"] {
    color-scheme: dark;
}
.admin-duyuru-edit .alert.alert-info {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: var(--panel-text) !important;
}
.admin-duyuru-edit .alert.alert-danger {
    color: #fecaca !important;
}

/* Admin üst çubuk bildirim listesi: bg-light + koyu tema metni = okunaksız kontrast; özel vurgu */
#notificationDropdown .dropdown-item.admin-notif-item {
    white-space: normal;
}
#notificationDropdown .dropdown-item.admin-notif-unread {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 3px solid #3b82f6;
}
#notificationDropdown .dropdown-item.admin-notif-unread strong {
    color: #0f172a;
}
#notificationDropdown .dropdown-item.admin-notif-unread .small,
#notificationDropdown .dropdown-item.admin-notif-unread p {
    color: #334155;
}
#notificationDropdown .dropdown-item.admin-notif-unread .admin-notif-date {
    color: #64748b;
}
#notificationDropdown .dropdown-item.admin-notif-read .admin-notif-date {
    color: #64748b;
}

html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-unread {
    background-color: rgba(59, 130, 246, 0.22) !important;
    border-left-color: #60a5fa;
}
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-unread strong {
    color: #f8fafc !important;
}
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-unread .small,
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-unread p {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-unread .admin-notif-date {
    color: #94a3b8 !important;
}
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-read .admin-notif-date {
    color: #94a3b8 !important;
}
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-read strong {
    color: var(--panel-text);
}
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-read .small,
html[data-theme="dark"] #notificationDropdown .dropdown-item.admin-notif-read p {
    color: var(--panel-text);
}

/* Hızlı Satış: gece modunda yazı okunabilirliği – tüm metinler okunaklı */
html[data-theme="dark"] .hizli-satis-card,
html[data-theme="dark"] .hizli-satis-card .card,
html[data-theme="dark"] .hizli-satis-card .card-body,
html[data-theme="dark"] .hizli-satis-card .card-header {
    background-color: var(--panel-card) !important;
    border-color: var(--panel-border);
    color: var(--panel-text) !important;
}
html[data-theme="dark"] .hizli-satis-card .form-label,
html[data-theme="dark"] .hizli-satis-card .form-check-label {
    color: var(--panel-text) !important;
}
html[data-theme="dark"] .hizli-satis-card .text-muted,
html[data-theme="dark"] .hizli-satis-urun-list .text-muted,
html[data-theme="dark"] .hizli-satis-urun-list .small {
    color: var(--panel-text-muted) !important;
}
html[data-theme="dark"] .hizli-satis-card .form-control,
html[data-theme="dark"] .hizli-satis-card .form-select {
    background-color: var(--input-bg);
    border-color: var(--input-border);
    color: var(--panel-text);
}
html[data-theme="dark"] .hizli-satis-card .form-control::placeholder {
    color: var(--panel-text-muted);
}
html[data-theme="dark"] .hizli-satis-urun-satir {
    border-bottom-color: var(--panel-border);
    color: var(--panel-text);
}
html[data-theme="dark"] .hizli-satis-urun-satir:hover {
    background: var(--table-hover);
}
html[data-theme="dark"] .hizli-satis-urun-satir .small,
html[data-theme="dark"] .hizli-satis-urun-satir span {
    color: var(--panel-text) !important;
}
html[data-theme="dark"] .hizli-satis-sepet-tablo th {
    background: var(--panel-border) !important;
    color: var(--panel-text) !important;
}
html[data-theme="dark"] .hizli-satis-sepet-tablo td {
    color: var(--panel-text);
}
html[data-theme="dark"] .content-wrapper .dashboard-card .card-body .text-muted {
    color: var(--panel-text-muted) !important;
}
html[data-theme="dark"] .hizli-satis-urun-kart {
    background: var(--panel-card);
    border-color: var(--panel-border);
    color: var(--panel-text);
}
html[data-theme="dark"] .hizli-satis-urun-kart .hizli-fiyat-badge {
    background: rgba(59, 130, 246, 0.2);
    color: var(--theme-sidebar-border);
}
html[data-theme="dark"] .hizli-satis-urun-kart .hizli-urun-resim {
    background: var(--panel-border);
}

html[data-theme="dark"] .top-navbar .btn-outline-secondary {
    border-color: var(--panel-border);
    color: var(--panel-text);
}

html[data-theme="dark"] .top-navbar .btn-outline-secondary:hover {
    background-color: var(--table-hover);
    border-color: var(--theme-primary);
    color: var(--theme-sidebar-border);
}

/* Tema butonları - navbar */
.theme-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.75rem;
}

/* Gündüz/gece — tema paleti açılır menüsü içinde */
.theme-toggle-wrap--in-dropdown {
    margin-right: 0;
    width: 100%;
}

.theme-mode-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--panel-border, #e2e8f0);
    background: var(--panel-card, #fff);
    color: var(--panel-text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-mode-btn:hover {
    background: var(--theme-primary, #3b82f6);
    color: #fff;
    border-color: var(--theme-primary);
}

.theme-mode-btn.active {
    background: var(--theme-primary);
    color: #fff;
    border-color: var(--theme-primary);
}

.theme-color-dropdown .theme-color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
}

.theme-color-dropdown .theme-color-btn:hover {
    transform: scale(1.15);
}

.theme-color-dropdown .theme-color-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px var(--panel-text);
}

.theme-color-dropdown .dropdown-menu {
    padding: 0.35rem 0.5rem 0.5rem;
    min-width: 200px;
}

.theme-color-dropdown .dropdown-header {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--panel-text-muted, #64748b);
}

.theme-color-dropdown .theme-color-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    border-radius: 8px;
}

.theme-color-dropdown .theme-color-item:hover {
    background: var(--table-hover, #f1f5f9);
}

.theme-color-dropdown .theme-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.currency-ticker {
    transition: opacity 0.2s;
}

/* Sipariş ürün düzenle sayfası: beyaz/açık alanlardaki yazılar her temada okunabilir */
html[data-theme="dark"] .dashboard-card .siparis-urun-ekle-kutu,
html[data-theme="light"] .dashboard-card .siparis-urun-ekle-kutu {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}
html[data-theme="dark"] .dashboard-card .siparis-urun-ekle-kutu h6,
html[data-theme="dark"] .dashboard-card .siparis-urun-ekle-kutu .form-label,
html[data-theme="dark"] .dashboard-card .siparis-urun-ekle-kutu label,
html[data-theme="light"] .dashboard-card .siparis-urun-ekle-kutu h6,
html[data-theme="light"] .dashboard-card .siparis-urun-ekle-kutu .form-label,
html[data-theme="light"] .dashboard-card .siparis-urun-ekle-kutu label {
    color: #1e293b !important;
}
html[data-theme="dark"] .dashboard-card .siparis-urun-ekle-kutu .form-select,
html[data-theme="dark"] .dashboard-card .siparis-urun-ekle-kutu .form-control,
html[data-theme="light"] .dashboard-card .siparis-urun-ekle-kutu .form-select,
html[data-theme="light"] .dashboard-card .siparis-urun-ekle-kutu .form-control {
    color: #1e293b !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}
/* Tablo başlıkları (Ürün, Miktar, Birim Fiyat, Toplam, İşlem) - açık zemin, koyu yazı */
html[data-theme="dark"] #detayTablosu thead th,
html[data-theme="light"] #detayTablosu thead th {
    color: #1e293b !important;
    background-color: #f1f5f9 !important;
}
/* Tablo içi miktar inputları: her temada okunaklı */
html[data-theme="dark"] #detayTablosu .form-control.detay-miktar {
    color: #1e293b !important;
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}
html[data-theme="light"] #detayTablosu .form-control.detay-miktar {
    color: #1e293b !important;
}
html[data-theme="dark"] #detayTablosu small.text-muted {
    color: #94a3b8 !important;
}
/* Özet alanı (Ara toplam, KDV, Genel toplam) - kart rengine göre kalır, sadece sayfa için */
#siparisUrunForm #ozetAlani {
    color: inherit;
}
html[data-theme="dark"] #siparisUrunForm #ozetAlani {
    color: #e2e8f0 !important;
}
html[data-theme="light"] #siparisUrunForm #ozetAlani {
    color: #1e293b !important;
}

/* ========== Garanti HDD sayfası: koyu temada ve gündüzde her zaman okunaklı yazı ========== */
#garanti-page .form-control,
#garanti-page .form-select,
html[data-theme="dark"] #garanti-page .form-control,
html[data-theme="dark"] #garanti-page .form-select {
    color: #f1f5f9 !important;
    background-color: #334155 !important;
    border-color: #475569 !important;
}
#garanti-page .form-control::placeholder,
html[data-theme="dark"] #garanti-page .form-control::placeholder {
    color: #94a3b8 !important;
}
#garanti-page .form-label,
html[data-theme="dark"] #garanti-page .form-label {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] #garanti-page .garanti-tanimlar-panel,
html[data-theme="dark"] #garanti-page .garanti-tanimlar-baslik,
html[data-theme="dark"] #garanti-page .garanti-hdd-tabcontent,
html[data-theme="dark"] #garanti-page .garanti-hdd-tabcontent h6,
html[data-theme="dark"] #garanti-page .garanti-hdd-muted,
html[data-theme="dark"] #garanti-page .table,
html[data-theme="dark"] #garanti-page .table td,
html[data-theme="dark"] #garanti-page .table th {
    color: #e2e8f0 !important;
}
html[data-theme="dark"] #garanti-page .text-muted {
    color: #94a3b8 !important;
}
/* Gündüz temada da garanti sayfası koyu kart kullanıyorsa yazılar açık kalsın */
html[data-theme="light"] #garanti-page .form-control,
html[data-theme="light"] #garanti-page .form-select {
    color: #f1f5f9 !important;
    background-color: #334155 !important;
}
html[data-theme="light"] #garanti-page .form-control::placeholder {
    color: #94a3b8 !important;
}
html[data-theme="light"] #garanti-page .form-label {
    color: #e2e8f0 !important;
}

/* ========== Modallar (Bootstrap) — gece modunda panel metin renkleri beyaz zeminde kaybolmasın ==========
   Modal gövdesi açık kalır; etiket ve input’lar gündüz kontrastı ile okunur. */
html[data-theme="dark"] .modal-content {
    background-color: #ffffff;
    color: #1e293b;
    border-color: var(--panel-border, #334155);
}

html[data-theme="dark"] .modal-body .form-label,
html[data-theme="dark"] .modal-footer .form-label,
html[data-theme="dark"] .modal-content .form-label {
    color: #334155 !important;
}

html[data-theme="dark"] .modal-body .form-check-label,
html[data-theme="dark"] .modal-content .form-check-label {
    color: #334155 !important;
}

html[data-theme="dark"] .modal-body .form-control,
html[data-theme="dark"] .modal-body .form-select,
html[data-theme="dark"] .modal-footer .form-control,
html[data-theme="dark"] .modal-content .form-control:not(.btn),
html[data-theme="dark"] .modal-content .form-select {
    background-color: #ffffff !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}

html[data-theme="dark"] .modal-body .form-control:focus,
html[data-theme="dark"] .modal-body .form-select:focus,
html[data-theme="dark"] .modal-content .form-control:focus,
html[data-theme="dark"] .modal-content .form-select:focus {
    background-color: #ffffff !important;
    border-color: var(--theme-primary, #3b82f6) !important;
    color: #212529 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
}

html[data-theme="dark"] .modal-body .form-control::placeholder,
html[data-theme="dark"] .modal-content .form-control::placeholder {
    color: #64748b !important;
}

html[data-theme="dark"] .modal-body .text-muted,
html[data-theme="dark"] .modal-body small.text-muted,
html[data-theme="dark"] .modal-content .text-muted {
    color: #64748b !important;
}

html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .modal-footer {
    background-color: #ffffff;
    color: #1e293b;
}

/*
 * Gece modunda .dashboard .main-content { color: var(--panel-text) } tüm alt ağaca kalır;
 * modal beyaz zeminde açık gri metin bırakıyordu (Bayi Detayları vb.).
 */
html[data-theme="dark"] .dashboard .modal-content {
    color: #1e293b !important;
}
html[data-theme="dark"] .dashboard .modal-header:not(.bg-primary):not(.bg-success):not(.bg-danger):not(.bg-warning):not(.bg-info):not(.bg-dark):not(.text-white) {
    color: #0f172a !important;
}
html[data-theme="dark"] .dashboard .modal-body {
    color: #1e293b !important;
}
html[data-theme="dark"] .dashboard .modal-body strong {
    color: #0f172a !important;
}

/* Modal içindeki uyarı kutuları (Bootstrap) kendi renklerini kullanır */
html[data-theme="dark"] .modal-body .alert,
html[data-theme="dark"] .modal-content .alert {
    color: inherit;
}

html[data-theme="dark"] .modal-body .alert .form-label,
html[data-theme="dark"] .modal-content .alert .form-label {
    color: inherit !important;
}

/* Global `html[data-theme="dark"] .form-label { color: var(--panel-text) }` bazen modali geçersiz kılıyor;
   ID + label ile üstüne yaz (admin / temsilci ürün modalları dahil). */
html[data-theme="dark"] #addProductModal label.form-label,
html[data-theme="dark"] #addProductModal .section-title,
html[data-theme="dark"] #addProductModal .section-title i,
html[data-theme="dark"] #editProductModal label.form-label,
html[data-theme="dark"] #editProductModal .section-title,
html[data-theme="dark"] #editProductModal .section-title i,
html[data-theme="dark"] .modal-content label.form-label,
html[data-theme="dark"] .modal-content .section-title {
    color: #1e293b !important;
}

html[data-theme="dark"] .modal-content .product-form-price-wrap .form-label {
    color: #1e293b !important;
}

/* ========== Muhasebe / DataTables gece modu okunabilirlik ========== */
html[data-theme="dark"] .muhasebe-card {
    background: var(--panel-card) !important;
    border-color: var(--panel-border) !important;
    color: var(--panel-text) !important;
}
html[data-theme="dark"] .muhasebe-card .card-header.bg-white {
    background: var(--panel-card) !important;
    color: var(--panel-text) !important;
    border-color: var(--panel-border) !important;
}
html[data-theme="dark"] .muhasebe-card .text-muted,
html[data-theme="dark"] .muhasebe-card .small.text-muted {
    color: var(--panel-text-muted) !important;
}
html[data-theme="dark"] table.dataTable.table thead th,
html[data-theme="dark"] .table thead.table-light th {
    background: #334155 !important;
    color: #f8fafc !important;
    border-color: var(--panel-border) !important;
}
html[data-theme="dark"] table.dataTable.table tbody td,
html[data-theme="dark"] .table:not(.table-dark) tbody td {
    background: var(--table-bg) !important;
    color: var(--panel-text) !important;
    border-color: var(--panel-border) !important;
}
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd td,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > .sorting_1,
html[data-theme="dark"] table.dataTable tbody tr:nth-child(odd) td {
    background: #1e293b !important;
}
html[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
html[data-theme="dark"] .dataTables_wrapper .dataTables_length select {
    background: var(--input-bg) !important;
    color: var(--panel-text) !important;
    border-color: var(--panel-border) !important;
}
html[data-theme="dark"] .dataTables_wrapper .dataTables_info,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--panel-text-muted) !important;
}
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    color: #fff !important;
    background: var(--theme-primary, #3b82f6) !important;
    border-color: transparent !important;
}

/* Depo / Pazar: inline açık gri arka planı gece modunda ez */
html[data-theme="dark"] .dashboard .main-content.flex-grow-1,
html[data-theme="dark"] .dashboard .main-content {
    background: var(--panel-bg) !important;
    color: var(--panel-text);
}
html[data-theme="dark"] .top-navbar {
    background: var(--navbar-bg) !important;
    border-color: var(--panel-border) !important;
}
html[data-theme="dark"] .top-navbar .text-muted,
html[data-theme="dark"] .top-navbar .h5,
html[data-theme="dark"] .top-navbar h1 {
    color: var(--panel-text) !important;
}

/* —— Pazar yeri personel: siparişler — kanal sekmeleri —— */
.py-siparis-sekme-ust {
    background: var(--panel-card);
    border: 1px solid var(--panel-border) !important;
}

.py-siparis-kanal-tabs {
    gap: 0.25rem;
}

.py-siparis-kanal-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 0.5rem 0.5rem 0 0;
    color: var(--panel-text-muted);
    padding: 0.5rem 0.85rem;
    margin-bottom: -1px;
}

.py-siparis-kanal-tabs .nav-link:hover {
    color: var(--panel-text);
    background: var(--table-hover);
}

.py-siparis-kanal-tabs .nav-link.active {
    font-weight: 600;
    color: var(--panel-text);
    background: var(--panel-card);
    border-color: var(--panel-border);
    border-bottom-color: var(--panel-card);
}

/* Tümü */
.py-siparis-tab-tumu.active {
    border-bottom-color: var(--panel-card) !important;
    box-shadow: inset 0 -2px 0 0 var(--theme-primary, #3b82f6);
}

/* Hepsiburada — yeşil ton */
.py-siparis-tab-hb.active {
    border-bottom-color: var(--panel-card) !important;
    box-shadow: inset 0 -3px 0 0 #16a34a;
    color: #16a34a !important;
}

html[data-theme="dark"] .py-siparis-tab-hb.active {
    color: #4ade80 !important;
}

/* N11 — sarı / siyah marka hissi */
.py-siparis-tab-n11:not(.active):hover {
    color: #ca8a04;
}

.py-siparis-tab-n11.active {
    background: linear-gradient(180deg, rgba(245, 196, 0, 0.22) 0%, var(--panel-card) 100%) !important;
    border-bottom-color: var(--panel-card) !important;
    box-shadow: inset 0 -3px 0 0 #eab308;
    color: #eab308 !important;
}

html[data-theme="dark"] .py-siparis-tab-n11.active {
    background: linear-gradient(180deg, rgba(234, 179, 8, 0.18) 0%, var(--panel-card) 100%) !important;
    color: #facc15 !important;
    box-shadow: inset 0 -3px 0 0 #facc15;
}

.py-siparis-baslik-n11 {
    color: #eab308;
}

html[data-theme="dark"] .py-siparis-baslik-n11 {
    color: #facc15;
}

.py-siparis-liste-kutu.py-siparis-kanal-n11 {
    border-top: 3px solid #eab308;
}

html[data-theme="dark"] .py-siparis-liste-kutu.py-siparis-kanal-n11 {
    border-top-color: #facc15;
}

.py-siparis-cek-n11 {
    background: linear-gradient(180deg, #fde047 0%, #eab308 100%);
    border: 1px solid #ca8a04;
    color: #171717 !important;
    font-weight: 600;
}

.py-siparis-cek-n11:hover {
    filter: brightness(1.05);
    color: #0a0a0a !important;
}

/* Trendyol — turuncu/kırmızı */
.py-siparis-tab-ty.active {
    border-bottom-color: var(--panel-card) !important;
    box-shadow: inset 0 -3px 0 0 #f97316;
    color: #f97316 !important;
}

.py-siparis-baslik-ty {
    color: #f97316;
}

.py-siparis-liste-kutu.py-siparis-kanal-ty {
    border-top: 3px solid #f97316;
}

.py-siparis-cek-ty {
    border-color: #f97316;
    color: #f97316 !important;
}

.py-siparis-cek-ty:hover {
    background: rgba(249, 115, 22, 0.12);
}

/* Diğer kanallar */
.py-siparis-tab-diger.active {
    box-shadow: inset 0 -3px 0 0 #64748b;
}

/* —— N11 sekmesi içinde “panel” görünümü (koyu tema uyumlu) —— */
.dashboard .py-n11-panel {
    border: 1px solid var(--panel-border) !important;
    background: var(--panel-card) !important;
    color: var(--panel-text) !important;
}

.dashboard .py-n11-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
    background: linear-gradient(
        90deg,
        rgba(236, 72, 153, 0.14) 0%,
        rgba(168, 85, 247, 0.10) 55%,
        rgba(0, 0, 0, 0) 100%
    );
}

.dashboard .py-n11-breadcrumb {
    font-size: 12px;
    color: var(--panel-text-muted);
}
.dashboard .py-n11-breadcrumb .sep { margin: 0 6px; color: var(--panel-text-muted); }

.dashboard .py-n11-title {
    font-weight: 700;
    margin-top: 2px;
    color: var(--panel-text);
}

.dashboard .py-n11-stats {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
}

@media (max-width: 900px) {
    .dashboard .py-n11-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dashboard .py-n11-stat {
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
}
.dashboard .py-n11-stat .k { font-size: 12px; color: var(--panel-text-muted); }
.dashboard .py-n11-stat .v { font-size: 22px; font-weight: 800; color: #f472b6; line-height: 1.1; margin-top: 4px; }
.dashboard .py-n11-stat.danger .v { color: #fb7185; }

.dashboard .py-n11-search {
    padding: 14px 16px 16px;
}
.dashboard .py-n11-title2 {
    font-weight: 800;
    color: var(--panel-text);
    margin-bottom: 10px;
}

.dashboard .py-n11-panel .form-label {
    color: var(--panel-text-muted);
}
.dashboard .py-n11-panel .form-control,
.dashboard .py-n11-panel .form-select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--panel-text);
}

.dashboard .py-n11-panel .btn-dark {
    background: #0b1220;
    border-color: #0b1220;
}
.dashboard .py-n11-panel .btn-dark:hover {
    filter: brightness(1.05);
}

/* —— HB / Trendyol sekmeleri için N11-benzeri panel —— */
.dashboard .py-kanal-panel {
    border: 1px solid var(--panel-border) !important;
    background: var(--panel-card) !important;
    color: var(--panel-text) !important;
}

.dashboard .py-kanal-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
}

.dashboard .py-kanal-breadcrumb {
    font-size: 12px;
    color: var(--panel-text-muted);
}
.dashboard .py-kanal-breadcrumb .sep { margin: 0 6px; color: var(--panel-text-muted); }
.dashboard .py-kanal-title { font-weight: 800; color: var(--panel-text); margin-top: 2px; }

.dashboard .py-kanal-stats {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
}
@media (max-width: 900px) {
    .dashboard .py-kanal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.dashboard .py-kanal-stat {
    border: 1px solid var(--panel-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
}
.dashboard .py-kanal-stat .k { font-size: 12px; color: var(--panel-text-muted); }
.dashboard .py-kanal-stat .v { font-size: 22px; font-weight: 800; line-height: 1.1; margin-top: 4px; }
.dashboard .py-kanal-stat.danger .v { color: #fb7185; }

.dashboard .py-kanal-search { padding: 14px 16px 16px; }
.dashboard .py-kanal-title2 { font-weight: 800; color: var(--panel-text); margin-bottom: 10px; }

.dashboard .py-kanal-panel .form-label { color: var(--panel-text-muted); }
.dashboard .py-kanal-panel .form-control,
.dashboard .py-kanal-panel .form-select {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--panel-text);
}

/* Kanal renkleri */
.dashboard .py-hb-panel .py-kanal-header { background: linear-gradient(90deg, rgba(34,197,94,0.16) 0%, rgba(0,0,0,0) 70%); }
.dashboard .py-hb-panel .py-kanal-stat .v { color: #4ade80; }
.dashboard .py-ty-panel .py-kanal-header { background: linear-gradient(90deg, rgba(249,115,22,0.18) 0%, rgba(0,0,0,0) 70%); }
.dashboard .py-ty-panel .py-kanal-stat .v { color: #fb923c; }

/* Trendyol sipariş ekranı (sekme + filtre + tablo) */
.dashboard .py-ty-siparis-top {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
}
html[data-theme="dark"] .dashboard .py-ty-siparis-top {
    background: linear-gradient(180deg, var(--panel-card) 0%, var(--panel-bg) 100%);
    border-bottom-color: var(--panel-border);
}
.dashboard .py-ty-breadcrumb .text-body { color: #0f172a !important; }
html[data-theme="dark"] .dashboard .py-ty-breadcrumb .text-body { color: var(--panel-text) !important; }
.dashboard .py-ty-page-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
}
html[data-theme="dark"] .dashboard .py-ty-page-title { color: var(--panel-text); }
.dashboard .py-ty-status-pills { background: #f1f5f9; }
html[data-theme="dark"] .dashboard .py-ty-status-pills { background: rgba(0,0,0,0.2); }
.dashboard .py-ty-pill {
    border-radius: 999px !important;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.dashboard .py-ty-pill.active {
    background: #f97316 !important;
    color: #fff !important;
}
.dashboard .py-ty-filter-card {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}
html[data-theme="dark"] .dashboard .py-ty-filter-card {
    background: var(--panel-card);
    border-bottom-color: var(--panel-border);
}
.dashboard .py-ty-table-outer {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
html[data-theme="dark"] .dashboard .py-ty-table-outer {
    background: var(--panel-card);
    border-color: var(--panel-border);
}
.dashboard .py-ty-order-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}
html[data-theme="dark"] .dashboard .py-ty-order-table thead {
    background: var(--table-hover);
    border-bottom-color: var(--panel-border);
}
.dashboard .py-ty-th {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    padding: 12px 10px;
    white-space: nowrap;
}
.dashboard .py-ty-tr { border-bottom: 1px solid #f1f5f9; }
html[data-theme="dark"] .dashboard .py-ty-tr { border-bottom-color: var(--panel-border); }
.dashboard .py-ty-tr:hover { background: #fafafa; }
html[data-theme="dark"] .dashboard .py-ty-tr:hover { background: var(--table-hover); }
.dashboard .py-ty-td, .dashboard .py-ty-td-order, .dashboard .py-ty-td-prod {
    padding: 12px 10px;
    vertical-align: top;
    font-size: 13px;
    color: #0f172a;
}
html[data-theme="dark"] .dashboard .py-ty-td,
html[data-theme="dark"] .dashboard .py-ty-td-order,
html[data-theme="dark"] .dashboard .py-ty-td-prod {
    color: var(--panel-text);
}
.dashboard .py-ty-ty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
}
.dashboard .py-ty-link { color: #ea580c !important; }
.dashboard .py-ty-thumb {
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.dashboard .py-ty-thumb-ph {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #94a3b8;
    flex-shrink: 0;
}
.dashboard .py-ty-prod-title { max-width: 240px; line-height: 1.35; color: #0f172a; }
html[data-theme="dark"] .dashboard .py-ty-prod-title { color: var(--panel-text); }

/* —— N11 ürün listesi (panel benzeri tablo) —— */
.dashboard .py-n11-urun-panel {
    border: 1px solid var(--panel-border) !important;
    background: linear-gradient(180deg, #141824 0%, #0f1219 100%) !important;
    color: #e8eaef !important;
    border-radius: 12px;
    overflow: hidden;
}
.dashboard .py-n11-urun-panel .py-n11-urun-head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(90deg, rgba(244, 114, 182, 0.12) 0%, rgba(0,0,0,0) 65%);
}
.dashboard .py-n11-urun-panel .py-n11-urun-breadcrumb {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.dashboard .py-n11-urun-panel .py-n11-urun-breadcrumb .sep { margin: 0 6px; color: #64748b; }
.dashboard .py-n11-urun-panel .py-n11-urun-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dashboard .py-n11-urun-panel .badge-n11 {
    background: #ff6000;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 6px;
}
.dashboard .py-n11-urun-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard .py-n11-urun-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 1100px;
}
.dashboard .py-n11-urun-table thead th {
    text-align: left;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
    background: #1e2433;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}
.dashboard .py-n11-urun-table tbody td {
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e8eaef;
}
.dashboard .py-n11-urun-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}

/* —— Trendyol ürün listesi (Trendyol panel görünümü) —— */
.dashboard .py-ty-urun-panel {
    border: 1px solid var(--panel-border) !important;
    background: linear-gradient(180deg, #141824 0%, #0f1219 100%) !important;
    color: #e8eaef !important;
    border-radius: 12px;
    overflow: hidden;
}
.dashboard .py-ty-urun-panel .py-ty-urun-head {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(90deg, rgba(249,115,22,0.16) 0%, rgba(0,0,0,0) 65%);
}
.dashboard .py-ty-urun-panel .py-ty-urun-breadcrumb {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.dashboard .py-ty-urun-panel .py-ty-urun-breadcrumb .sep { margin: 0 6px; color: #64748b; }
.dashboard .py-ty-urun-panel .py-ty-urun-title {
    font-weight: 800;
    font-size: 1.05rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dashboard .py-ty-urun-panel .badge-ty {
    background: #f97316;
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 6px;
}
.dashboard .py-ty-urun-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dashboard .py-ty-urun-toolbar .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    color: #cbd5e1;
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
}
.dashboard .py-ty-urun-toolbar .pill.active {
    border-color: rgba(249,115,22,0.65);
    background: rgba(249,115,22,0.14);
    color: #fff;
}
.dashboard .py-ty-urun-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard .py-ty-urun-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 1380px;
}
.dashboard .py-ty-urun-table thead th {
    text-align: left;
    padding: 12px 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
    background: #1e2433;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap;
}
.dashboard .py-ty-urun-table tbody td {
    padding: 12px 10px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #e8eaef;
}
.dashboard .py-ty-urun-table tbody tr { height: 74px; }
.dashboard .py-ty-urun-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.dashboard .py-ty-urun-thumb {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    object-fit: cover;
    background: rgba(255,255,255,0.04);
    flex: 0 0 46px;
}
.dashboard .py-ty-urun-name { font-weight: 800; color: #f8fafc; line-height: 1.3; max-width: 420px; }
.dashboard .py-ty-urun-sub { font-size: 12px; color: #94a3b8; line-height: 1.2; margin-top: 2px; }
.dashboard .py-ty-urun-sub code { color: #e8eaef; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); padding: 1px 6px; border-radius: 8px; }
.dashboard .py-ty-urun-input {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #e8eaef !important;
    border-radius: 10px !important;
    height: 34px;
    padding: 6px 10px;
    font-weight: 700;
}
.dashboard .py-ty-urun-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(249,115,22,0.18); border-color: rgba(249,115,22,0.6) !important; }
.dashboard .py-ty-urun-actions .btn {
    border-radius: 10px !important;
}
.dashboard .py-ty-urun-actions .btn-outline-light {
    border-color: rgba(255,255,255,0.18);
    color: #e8eaef;
}
.dashboard .py-ty-urun-actions .btn-outline-light:hover {
    background: rgba(255,255,255,0.06);
}
.dashboard .py-ty-urun-actions .btn-ty {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.dashboard .py-ty-urun-actions .btn-ty:disabled,
.dashboard .py-ty-urun-actions .btn-ty.disabled {
    opacity: 0.55;
    color: #fff;
}
.dashboard .py-ty-urun-footer {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: #94a3b8;
}
.dashboard .py-ty-urun-pager a {
    color: #e8eaef;
    text-decoration: none;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    font-weight: 700;
}
.dashboard .py-ty-urun-pager a:hover { background: rgba(255,255,255,0.07); }
.dashboard .py-ty-urun-pager .cur {
    padding: 6px 10px;
    border: 1px solid rgba(249,115,22,0.55);
    border-radius: 10px;
    background: rgba(249,115,22,0.12);
    color: #fff;
    font-weight: 800;
}

.dashboard .py-ty-urun-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.04);
    color: #e8eaef;
    white-space: nowrap;
}
.dashboard .py-ty-urun-badge.warn {
    border-color: rgba(251,191,36,0.55);
    background: rgba(251,191,36,0.14);
    color: #fff;
}
.dashboard .py-ty-urun-badge.muted {
    border-color: rgba(148,163,184,0.35);
    background: rgba(148,163,184,0.10);
    color: #cbd5e1;
}
.dashboard .py-ty-urun-meta {
    font-size: 12px;
    line-height: 1.2;
    color: #cbd5e1;
}
.dashboard .py-ty-urun-meta .k {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
}
.dashboard .py-ty-urun-meta .v {
    display: block;
    font-weight: 800;
    color: #f8fafc;
    margin-top: 2px;
}
.dashboard .py-ty-urun-meta .v.muted { color: #94a3b8; font-weight: 700; }

/* —— Trendyol ürün editörü (çok sekmeli) —— */
.dashboard .py-ty-editor {
    border: 1px solid var(--panel-border);
    background: linear-gradient(180deg, #141824 0%, #0f1219 100%);
    color: #e8eaef;
    border-radius: 12px;
}
.dashboard .py-ty-editor-top {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(90deg, rgba(249,115,22,0.16) 0%, rgba(0,0,0,0) 65%);
}
.dashboard .py-ty-editor-top .btn { border-radius: 10px; }
.dashboard .py-ty-editor-top .btn-ty {
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: none;
    color: #fff;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.dashboard .py-ty-dd{
    position:absolute;
    z-index:50;
    min-width:280px;
    max-width:100%;
    max-height:280px;
    overflow:auto;
    background:#1e1f24;
    border:1px solid rgba(255,255,255,.12);
    border-radius:10px;
    padding:6px;
    box-shadow:0 10px 30px rgba(0,0,0,.45)
}
.dashboard .py-ty-dd-item{
    display:block;
    width:100%;
    text-align:left;
    background:transparent;
    border:0;
    color:#fff;
    padding:8px 10px;
    border-radius:8px
}
.dashboard .py-ty-dd-item:hover{background:rgba(255,255,255,.08)}
.dashboard .py-ty-editor .col-lg-4{position:relative}
.dashboard .py-ty-attrbox{
    background:rgba(255,255,255,.03);
    border:1px solid rgba(255,255,255,.10);
    border-radius:12px;
    padding:12px
}
.dashboard .py-ty-editor-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: 520px;
}
@media (max-width: 992px) {
    .dashboard .py-ty-editor-body { grid-template-columns: 1fr; }
}
.dashboard .py-ty-editor-left {
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
    background: rgba(255,255,255,0.02);
}
@media (max-width: 992px) {
    .dashboard .py-ty-editor-left { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); display:flex; flex-wrap:wrap; gap:8px; }
}
.dashboard .py-ty-step {
    padding: 10px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 8px;
}
.dashboard .py-ty-step i { color: #94a3b8; }
.dashboard .py-ty-step.active {
    border-color: rgba(249,115,22,0.65);
    background: rgba(249,115,22,0.14);
    color: #fff;
}
.dashboard .py-ty-step.active i { color: #fff; }
.dashboard .py-ty-editor-main {
    padding: 16px;
}
.dashboard .py-ty-pane-title {
    font-weight: 900;
    color: #f8fafc;
    margin-bottom: 10px;
}
.dashboard .py-ty-editor .form-label { color: #94a3b8 !important; font-weight: 700; }
.dashboard .py-ty-editor .form-control, .dashboard .py-ty-editor .form-select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #e8eaef !important;
    border-radius: 10px !important;
}
.dashboard .py-ty-editor .form-control:focus, .dashboard .py-ty-editor .form-select:focus {
    box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
    border-color: rgba(249,115,22,0.6) !important;
}
.dashboard .py-ty-image-uploader { display: grid; grid-template-columns: 260px 1fr; gap: 12px; }
@media (max-width: 992px) { .dashboard .py-ty-image-uploader { grid-template-columns: 1fr; } }
.dashboard .py-ty-image-drop {
    border: 1px dashed rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 14px;
    position: relative;
    overflow: hidden;
}
.dashboard .py-ty-image-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.dashboard .py-ty-image-grid { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-start; }
.dashboard .py-ty-image-item { width: 108px; height: 108px; border-radius: 12px; overflow:hidden; border:1px solid rgba(255,255,255,0.12); position:relative; background: rgba(255,255,255,0.03); }
.dashboard .py-ty-image-item img { width:100%; height:100%; object-fit:cover; display:block; }
.dashboard .py-ty-image-del {
    position: absolute;
    top: 6px;
    right: 6px;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(15,18,25,0.75);
    color: #fff;
    display:flex;
    align-items:center;
    justify-content:center;
}
.dashboard .py-ty-image-del:hover { background: rgba(220,38,38,0.85); }
.dashboard .py-ty-editor-status code { color:#e8eaef; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); padding: 2px 8px; border-radius: 999px; }

/* Dropdown menü koyu panelde okunabilir olsun */
html[data-theme="dark"] .dashboard .py-ty-urun-panel .dropdown-menu,
html[data-theme="dark"] .dashboard .py-ty-editor .dropdown-menu {
    background: #0f1219;
    border-color: rgba(255,255,255,0.12);
}
html[data-theme="dark"] .dashboard .py-ty-urun-panel .dropdown-item,
html[data-theme="dark"] .dashboard .py-ty-editor .dropdown-item {
    color: #e8eaef;
}
html[data-theme="dark"] .dashboard .py-ty-urun-panel .dropdown-item:hover,
html[data-theme="dark"] .dashboard .py-ty-editor .dropdown-item:hover {
    background: rgba(255,255,255,0.06);
}
.dashboard .py-n11-urun-table .py-n11-stock-code {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    color: #f472b6;
}
.dashboard .py-n11-urun-table .py-n11-prod-title {
    font-weight: 600;
    color: #f8fafc;
    max-width: 280px;
    line-height: 1.35;
}
.dashboard .py-n11-urun-table .py-n11-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #0b0e14;
    border: 1px solid rgba(255,255,255,0.08);
}
.dashboard .py-n11-urun-table .py-n11-thumb-ph {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: #1a1f2e;
    border: 1px dashed rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 10px;
    text-align: center;
    line-height: 1.2;
}
.dashboard .py-n11-urun-table .py-n11-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
    white-space: nowrap;
}
.dashboard .py-n11-urun-table .py-n11-badge.ok { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.dashboard .py-n11-urun-table .py-n11-badge.warn { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
.dashboard .py-n11-urun-table .py-n11-badge.muted { background: rgba(100, 116, 139, 0.25); color: #94a3b8; }
.dashboard .py-n11-quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 72px;
    gap: 6px 8px;
    min-width: 220px;
}
.dashboard .py-n11-quick-grid .py-n11-q-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    margin-bottom: 2px;
}
.dashboard .py-n11-quick-grid .py-n11-q-row2 {
    grid-column: 1 / -1;
}
.dashboard .py-n11-quick-grid input.form-control-sm {
    background: #1a1f2e !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: #f8fafc !important;
    font-size: 12px;
}
.dashboard .py-n11-quick-grid .btn-gonder-n11 {
    width: 100%;
    font-weight: 800;
    font-size: 12px;
    padding: 6px 10px;
    background: #2563eb !important;
    border: none !important;
    color: #fff !important;
}
.dashboard .py-n11-quick-grid .btn-gonder-n11:hover {
    filter: brightness(1.08);
}
.dashboard .py-n11-urun-meta {
    font-size: 11px;
    color: #94a3b8;
    padding: 10px 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
html[data-theme="light"] .dashboard .py-n11-urun-panel {
    background: #fff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
html[data-theme="light"] .dashboard .py-n11-urun-panel .py-n11-urun-head {
    background: linear-gradient(90deg, rgba(255, 96, 0, 0.08) 0%, rgba(0,0,0,0) 65%);
    border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .dashboard .py-n11-urun-table thead th {
    background: #f1f5f9;
    color: #475569;
    border-bottom-color: #e2e8f0;
}
html[data-theme="light"] .dashboard .py-n11-urun-table tbody td {
    color: #0f172a;
    border-bottom-color: #f1f5f9;
}
html[data-theme="light"] .dashboard .py-n11-urun-table .py-n11-prod-title { color: #0f172a; }
html[data-theme="light"] .dashboard .py-n11-quick-grid input.form-control-sm {
    background: #fff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* N11 ürün düzenleme modalı: başlık kontrastı, tam yükseklikte kaydırma, Summernote’ta taşan görseller */
.dashboard #pyN11UrunBilgiModal.py-n11-urun-modal .modal-dialog.py-n11-urun-dialog {
    max-height: calc(100vh - 1rem);
    height: calc(100vh - 1rem);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: stretch;
}
.dashboard #pyN11UrunBilgiModal.py-n11-urun-modal .modal-content {
    max-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff !important;
    color: #1e293b !important;
}
.dashboard #pyN11UrunBilgiModal .modal-header {
    flex-shrink: 0;
}
html[data-theme="dark"] .dashboard #pyN11UrunBilgiModal .modal-header.bg-primary {
    background-color: var(--theme-primary, #2563eb) !important;
    color: #fff !important;
}
html[data-theme="dark"] .dashboard #pyN11UrunBilgiModal .modal-title.text-white {
    color: #fff !important;
}
.dashboard #pyN11UrunBilgiModal form.py-n11-urun-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}
.dashboard #pyN11UrunBilgiModal .py-n11-urun-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.dashboard #pyN11UrunBilgiModal .modal-footer {
    flex-shrink: 0;
}
/* Summernote: görselleri kutuya sığdır; düzenleme alanı içinde + modal gövdesinde kaydırma */
.dashboard #pyN11UrunBilgiModal .note-editor {
    min-height: 0;
    max-width: 100%;
}
.dashboard #pyN11UrunBilgiModal .note-editing-area {
    overflow: auto !important;
}
.dashboard #pyN11UrunBilgiModal .note-editable {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    min-height: 180px;
    max-width: 100%;
    box-sizing: border-box;
}
.dashboard #pyN11UrunBilgiModal .note-editable img,
.dashboard #pyN11UrunBilgiModal .note-editable video,
.dashboard #pyN11UrunBilgiModal .note-editable iframe {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    vertical-align: middle;
    object-fit: contain;
}
.dashboard #pyN11UrunBilgiModal .note-editable table {
    max-width: 100% !important;
    table-layout: fixed;
    word-wrap: break-word;
}
.dashboard #pyN11UrunBilgiModal .py-n11-attr-wrap {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
/* Ürün kimliği kartı: .dashboard-card .card gece modunda açık gri metin + bg-light = okunmaz; zorunlu kontrast */
.dashboard #pyN11UrunBilgiModal .py-n11-id-card.bg-light {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
.dashboard #pyN11UrunBilgiModal .py-n11-id-card.bg-light .card-body {
    color: #0f172a !important;
}
.dashboard #pyN11UrunBilgiModal .py-n11-id-card.bg-light .text-muted {
    color: #475569 !important;
}
.dashboard #pyN11UrunBilgiModal .py-n11-id-card.bg-light .font-monospace,
.dashboard #pyN11UrunBilgiModal .py-n11-id-card.bg-light .fw-semibold.text-primary {
    color: #0c4a6e !important;
}
html[data-theme="dark"] .dashboard #pyN11UrunBilgiModal .modal-body .text-muted,
html[data-theme="dark"] .dashboard #pyN11UrunBilgiModal .modal-body small.text-muted {
    color: #64748b !important;
}
html[data-theme="dark"] .dashboard #pyN11UrunBilgiModal .py-n11-id-card.bg-light .text-muted {
    color: #475569 !important;
}

/* ========== Teknik servis / tablolar: arıza metni — .text-body bazen mavi ton; gece modunda zayıf kontrast ========== */
html[data-theme="dark"] .dashboard-card .table .ts-ariza-text,
html[data-theme="dark"] .dashboard-card .table .text-body:not(.btn):not(.badge) {
    color: var(--panel-text) !important;
}
html[data-theme="light"] .dashboard-card .table .ts-ariza-text {
    color: var(--panel-text) !important;
}

/* Yüksek kontrast (erişilebilirlik) — gündüz/gece üzerine */
html[data-highcontrast="1"][data-theme="dark"] {
    --panel-bg: #000000;
    --panel-card: #0a0a0a;
    --panel-text: #ffffff;
    --panel-text-muted: #fde047;
    --panel-border: #ffffff;
    --table-bg: #0a0a0a;
    --table-hover: #1a1a1a;
    --input-bg: #000000;
    --input-border: #ffffff;
    --navbar-bg: #000000;
}
html[data-highcontrast="1"][data-theme="light"] {
    --panel-bg: #ffffff;
    --panel-card: #ffffff;
    --panel-text: #000000;
    --panel-text-muted: #404040;
    --panel-border: #000000;
    --table-bg: #ffffff;
    --table-hover: #f5f5f5;
    --input-bg: #ffffff;
    --input-border: #000000;
    --navbar-bg: #ffffff;
}
html[data-highcontrast="1"] .theme-highcontrast-btn.active {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

/* Giriş sayfaları — panel teması ile uyum (gradient yerine değişken) */
html[data-theme="dark"] body.auth-login-page {
    background: var(--panel-bg) !important;
}
html[data-theme="light"] body.auth-login-page {
    background: var(--panel-bg, #f1f5f9) !important;
}
html[data-highcontrast="1"][data-theme="dark"] body.auth-login-page {
    background: #000 !important;
}
html[data-highcontrast="1"][data-theme="light"] body.auth-login-page {
    background: #fff !important;
}

/* Beyaz giriş kartı: global .form-label { color: var(--panel-text) } koyu temada açık renk verir → okunmaz */
body.auth-login-page .login-card .form-label,
body.auth-login-page .login-card .col-form-label,
body.auth-login-page .login-body .form-label,
body.auth-login-page .login-body .col-form-label {
    color: #0f172a !important;
}
body.auth-login-page .login-card .form-label i,
body.auth-login-page .login-card .form-label .fas,
body.auth-login-page .login-body .form-label i,
body.auth-login-page .login-body .form-label .fas {
    color: #334155 !important;
    opacity: 1;
}
body.auth-login-page .login-card .text-muted,
body.auth-login-page .login-body .text-muted {
    color: #475569 !important;
}

html[data-theme="dark"] body.ts-login-page {
    background: var(--panel-bg) !important;
}
html[data-theme="light"] body.ts-login-page {
    background: var(--panel-bg, #f1f5f9) !important;
}
html[data-theme="dark"] body.ts-login-page .ts-login-body {
    background: #ffffff !important;
    color: #0f172a !important;
}
html[data-theme="dark"] body.ts-login-page .ts-login-body .form-label {
    color: #0f172a !important;
}
html[data-theme="dark"] body.ts-login-page .ts-login-body .form-label i,
html[data-theme="dark"] body.ts-login-page .ts-login-body .form-label .fas {
    color: #334155 !important;
}
html[data-theme="dark"] body.ts-login-page .ts-login-foot {
    color: var(--panel-text-muted) !important;
    border-top-color: var(--panel-border) !important;
}

/* Giriş köşe araç çubuğu — koyu zeminde okunaklı */
html[data-theme="dark"] .auth-theme-floating .btn-outline-secondary {
    border-color: rgba(255,255,255,0.35);
    color: #e2e8f0;
}
html[data-theme="dark"] .auth-theme-floating .btn-outline-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
html[data-theme="dark"] .auth-theme-floating .dropdown-menu {
    background: var(--panel-card);
    border-color: var(--panel-border);
}
html[data-theme="dark"] .auth-theme-floating .dropdown-item {
    color: var(--panel-text);
}

/* ========== Teknik servis sol menü (.ts-sidebar) — koyu zeminde koyu yazı / üstü çizili görünüm ========== */
aside.ts-sidebar {
    color: #f8fafc;
}
aside.ts-sidebar a,
aside.ts-sidebar a:visited,
aside.ts-sidebar a:hover,
aside.ts-sidebar a:active,
html[data-theme="dark"] aside.ts-sidebar a,
html[data-theme="light"] aside.ts-sidebar a,
html[data-highcontrast="1"] aside.ts-sidebar a {
    color: #f1f5f9 !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    -webkit-text-decoration-line: none !important;
}
/* Bağlantı içi metin / ikon — global link stilleri üstü çizgi taşımasın */
aside.ts-sidebar a span,
aside.ts-sidebar a i,
aside.ts-sidebar a .fas,
aside.ts-sidebar a .fa {
    text-decoration: none !important;
    text-decoration-line: none !important;
}
aside.ts-sidebar a:hover {
    color: #ffffff !important;
}
/* Tarayıcının mavi odak kutusu metnin üzerinden “çizgi” gibi görünmesin */
aside.ts-sidebar a:focus {
    outline: none;
}
aside.ts-sidebar a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
    border-radius: 8px;
}
aside.ts-sidebar a.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    text-decoration: none !important;
}
aside.ts-sidebar a i {
    color: inherit !important;
    opacity: 1 !important;
}
aside.ts-sidebar a.text-danger,
aside.ts-sidebar a.text-danger:visited {
    color: #fecaca !important;
}
aside.ts-sidebar a.text-danger:hover {
    color: #fee2e2 !important;
}
aside.ts-sidebar .text-white {
    color: #ffffff !important;
}
aside.ts-sidebar hr.border-secondary {
    border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Teknik servis ana alan başlıkları (ör. «Servis kayıtları») */
.ts-main h1,
.ts-main h2,
.ts-main h3,
.ts-main h4,
.ts-main h5,
.ts-main h6 {
    color: var(--panel-text) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
}
html[data-theme="dark"] .ts-main .form-control::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

/* Teknik servis — dış servis 7+ gün (.table-warning): panel laciverti (#242d3c) + tema metin / accent */
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning > td,
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning > th {
    background-color: #242d3c !important;
    color: var(--panel-text) !important;
    border-color: var(--panel-border) !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning:hover,
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning:hover {
    background-color: #242d3c !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning:hover > td,
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning:hover > th {
    background-color: #242d3c !important;
    color: var(--panel-text) !important;
    border-color: var(--panel-border) !important;
}
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning > td,
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning > th {
    background-color: #242d3c !important;
    color: #f1f5f9 !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
}
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning:hover > td,
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning:hover > th {
    background-color: #242d3c !important;
    color: #f1f5f9 !important;
    border-color: rgba(148, 163, 184, 0.45) !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning .text-muted {
    color: var(--panel-text-muted) !important;
}
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning .text-muted {
    color: #cbd5e1 !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning strong,
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning strong {
    color: inherit !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning code {
    color: var(--panel-text) !important;
    background-color: rgba(0, 0, 0, 0.22) !important;
}
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning code {
    color: #f1f5f9 !important;
    background-color: rgba(255, 255, 255, 0.12) !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning a:not(.btn),
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning a:not(.btn) {
    color: var(--theme-primary, #3b82f6) !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning a:not(.btn):hover,
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning a:not(.btn):hover {
    color: var(--theme-primary-hover, #2563eb) !important;
}
html[data-theme="dark"] .ts-main .table:not(.table-dark) tbody > tr.table-warning .text-primary,
html[data-theme="light"] .ts-main .table:not(.table-dark) tbody > tr.table-warning .text-primary {
    color: var(--theme-primary, #3b82f6) !important;
}

/* Teknik servis tabloları: Bootstrap table-hover inset (sarı/cream) kapat; hover’da zemin sabit */
html[data-theme="dark"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:hover > td,
html[data-theme="dark"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:hover > th,
html[data-theme="light"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:hover > td,
html[data-theme="light"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:hover > th {
    box-shadow: none !important;
    --bs-table-bg-state: transparent !important;
    --bs-table-hover-bg: transparent !important;
}
html[data-theme="dark"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:not(.table-warning):hover > td,
html[data-theme="dark"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:not(.table-warning):hover > th {
    background-color: var(--table-bg) !important;
}
html[data-theme="light"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:not(.table-warning):hover > td,
html[data-theme="light"] .ts-main .table.table-hover:not(.table-dark) tbody > tr:not(.table-warning):hover > th {
    background-color: var(--table-bg) !important;
}
html[data-theme="dark"] .ts-main .table.table-hover:not(.table-dark) tbody > tr.table-warning > td,
html[data-theme="dark"] .ts-main .table.table-hover:not(.table-dark) tbody > tr.table-warning > th,
html[data-theme="light"] .ts-main .table.table-hover:not(.table-dark) tbody > tr.table-warning > td,
html[data-theme="light"] .ts-main .table.table-hover:not(.table-dark) tbody > tr.table-warning > th {
    --bs-table-bg-state: #242d3c !important;
    --bs-table-hover-bg: #242d3c !important;
    box-shadow: none !important;
}
