/* ==========================================================================
   DENKLEM CRM — GENEL VE GİRİŞ SAYFASI STİLLERİ (SITE.CSS)
   Schindler Swiss Design Standardı:
   - Font: Univers, Helvetica Neue, Arial, sans-serif
   - Renkler: Schindler Kırmızısı (#E2001A), Schindler Siyahı (#1A1A1A), Nötr Gri (#CBD5E1)
   ========================================================================== */

:root {
    --font-main: 'Univers', 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg-page: #F4F5F7;
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #64748B;
    --border-color: #CBD5E1;
    --border-focus: #E2001A;
    --primary-red: #E2001A;
    --primary-red-hover: #B80015;
    --primary-red-light: #FFF0F2;
    --primary-orange: #E2001A; /* Geriye dönük uyumluluk: Tüm var(--primary-orange) çağrıları Schindler Kırmızısı verir */
    --primary-navy: #1A1A1A;
    --primary-dark: #1A1A1A;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   KURUMSAL GİRİŞ SAYFASI (AYDINLIK, ZARİF VE %100 MOBİL UYUMLU MİMARİ)
   ========================================================================== */

/* Giriş Sayfası Dış Kapsayıcı */
.login-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-page);
    background-image: radial-gradient(at 50% 0%, rgba(226, 0, 26, 0.04) 0px, transparent 60%), radial-gradient(at 100% 100%, rgba(26, 26, 26, 0.04) 0px, transparent 60%);
    padding: 2rem 1.25rem;
    box-sizing: border-box;
}

/* Kurumsal Giriş Kartı (Dikey Logo Split Layout - Tam Simetrik) */
.login-card-enterprise {
    width: 100%;
    max-width: 580px;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    align-items: stretch;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Sol Kolon: Dikey Logo Alanı (Tam Merkezli Simetri) */
.login-split-sidebar {
    width: 135px;
    min-width: 135px;
    background: #FFFFFF;
    border-right: 1.5px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.25rem 1rem;
    box-sizing: border-box;
}

.login-vertical-logo {
    max-height: 350px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Sağ Kolon: Giriş Formu (Tam Dikey ve Yatay Simetri) */
.login-split-main {
    flex: 1;
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Form Elemanları */
.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1A1A1A;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 0.875rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    color: #1A1A1A;
    background-color: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 4px;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(226, 0, 26, 0.15);
}

/* Güvenlik Doğrulaması (Captcha) */
.login-captcha-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
    align-items: center;
}

.login-captcha-box {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1A1A1A;
    background: #F4F5F7;
    border: 1.5px solid #CBD5E1;
    border-radius: 4px;
    user-select: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

.login-captcha-box:hover {
    background: #E2E8F0;
    border-color: var(--primary-red);
}

/* Modern 44px Dokunmatik Switch */
.denklem-switch-wrapper {
    display: flex;
    align-items: center;
    height: 44px;
    user-select: none;
}

.denklem-switch-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

.denklem-switch-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.denklem-switch-input {
    display: none;
}

.denklem-switch-track {
    width: 44px;
    height: 24px;
    background-color: #CBD5E1;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.25s ease;
}

.denklem-switch-knob {
    width: 18px;
    height: 18px;
    background-color: #FFFFFF;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
}

.denklem-switch-input:checked + .denklem-switch-track {
    background-color: var(--primary-red);
}

.denklem-switch-input:checked + .denklem-switch-track .denklem-switch-knob {
    transform: translateX(20px);
}

/* Alt Bağlantılar */
.login-footer-links {
    margin-top: 1.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-license-link {
    font-size: 0.8125rem;
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s;
}

.login-license-link:hover {
    text-decoration: underline;
    color: var(--primary-red-hover);
}

.login-copyright {
    font-size: 0.75rem;
    color: #94A3B8;
}

/* ==================== MOBİL UYUMLULUK SORGULARI (YAN YANA DİKEY LOGO SPLIT) ==================== */
@media (max-width: 640px) {
    .login-page-wrapper {
        padding: 1rem 0.5rem;
    }

    .login-card-enterprise {
        flex-direction: row;
        max-width: 100%;
        border-radius: 16px;
    }

    .login-split-sidebar {
        width: 80px;
        min-width: 80px;
        border-right: 1.5px solid #F1F5F9;
        border-bottom: none;
        padding: 1.5rem 0.5rem;
    }

    .login-vertical-logo {
        max-height: 300px;
    }

    .login-split-main {
        padding: 1.5rem 1rem;
    }

    .login-form {
        gap: 0.875rem;
    }
}

@media (max-width: 390px) {
    .login-page-wrapper {
        padding: 0.75rem 0.35rem;
    }

    .login-split-sidebar {
        width: 70px;
        min-width: 70px;
        padding: 1.25rem 0.35rem;
    }

    .login-vertical-logo {
        max-height: 270px;
    }

    .login-split-main {
        padding: 1.25rem 0.75rem;
    }
}

/* ==========================================================================
   WIZARD / ADIMLI KAYIT FORMU STİLLERİ (3-STEP REGISTRATION)
   ========================================================================== */

.wizard-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 680px;
    padding: 2.5rem 2.75rem;
    border-radius: 20px;
    box-shadow: 0 12px 35px -5px rgba(14, 27, 56, 0.08), 0 0 0 1px rgba(14, 27, 56, 0.05);
    display: flex;
    flex-direction: column;
}

/* Step Bar / Adım Göstergesi */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
}

.wizard-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 2px solid #CBD5E1;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

/* Link Butonları */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-red);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: var(--primary-red-hover);
    text-decoration: underline;
}

/* ==========================================================================
   SUPERADMIN ENTERPRISE SIDEBAR LAYOUT
   ========================================================================== */

.superadmin-container {
    display: flex;
    min-height: 100vh;
    background-color: #F4F5F7;
}

/* Sol Sabit Sidebar */
.superadmin-sidebar {
    width: 260px;
    background-color: #FFFFFF;
    border-right: 1px solid #CBD5E1;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.03);
}

.sidebar-brand {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 70px;
    box-sizing: border-box;
}

.sidebar-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.sidebar-menu {
    flex: 1;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    border: 1px solid transparent;
}

.sidebar-menu-item:hover {
    background-color: #F4F5F7;
    color: #1A1A1A;
}

.sidebar-menu-item.active {
    background-color: #FFF0F2;
    color: var(--primary-red);
    border-color: #FECACA;
    font-weight: 800;
}

.sidebar-footer {
    padding: 1.25rem 1.25rem;
    border-top: 1px solid #F1F5F9;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 800;
    color: #1A1A1A;
}

.sidebar-user-role {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-red);
}

/* Sağ Ana İçerik Alanı */
.superadmin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2.25rem 3rem;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ==========================================================================
   KURUMSAL MODAL PENCERE MİMARİSİ (DENKLEM-MODAL)
   ========================================================================== */

.denklem-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.denklem-modal-overlay.active,
.denklem-modal-overlay.show {
    display: flex !important;
}

.denklem-modal-box {
    background: #FFFFFF !important;
    border-radius: 8px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3) !important;
    width: 100%;
    max-width: 580px;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
}

.denklem-modal-box-square {
    width: 900px !important;
    max-width: 92vw !important;
    height: 720px !important;
    max-height: 86vh !important;
}

@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.denklem-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.25rem 1.75rem !important;
    border-bottom: 1px solid #F1F5F9 !important;
    background-color: #FFFFFF !important;
    box-sizing: border-box !important;
}

.denklem-modal-title {
    margin: 0 !important;
    font-size: 1.1875rem !important;
    font-weight: 800 !important;
    color: #1A1A1A !important;
    line-height: 1.3 !important;
}

.denklem-modal-close {
    background: transparent !important;
    border: none !important;
    font-size: 1.75rem !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    color: #64748B !important;
    line-height: 1 !important;
    padding: 0.25rem !important;
    margin: -0.25rem -0.5rem -0.25rem 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.15s ease !important;
}

.denklem-modal-close:hover {
    color: #E2001A !important;
}

.denklem-modal-body {
    padding: 1.5rem 1.75rem !important;
    background-color: #FFFFFF !important;
    color: #334155 !important;
    max-height: calc(85vh - 140px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.denklem-modal-footer {
    padding: 1.25rem 1.75rem !important;
    background-color: #F8FAFC !important;
    border-top: 1px solid #F1F5F9 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 0.875rem !important;
    box-sizing: border-box !important;
}

/* Mobil Responsive */
@media (max-width: 900px) {
    .superadmin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
    }

    .superadmin-container {
        flex-direction: column;
    }

    .superadmin-main {
        margin-left: 0;
        padding: 1.5rem 1rem;
    }
}

.step-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Aktif ve Tamamlanan Adım */
.wizard-step-item.active .step-circle {
    background-color: #2563EB;
    border-color: #2563EB;
    color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.wizard-step-item.active .step-title {
    color: #2563EB;
}

.wizard-step-item.completed .step-circle {
    background-color: #10B981;
    border-color: #10B981;
    color: #FFFFFF;
}

.wizard-step-item.completed .step-title {
    color: #10B981;
}

/* Adım Çizgisi */
.step-connector {
    position: absolute;
    top: 18px;
    left: 16%;
    right: 16%;
    height: 2px;
    background-color: #E2E8F0;
    z-index: 1;
}

/* Form Başlık Alanı */
.wizard-header {
    margin-bottom: 2rem;
}

.wizard-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0E1B38;
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.wizard-header-desc {
    font-size: 0.9375rem;
    color: #64748B;
    line-height: 1.5;
}

/* İki Kolonlu Form Izgarası */
.form-row {
    display: flex;
    gap: 1.25rem;
    width: 100%;
}

.form-col-6 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Güvenlik Notu Kutusu (SQL Ayarları İçin) */
.security-note-box {
    background-color: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #1E40AF;
    font-size: 0.875rem;
    line-height: 1.6;
}

.security-note-box strong {
    color: #1E3A8A;
}

/* Özet Kartı (3. Adım İçin) */
.summary-box {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #E2E8F0;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    color: #64748B;
    font-weight: 500;
}

.summary-value {
    color: #0E1B38;
    font-weight: 700;
}

.badge-trial {
    background-color: #ECFDF5;
    color: #059669;
    border: 1px solid #A7F3D0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Wizard Aksiyon Butonları */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.wizard-actions-right {
    display: flex;
    gap: 0.75rem;
    margin-left: auto;
}

/* Mobil Uyumluluk */
@media (max-width: 600px) {
    .wizard-card {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .wizard-actions .btn-action,
    .wizard-actions-right {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
    }

    .step-title {
        font-size: 0.6875rem;
    }
}

/* Buton Grubu */
.login-button-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
    width: 100%;
}

/* Alt Bilgi */
.login-footer {
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: #94A3B8;
    text-align: center;
}

/* Mobil Uyumluluk */
@media (max-width: 480px) {
    .login-header-nav {
        padding: 1rem 1rem;
    }

    .login-nav-logo {
        height: 32px;
    }

    .login-page-wrapper {
        padding: 4.75rem 1rem 1.5rem 1rem;
    }

    .login-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(14, 27, 56, 0.05);
    }

    .login-app-title {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   MODERN TOGGLE SWITCH (ANAHTAR GÖRÜNÜMÜ - MOBİL ERGONOMİK)
   ========================================================================== */

.denklem-switch-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.5rem 0 1.25rem 0;
    user-select: none;
}

.denklem-switch-container,
.denklem-switch-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    padding: 0.25rem 0;
    user-select: none;
    margin: 0;
}

.denklem-switch-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.denklem-switch-track {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #CBD5E1;
    border-radius: 999px;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    cursor: pointer;
}

.denklem-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(14, 27, 56, 0.2);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.denklem-switch-input:checked + .denklem-switch-track {
    background-color: var(--primary-orange, #FF6B00);
}

.denklem-switch-input:checked + .denklem-switch-track .denklem-switch-knob {
    transform: translateX(20px);
}

/* ==========================================================================
   MÜŞTERİ PORTALI VE DASHBOARD STİLLERİ (_CustomerLayout.cshtml)
   ========================================================================== */
.customer-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #F4F5F7;
}

/* ==================== KURUMSAL ÜST HEADER ==================== */
.customer-header {
    height: 64px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #CBD5E1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.customer-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-brand-group {
    display: flex;
    align-items: center;
}

.customer-header-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.customer-header-logo-img {
    height: 42px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.customer-header-company-name {
    font-size: 0.9375rem; /* 15px */
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* Canlı Sistem & Lisans Rozet Grubu */
.customer-header-status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    border-left: 1px solid #CBD5E1;
}

.customer-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.2s ease;
    cursor: default;
    user-select: none;
}

.customer-status-pill.erp-connected {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.customer-status-pill.erp-disconnected {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.status-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10B981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseLiveGreen 2s infinite;
}

.customer-status-pill.erp-disconnected .status-pulse-dot {
    background-color: #E2001A;
    box-shadow: none;
    animation: none;
}

@keyframes pulseLiveGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.customer-license-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    cursor: default;
    user-select: none;
    transition: all 0.2s ease;
}

.customer-license-pill.lic-green {
    background: #F0FDF4;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.customer-license-pill.lic-blue {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
}

.customer-license-pill.lic-orange {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.customer-license-pill.lic-darkorange {
    background: #FFF0F2;
    color: #E2001A;
    border: 1px solid #FECACA;
}

.customer-license-pill.lic-slate {
    background: #F4F5F7;
    color: #475569;
    border: 1px solid #CBD5E1;
}

/* ==================== SAĞ KULLANICI PROFİL MENÜSÜ & DROPDOWN ==================== */
.customer-header-right {
    display: flex;
    align-items: center;
}

.customer-user-menu-wrapper {
    position: relative;
    display: inline-block;
}

.customer-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 4px 10px 4px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.customer-user-trigger:hover,
.customer-user-trigger.active {
    background: #F4F5F7;
    border-color: #CBD5E1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.customer-user-avatar-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.customer-header-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-red);
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.user-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background-color: #10B981;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
}

.customer-user-info-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.customer-user-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
}

.customer-user-role-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #64748B;
    line-height: 1.1;
    margin-top: 1px;
}

.customer-dropdown-chevron {
    font-size: 0.625rem;
    color: #94A3B8;
    margin-left: 0.25rem;
    transition: transform 0.2s ease;
}

/* Kurumsal Profil Popover Menü */
.customer-profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.14), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
    padding: 0.875rem;
    z-index: 1050;
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.customer-profile-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 0.75rem 0.25rem;
    border-bottom: 1px solid #F1F5F9;
}

.profile-dropdown-avatar-wrap {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.profile-dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-red);
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.profile-dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.profile-dropdown-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1A1A1A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.profile-dropdown-email {
    font-size: 0.75rem;
    color: #64748B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.profile-dropdown-role-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #1D4ED8;
    background: #EFF6FF;
    border: 1px solid #DBEAFE;
    padding: 1px 7px;
    border-radius: 4px;
    margin-top: 3px;
}

/* ==================== SİSTEM & LİSANS ÖZET KARTI ==================== */
.profile-dropdown-system-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 0.75rem 0.875rem;
    margin: 0.75rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-system-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.profile-system-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-system-label {
    color: #475569;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.profile-license-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.profile-license-badge.active {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
}

.profile-license-badge.warning {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.profile-badge-icon {
    width: 11px;
    height: 11px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

.profile-system-date-range {
    font-size: 0.75rem;
    color: #64748B;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.profile-system-divider {
    height: 1px;
    background: #E2E8F0;
    margin: 0.1rem 0;
}

.profile-system-erp-row {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
}

.profile-erp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.profile-erp-status.connected {
    color: #15803D;
}

.profile-erp-status.disconnected {
    color: #E2001A;
}

.profile-erp-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.profile-erp-status.connected .profile-erp-dot {
    background: #16A34A;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}

.profile-erp-status.disconnected .profile-erp-dot {
    background: #E2001A;
    box-shadow: 0 0 0 2px rgba(226, 0, 26, 0.2);
}

.profile-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.profile-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary-red);
    background: #FFFFFF;
    border: 1.5px solid var(--primary-red);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
}

.profile-action-btn:hover {
    background: #FFF0F2;
    border-color: var(--primary-red-hover);
    color: var(--primary-red-hover);
}

.profile-action-btn.btn-logout {
    color: #E2001A;
    border-color: #FECACA;
    background: #FEF2F2;
}

.profile-action-btn.btn-logout:hover {
    background: #FEE2E2;
    border-color: #E2001A;
    color: #B80015;
}

.profile-dropdown-divider {
    height: 1px;
    background: #F1F5F9;
    margin: 0.125rem 0;
}

/* Gövde ve Sol Menü */
.customer-body-container {
    display: flex;
    flex: 1;
}

.customer-sidebar {
    width: 260px;
    background-color: #FFFFFF;
    border-right: 1px solid #CBD5E1;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding: 1.25rem 0;
}

.customer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.875rem;
}

.customer-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6875rem 1rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.customer-menu-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    flex: 1;
}

.customer-menu-icon-wrap {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.customer-menu-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease, stroke 0.15s ease;
}

.customer-menu-item:hover {
    background-color: #F4F5F7;
    color: var(--primary-red);
}

.customer-menu-item:hover .customer-menu-icon {
    transform: scale(1.08);
}

.customer-menu-item.active {
    background-color: #FFF0F2;
    color: var(--primary-red);
    border-left: 3px solid var(--primary-red);
}

/* Accordion Alt Menü */
.customer-submenu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.customer-submenu.open {
    display: flex;
}

.customer-submenu-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    color: #64748B;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease;
    gap: 0.55rem;
}

.customer-submenu-icon-wrap {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.85;
}

.customer-submenu-icon {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.customer-submenu-item:hover {
    background-color: #F4F5F7;
    color: #1A1A1A;
}

.customer-submenu-item:hover .customer-submenu-icon {
    opacity: 1;
    transform: scale(1.08);
}

.customer-submenu-item.active {
    background-color: #FFF0F2;
    color: var(--primary-red);
    font-weight: 700;
}

.customer-submenu-item.active .customer-submenu-icon {
    opacity: 1;
}

/* ==================== SABİT SAYFA BAŞLIĞI VE İKON SENKRONİZASYONU ==================== */
.crm-page-title-with-icon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

.customer-page-title-icon-wrap {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 6px;
    background: rgba(226, 0, 26, 0.08);
    color: var(--primary-red, #E2001A);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.customer-page-title-icon {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* İç İçe Alt Menü (Nested Submenu Seviye 3) */
.customer-nested-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.875rem;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.customer-nested-toggle:hover {
    background-color: #F4F5F7;
    color: var(--primary-red);
}

.customer-nested-toggle.active {
    background-color: #FFF0F2;
    color: var(--primary-red);
}

.customer-nested-submenu {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding-left: 0.75rem;
    margin-left: 0.5rem;
    border-left: 2px solid #CBD5E1;
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
}

.customer-nested-submenu.open {
    display: flex;
}

.customer-nested-item {
    display: block;
    padding: 0.4rem 0.75rem;
    color: #64748B;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.customer-nested-item:hover {
    background-color: #F4F5F7;
    color: #1A1A1A;
}

.customer-nested-item.active {
    background-color: #FFF0F2;
    color: var(--primary-red);
    font-weight: 700;
}

.customer-main-content {
    flex: 1;
    padding: 2rem;
    background-color: #F4F5F7;
    min-width: 0;
}

/* Hamburger Toggle Butonu */
.customer-hamburger-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.customer-hamburger-btn:hover {
    background: #FFF0F2;
    border-color: #FECACA;
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background-color: #1A1A1A;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.customer-hamburger-btn:hover .hamburger-line {
    background-color: var(--primary-red);
}

/* Kademeli Lisans Rozetleri */
.badge-lic-green {
    background-color: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-lic-blue {
    background-color: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

.badge-lic-orange {
    background-color: #FFF0F2;
    color: #E2001A;
    border: 1px solid #FECACA;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
}

.badge-lic-darkorange {
    background-color: #FFE5E8;
    color: #B80015;
    border: 1px solid #FCA5A5;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.75rem;
}

.badge-lic-slate {
    background-color: #F4F5F7;
    color: #1A1A1A;
    border: 1px solid #CBD5E1;
    padding: 3px 9px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

/* Sidebar Backdrop (Mobil) */
.customer-sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(2px);
    z-index: 998;
}

.customer-sidebar-backdrop.active {
    display: block;
}

/* Sidebar Masaüstü Gizleme (Collapsed) */
.customer-sidebar.desktop-collapsed {
    display: none;
}

@media (max-width: 992px) {
    .customer-header {
        height: 58px;
        padding: 0 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .customer-header-left {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .customer-header-company-name {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.875rem;
    }

    .customer-header-status-group {
        display: none;
    }

    .customer-header-right {
        width: auto;
        border-top: none;
        padding-top: 0;
    }

    .customer-user-info-text {
        display: none;
    }

    .customer-dropdown-chevron {
        display: none;
    }

    .customer-user-trigger {
        padding: 2px;
    }

    .customer-profile-dropdown {
        width: min(320px, calc(100vw - 1.5rem));
        right: 0;
    }

    /* Mobilde Sol Menü Drawer (Soldan Açılır) */
    .customer-sidebar {
        position: fixed;
        top: 0;
        left: -290px;
        width: 280px;
        height: 100vh;
        z-index: 999;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.2);
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .customer-sidebar.mobile-open {
        left: 0;
    }

    .customer-main-content {
        padding: 1rem 0.875rem;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobilde Gridleri Tek Sütun Yap */
    .mobile-grid-1 {
        grid-template-columns: 1fr !important;
    }

    .form-row {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .form-col-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* =========================================================================
   DENKLEM CRM MERKEZİ TAB BİLEŞENİ (STRICT TAB CONSISTENCY)
   ========================================================================= */
.crm-tab-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #CBD5E1;
    padding-bottom: 0px;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.crm-tab-nav::-webkit-scrollbar {
    display: none;
}

.crm-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.crm-tab-btn:hover {
    color: #1A1A1A;
    background: #F4F5F7;
}

.crm-tab-btn.active {
    color: var(--primary-red);
    border-bottom: 2px solid var(--primary-red);
    background: rgba(226, 0, 26, 0.04);
    font-weight: 700;
}

@media (max-width: 768px) {
    .crm-tab-nav {
        gap: 0.25rem;
        padding-left: 2px;
        padding-right: 2px;
        margin-bottom: 1rem;
    }

    .crm-tab-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
}

/* ==========================================================================
   DENKLEM CRM MERKEZİ FİLTRE VE ARAMA GRİDİ (MASAÜSTÜ & MOBİL SİMETRİK)
   ========================================================================== */
.crm-filter-layout {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.crm-filter-search {
    flex: 1 1 280px;
    min-width: 250px;
}

.crm-filter-btn-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.crm-filter-pagesize {
    width: 130px;
    flex-shrink: 0;
}

.crm-filter-sort-mobile,
.crm-filter-sort-group {
    display: none;
}

@media (max-width: 992px) {
    .crm-filter-layout {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        align-items: flex-end !important;
    }

    .crm-filter-search {
        grid-column: 1 / -1 !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .crm-filter-btn-group {
        grid-column: 1 / 2 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
    }

    .crm-filter-btn-group .btn-action,
    .crm-filter-btn-group button {
        width: 100% !important;
        height: 44px !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .crm-filter-pagesize {
        grid-column: 2 / 3 !important;
        width: 100% !important;
    }

    .crm-filter-pagesize select {
        width: 100% !important;
        height: 44px !important;
    }

    .crm-filter-sort-mobile {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .crm-filter-sort-group {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   DENKLEM CRM MERKEZİ RESPONSIVE GÖRÜNÜM (MASAÜSTÜ TABLO & MOBİL KART)
   ========================================================================== */
.crm-desktop-view {
    display: block !important;
}
.crm-mobile-view {
    display: none !important;
}

@media (max-width: 768px) {
    .crm-desktop-view {
        display: none !important;
    }
    .crm-mobile-view {
        display: flex !important;
    }
}

/* ==========================================================================
   DENKLEM CRM 2 SÜTUNLU RESPONSIVE KART IZGARASI
   ========================================================================== */
.crm-two-column-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .crm-two-column-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
}

/* ==========================================================================
   CARİ DETAY / EKSTRE FİLTRE BARI RESPONSIVE TASARIM (7. DEMİR KANUN)
   ========================================================================== */
.ekstre-filter-container {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px rgba(14,27,56,0.04);
    margin-bottom: 1.25rem;
}

.ekstre-filter-grid {
    display: flex;
    align-items: flex-end;
    gap: 0.875rem;
    flex-wrap: wrap;
    width: 100%;
}

.ekstre-filter-row-dates {
    display: grid;
    grid-template-columns: 140px 140px;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ekstre-filter-row-selects {
    display: grid;
    grid-template-columns: minmax(140px, 1.2fr) minmax(130px, 1fr);
    gap: 0.75rem;
    flex: 1 1 280px;
}

.ekstre-filter-row-buttons {
    display: grid;
    grid-template-columns: 100px 135px;
    gap: 0.625rem;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .ekstre-filter-container {
        padding: 0.875rem;
    }

    .ekstre-filter-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .ekstre-filter-row-dates,
    .ekstre-filter-row-selects,
    .ekstre-filter-row-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.625rem !important;
        width: 100% !important;
        flex: none !important;
    }

    .ekstre-filter-row-buttons .btn-action {
        width: 100% !important;
        height: 44px !important;
        padding: 0 0.5rem !important;
        font-size: 0.8125rem !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Sipariş Filtre Grid Tanımları */
.siparis-filter-row-dates {
    display: grid;
    grid-template-columns: 140px 140px;
    gap: 0.75rem;
    flex-shrink: 0;
}

.siparis-filter-row-search {
    flex: 1 1 170px;
    min-width: 140px;
}

.siparis-filter-row-selects {
    display: grid;
    grid-template-columns: minmax(130px, 1.2fr) minmax(120px, 1fr);
    gap: 0.75rem;
    flex: 1 1 250px;
}

.siparis-filter-row-buttons {
    display: grid;
    grid-template-columns: 90px 90px;
    gap: 0.625rem;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .siparis-filter-row-dates,
    .siparis-filter-row-selects,
    .siparis-filter-row-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.625rem !important;
        width: 100% !important;
        flex: none !important;
    }

    .siparis-filter-row-search {
        width: 100% !important;
        flex: none !important;
    }

    .siparis-filter-row-buttons .btn-action {
        width: 100% !important;
        height: 44px !important;
        padding: 0 0.5rem !important;
        font-size: 0.8125rem !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   CARİ HAREKET BELGE DETAY MODAL ÜST KUTUCUKLARI (FERAH 3 SÜTUN GRİD)
   ========================================================================== */
.crm-belge-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.625rem !important;
    margin-bottom: 0.875rem !important;
}

@media (max-width: 768px) {
    .crm-belge-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .crm-belge-grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   KURUMSAL CRM DASHBOARD & OPERASYON KOKPİTİ STİLLERİ
   ========================================================================== */
.crm-dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 4'lü KPI Sayaç Izgarası */
.crm-dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.crm-kpi-card {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crm-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.crm-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.crm-kpi-card.kpi-navy::before { background-color: #1A1A1A; }
.crm-kpi-card.kpi-orange::before { background-color: var(--primary-red); }
.crm-kpi-card.kpi-green::before { background-color: #10B981; }
.crm-kpi-card.kpi-blue::before { background-color: #3B82F6; }

.crm-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.crm-kpi-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.crm-kpi-icon-pill {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 800;
}

.crm-kpi-icon-pill.icon-navy { background: #F4F5F7; color: #1A1A1A; }
.crm-kpi-icon-pill.icon-orange { background: #FFF0F2; color: var(--primary-red); }
.crm-kpi-icon-pill.icon-green { background: #ECFDF5; color: #10B981; }
.crm-kpi-icon-pill.icon-blue { background: #EFF6FF; color: #3B82F6; }

.crm-kpi-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1A1A1A;
    line-height: 1.2;
    margin-bottom: 0.375rem;
}

.crm-kpi-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748B;
}

.crm-kpi-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.crm-kpi-badge.badge-sub-navy { background: #F4F5F7; color: #1A1A1A; }
.crm-kpi-badge.badge-sub-orange { background: #FFF0F2; color: #E2001A; border: 1px solid #FECACA; }
.crm-kpi-badge.badge-sub-green { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.crm-kpi-badge.badge-sub-blue { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }

/* Hızlı İşlem Kısayol Çubuğu */
.crm-dashboard-quickbar {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 0.875rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.crm-quickbar-title {
    font-size: 0.875rem;
    font-weight: 800;
    color: #1A1A1A;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.crm-quickbar-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.crm-quickbar-actions .btn-action {
    height: 38px;
    min-height: 38px;
    padding: 0 1rem;
    font-size: 0.8125rem;
}

/* Dashboard Ana 2 Sütunlu Izgara */
.crm-dashboard-main-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.crm-dash-panel {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.crm-dash-panel-header {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #CBD5E1;
    background: #F4F5F7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crm-dash-panel-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #1A1A1A;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Dashboard Tablo Stilleri */
.crm-dash-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.crm-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    text-align: left;
}

.crm-dash-table th {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748B;
    background: #F4F5F7;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #CBD5E1;
    white-space: nowrap;
}

.crm-dash-table td {
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid #F1F5F9;
    color: #1A1A1A;
    vertical-align: middle;
}

.crm-dash-table tbody tr:hover td {
    background-color: #F4F5F7;
}

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

/* Chart Dağılım Kartı */
.crm-chart-container {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.crm-chart-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 220px;
    height: 220px;
    margin: 0 auto;
}

.crm-chart-legend-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.crm-chart-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.5rem;
    background: #F4F5F7;
    border-radius: 4px;
    font-size: 0.75rem;
}

.crm-chart-legend-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1A1A1A;
}

.crm-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.crm-chart-legend-val {
    font-weight: 700;
    color: #1A1A1A;
}

/* Mobil Medya Sorguları */
@media (max-width: 992px) {
    .crm-dashboard-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .crm-dashboard-main-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .crm-dashboard-quickbar {
        flex-direction: column;
        align-items: stretch;
    }

    .crm-quickbar-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .crm-quickbar-actions .btn-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .crm-dashboard-kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .crm-kpi-card {
        padding: 0.875rem 0.75rem;
    }

    .crm-kpi-val {
        font-size: 1.25rem;
    }

    .crm-quickbar-actions {
        grid-template-columns: 1fr;
    }
}