/* ============================================================================
   KCQube — AI Asistan Sidebar Stilleri
   Dosya: KCConnect.Blazor.Server/wwwroot/css/kc-ai-chat.css
   ============================================================================ */

/* Ana sidebar container */
.kc-ai-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.kc-ai-sidebar.open {
    right: 0;
}

/* Header */
.kc-ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1a56db, #3b82f6);
    color: white;
    flex-shrink: 0;
}

.kc-ai-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.kc-ai-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.kc-ai-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.kc-ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Chat body */
.kc-ai-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kc-ai-chat {
    height: 100%;
}

/* Empty state */
.kc-ai-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
}

.kc-ai-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.kc-ai-empty-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.kc-ai-empty-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

/* Suggestion butonları */
.kc-ai-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 320px;
}

.kc-ai-suggestion {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.kc-ai-suggestion:hover {
    background: #e0e7ff;
    border-color: #818cf8;
    color: #1e40af;
}

/* DxAIChat içi düzenlemeleri */
.kc-ai-chat .dxbl-ai-chat {
    border: none !important;
    height: 100% !important;
}

.kc-ai-chat .dxbl-ai-chat-message-area {
    padding: 12px !important;
}

/* Backdrop (sidebar açıkken arka plan kararması) */
.kc-ai-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.kc-ai-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

/* Sağ alt köşede AI toggle butonu (saf HTML button) */
.kc-ai-fab {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    padding: 0;
}

.kc-ai-fab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAB kapalı durumu — YEŞİL */
.kc-ai-fab.fab-closed {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

.kc-ai-fab.fab-closed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6), 0 0 40px rgba(5, 150, 105, 0.3);
}

/* FAB açık durumu — KIRMIZI */
.kc-ai-fab.fab-open {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.45);
}

.kc-ai-fab.fab-open:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.6), 0 0 40px rgba(220, 38, 38, 0.3);
}

/* ============================================================================
   KCQube — Alt Arama Çubuğu Stilleri
   ============================================================================ */

/* Ana container — sayfanın en altında fixed */
.kcqube-searchbar-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8500;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 16px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}

.kcqube-searchbar-container.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.kcqube-searchbar-container > * {
    pointer-events: auto;
}

/* Arama çubuğu — frosted glass */
.kcqube-searchbar {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kcqube-searchbar-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.kcqube-searchbar-inner:focus-within {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(102, 126, 234, 0.15),
        0 0 0 3px rgba(102, 126, 234, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.kcqube-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.kcqube-searchbar-inner:focus-within .kcqube-search-icon {
    color: #667eea;
}

.kcqube-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #1e293b;
    font-weight: 400;
    line-height: 1.5;
}

.kcqube-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Temizle butonu */
.kcqube-clear-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.15s;
    flex-shrink: 0;
}

.kcqube-clear-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #64748b;
}

/* Mikrofon butonu */
.kcqube-mic-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.kcqube-mic-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #667eea;
}

/* Mikrofon aktif — kırmızı pulsing animasyon */
.kcqube-mic-btn.listening {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    animation: kcqube-mic-pulse 1.5s ease-in-out infinite;
}

@keyframes kcqube-mic-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

/* Gönder butonu */
.kcqube-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.kcqube-send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.kcqube-send-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Hint etiketleri */
.kcqube-searchbar-hint {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kcqube-searchbar-hint span {
    font-size: 11px;
    color: rgba(100, 116, 139, 0.7);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

/* Sonuç popup'u — arama çubuğunun hemen üstünde */
.kcqube-result-popup {
    width: 100%;
    max-width: 680px;
    max-height: 400px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    box-shadow:
        0 -8px 32px rgba(0, 0, 0, 0.12),
        0 -2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: kcqube-slide-up 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes kcqube-slide-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kcqube-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    flex-shrink: 0;
}

.kcqube-result-title {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
}

.kcqube-result-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s;
}

.kcqube-result-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #64748b;
}

.kcqube-result-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}

.kcqube-result-body h2,
.kcqube-result-body h3,
.kcqube-result-body h4 {
    margin: 12px 0 6px;
    color: #1e293b;
}

.kcqube-result-body h2 { font-size: 16px; }
.kcqube-result-body h3 { font-size: 15px; }
.kcqube-result-body h4 { font-size: 14px; }

.kcqube-result-body p {
    margin: 4px 0;
}

.kcqube-result-body li {
    margin-left: 16px;
    list-style: disc;
}

.kcqube-result-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 13px;
    margin: 8px 0;
}

.kcqube-result-body code.inline {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.kcqube-result-body strong {
    font-weight: 600;
    color: #1e293b;
}

/* Yükleniyor animasyonu */
.kcqube-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #64748b;
    font-size: 14px;
}

.kcqube-loading-dots {
    display: flex;
    gap: 4px;
}

.kcqube-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: kcqube-dot-pulse 1.4s ease-in-out infinite;
}

.kcqube-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.kcqube-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes kcqube-dot-pulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Hata mesajı */
.kcqube-error {
    color: #dc2626;
    padding: 8px 12px;
    background: rgba(220, 38, 38, 0.06);
    border-radius: 8px;
    font-size: 13px;
}

/* Sonuç popup overlay — dışarı tıklama algılama */
.kcqube-overlay {
    position: fixed;
    inset: 0;
    z-index: 8499;
    background: transparent;
}

/* FAB butonunu arama çubuğunun üstüne taşı */
.kc-ai-toggle-container {
    z-index: 8600 !important;
}

/* Login sayfasında KCQube bileşenlerini gizle */
body.kc-login-page .kc-ai-toggle-container,
body.kc-login-page .kcqube-searchbar-container,
body.kc-login-page .kc-ai-sidebar {
    display: none !important;
}

/* Filtre uygulandı hint mesajı */
.kcqube-filter-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
}

/* AI Chat sidebar — Filtreyi Temizle çubuğu */
.kc-ai-filter-bar {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.kc-ai-clear-filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: center;
}

.kc-ai-clear-filter-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.1);
}

.kc-ai-clear-filter-btn:active {
    transform: scale(0.98);
}

.kc-ai-clear-filter-btn svg {
    flex-shrink: 0;
    stroke: #dc2626;
}

/* ============================================================================
   KCQube — Stat Kartı (tek değer: COUNT, SUM, AVG sonuçları)
   Dijital ekran görünümü — yapay zeka teması
   ============================================================================ */
.kcqube-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 24px;
    background: linear-gradient(160deg, #f3f0ff 0%, #ede9fe 30%, #e8e0ff 60%, #f0ebff 100%);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: kcqube-stat-appear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arka plan dekoratif ızgara — dijital hissi */
.kcqube-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

/* Hafif parlama efekti */
.kcqube-stat-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent);
    pointer-events: none;
}

@keyframes kcqube-stat-appear {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.kcqube-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 1;
}

.kcqube-stat-value {
    font-family: 'Consolas', 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 8px;
    color: #5b21b6;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
    position: relative;
    z-index: 1;
    /* Dijital ekran efekti */
    -webkit-font-smoothing: antialiased;
}

.kcqube-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    opacity: 0.8;
}

/* Stat kartı altındaki AI özet metni */
.kcqube-stat-card + p,
.kcqube-stat-card ~ p {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-top: 4px;
}

/* Debug: çalıştırılan SQL sorgusu (geçici) */
.kcqube-debug-sql {
    margin-top: 12px;
    padding: 8px 12px;
    background: #1e1b2e;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-x: auto;
}

.kcqube-debug-sql .kcqube-debug-label {
    font-size: 10px;
    font-weight: 700;
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.kcqube-debug-sql code {
    font-family: 'Consolas', 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    color: #c4b5fd;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
}

/* ============================================================================
   KCQube — Kompakt Kart Listesi (1-3 satır, az kolonlu sonuçlar)
   ============================================================================ */
.kcqube-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kcqube-card-item {
    display: flex;
    gap: 16px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.15s ease;
}

.kcqube-card-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.kcqube-card-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.kcqube-card-label {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kcqube-card-value {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kcqube-card-value.numeric {
    font-weight: 700;
    color: #1a56db;
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   KCQube — Modern Tablo (çoklu satır sonuçlar)
   ============================================================================ */
.kcqube-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.kcqube-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.kcqube-table thead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    position: sticky;
    top: 0;
}

.kcqube-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.kcqube-table td {
    padding: 10px 14px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kcqube-table td.numeric {
    font-weight: 600;
    color: #1a56db;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.kcqube-table tbody tr {
    transition: background 0.1s ease;
}

.kcqube-table tbody tr:hover {
    background: #f8fafc;
}

.kcqube-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 480px) {
    .kc-ai-sidebar {
        width: 100vw;
        right: -100vw;
    }

    .kcqube-searchbar-container {
        padding: 0 8px 8px;
    }

    .kcqube-searchbar-inner {
        padding: 8px 12px;
        border-radius: 12px;
    }

    .kcqube-result-popup {
        max-height: 60vh;
        border-radius: 12px;
    }

    .kcqube-searchbar-hint {
        display: none;
    }
}

/* ============================================================================
   Fiyat Anomali Uyarısı — KCQube mesaj stili (mor/lila arka plan, tek satır)
   Fotoğraftaki KCQube sorgu sonucu gibi görünür
   ============================================================================ */

.kcqube-anomali-uyari {
    width: 100%;
    max-width: 680px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    border-radius: 12px;
    margin-bottom: 8px;
    animation: kcqube-anomali-slide-up 0.3s ease-out;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.2);
}

@keyframes kcqube-anomali-slide-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kcqube-anomali-label {
    font-size: 13px;
    font-weight: 700;
    color: #6366f1;
    white-space: nowrap;
    flex-shrink: 0;
}

.kcqube-anomali-mesaj {
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.kcqube-anomali-kapat {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.15s;
}

.kcqube-anomali-kapat:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

/* ============================================================================
   Fiyat Detay Row — Grid expand icerigi
   ============================================================================ */

.fiyat-detay-expand {
    padding: 8px 16px;
    background: #f8fafc;
}

.fiyat-detay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.fiyat-detay-grup {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
}

.fiyat-detay-grup-baslik {
    font-size: 12px;
    font-weight: 700;
    color: #1a56db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 2px solid #e0e7ff;
}

.fiyat-detay-alan {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 13px;
}

.fiyat-detay-label {
    color: #64748b;
}

.fiyat-detay-deger {
    color: #1e293b;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.fiyat-detay-bold {
    font-weight: 700;
    color: #1a56db;
}

.fiyat-detay-cari {
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fiyat-detay-cari-select {
    font-size: 11px;
    padding: 2px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    max-width: 220px;
    background: #fff;
}

.fiyat-detay-cari-input {
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 130px;
    background: #fff;
}
.fiyat-detay-cari-input:focus {
    border-color: #1a56db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 86, 219, 0.15);
}

/* XAF üst sekme çubuğu — sayfa kaydırılınca sabit kalır */
.xaf-navigation-tabs,
.dxbl-tabs-container,
.xaf-tabbed-mdi,
.xaf-document-tabs,
.dxbl-tab-header-scroll-container,
.xaf-main-content > .nav-tabs,
.xaf-main-content > .dxbl-tabs > .dxbl-tabs-header {
    position: sticky !important;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* DetailView tab bar — sayfa kaydırılınca üstte sabit kalır */
.xaf-detail-view > .nav-tabs,
.xaf-detail-view > .dxbs-tabs > .nav-tabs,
.xaf-tabbedgroup > .nav-tabs {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 2px solid #dee2e6;
}
