/* ========================================
   ZEN CRM - STOK YÖNETİM EKRANI
   Modern & Minimal Dashboard Tasarımı
   ======================================== */

/* ========================================
   GENEL CONTAINER
   ======================================== */
.zen-crm-container {
    padding: 15px;
    background: #f8f9fa;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.zen-crm-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

/* ========================================
   SOL BÖLÜM - KART SATIRLARI
   ======================================== */
.zen-crm-left-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zen-crm-card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ========================================
   MODERN MİNİ KARTLAR
   ======================================== */
.zen-crm-card-mini {
    background: #ffffff69;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgb(47 135 155 / 27%);
    transition: all 0.2s ease;
    border: 1px solid #398a9f33;
}

    .zen-crm-card-mini:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
        transform: translateY(-2px);
    }

    /* Alarm Durumu */
    .zen-crm-card-mini.zen-crm-alarm {
        border-color: #ff4757;
        background: linear-gradient(135deg, #fff 0%, #fff5f7 100%);
    }

        .zen-crm-card-mini.zen-crm-alarm .zen-crm-card-value {
            color: #ff4757;
        }

        .zen-crm-card-mini.zen-crm-alarm .zen-crm-card-icon {
            background: #ffe5e9;
        }

/* Kart İkonu */
.zen-crm-card-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4fa7ff00;
    border-radius: 8px;
}

/* Kart İçeriği */
.zen-crm-card-content {
    flex: 1;
    min-width: 0;
}

.zen-crm-card-value {
    font-size: 22px;
    font-weight: 700;
    color: #2ecc71;
    line-height: 1;
    margin-bottom: 4px;
}

.zen-crm-card-label {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========================================
   GÜNLÜK GÖREVLER BÖLÜMÜ
   ======================================== */
.zen-crm-tasks-section {
    margin-top: 15px;
    margin-bottom: 15px;
}

.zen-crm-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0 0 10px 0;
    padding-left: 5px;
}

.zen-crm-task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ========================================
   GÜNLÜK GÖREVLER - GELİŞMİŞ
   ======================================== */
.zen-crm-task-card {
    background: #ffffff69;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgb(47 135 155 / 27%);
    font-size: 12px;
    color: #495057;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    cursor: pointer;
    position: relative;
}

    .zen-crm-task-card:hover {
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        transform: translateX(4px);
        border-left-color: #32889c;
    }

.zen-crm-task-badge {
    background: linear-gradient(135deg, #32889c 0%, #32889c 100%);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.zen-crm-task-text {
    flex: 1;
    font-weight: 500;
}

.zen-crm-task-count {
    background: #e74c3c;
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
}

    .zen-crm-task-count.zen-crm-zero {
        background: #95a5a6;
    }

    /* Görev sayısına göre renk */
    .zen-crm-task-count.zen-crm-high {
        background: #e74c3c;
        animation: zen-crm-pulse-count 2s infinite;
    }

    .zen-crm-task-count.zen-crm-medium {
        background: #f39c12;
    }

    .zen-crm-task-count.zen-crm-low {
        background: #3498db;
    }

@keyframes zen-crm-pulse-count {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   GÖREV DETAY MODALI
   ======================================== */
.zen-crm-modal-large {
    max-width: 800px;
}

.zen-crm-modal-subtitle {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
}

/* Görev Detay Listesi */
.zen-crm-task-detail-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zen-crm-task-item {
    background: #ffffff69;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s;
    cursor: pointer;
}

    .zen-crm-task-item:hover {
        border-color: #418aa1;
        background: #f8f9ff;
        transform: translateX(5px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }

.zen-crm-task-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.zen-crm-task-item-title {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.zen-crm-task-item-company {
    font-size: 13px;
    color: #6c757d;
}

.zen-crm-task-item-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

    .zen-crm-task-item-badge.urgent {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
        animation: zen-crm-pulse 2s infinite;
    }

.zen-crm-task-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #6c757d;
}

.zen-crm-task-item-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.zen-crm-task-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.zen-crm-task-action-btn {
    flex: 1;
    background: linear-gradient(135deg, #418aa1 0%, #418aa1 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

    .zen-crm-task-action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .zen-crm-task-action-btn.secondary {
        background: #fff;
        color: #418aa1;
        border: 2px solid #418aa1;
    }

        .zen-crm-task-action-btn.secondary:hover {
            background: #418aa100;
        }

/* Boş Durum */
.zen-crm-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.zen-crm-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.zen-crm-empty-state h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #2c3e50;
}

.zen-crm-empty-state p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .zen-crm-task-item-actions {
        flex-direction: column;
    }

    .zen-crm-modal-large {
        max-width: 95%;
    }
}

/* ========================================
   AKSIYON BUTONLARI
   ======================================== */
.zen-crm-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.zen-crm-btn-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-align: center;
    line-height: 1.3;
}

    .zen-crm-btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

    .zen-crm-btn-action:active {
        transform: translateY(0);
    }

.zen-crm-btn-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ========================================
   SAĞ BÖLÜM - STOK PANELİ
   ======================================== */
.zen-crm-right-section {
    display: flex;
    flex-direction: column;
}

.zen-crm-stock-panel {
    background: #ffffff69;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 15px;
}

/* Stok Başlığı */
.zen-crm-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f3f5;
}

    .zen-crm-stock-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 700;
        color: #2c3e50;
    }
/* Stok Counter - YENİ */
.zen-crm-stock-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #186d8bc7 0%, #2c879a 100%);
    padding: 6px 12px;
    border-radius: 20px;
}

.zen-crm-counter-label {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

.zen-crm-counter-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    min-width: 30px;
    text-align: center;
}

.zen-crm-counter-unit {
    font-size: 10px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}
/* Stok Tab'ları */
.zen-crm-stock-tabs {
    display: flex;
    gap: 5px;
}

.zen-crm-tab {
    padding: 6px 14px;
    background: #f1f3f5;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #6c757d;
}

    .zen-crm-tab:hover {
        background: #e9ecef;
    }

    .zen-crm-tab.active {
        background: #667eea;
        color: #fff;
    }

/* Filtreler - Kompakt */
.zen-crm-filters-compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.zen-crm-select-compact {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
}

    .zen-crm-select-compact:hover {
        border-color: #adb5bd;
    }

    .zen-crm-select-compact:focus {
        outline: none;
        border-color: #3e8ba1;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Stok Listesi - Kompakt */
.zen-crm-stock-list-compact {
    max-height: 438px;
    overflow-y: auto;
    padding-right: 5px;
}

    .zen-crm-stock-list-compact::-webkit-scrollbar {
        width: 4px;
    }

    .zen-crm-stock-list-compact::-webkit-scrollbar-track {
        background: #f1f3f5;
        border-radius: 4px;
    }

    .zen-crm-stock-list-compact::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 4px;
    }

        .zen-crm-stock-list-compact::-webkit-scrollbar-thumb:hover {
            background: #5568d3;
        }

/* Stok Item'ları */
.zen-crm-stock-item-compact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    transition: all 0.2s;
    border-left: 3px solid #13668e;
}

    .zen-crm-stock-item-compact:hover {
        background: #e7f3ff;
        transform: translateX(3px);
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

.zen-crm-stock-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.zen-crm-stock-name {
    font-size: 12px;
    font-weight: 600;
    color: #2c3e50;
}

/* Stok Badge'leri */
.zen-crm-stock-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

    .zen-crm-stock-badge.blue {
        background: linear-gradient(135deg, #186d8bc7 0%, #2c879a 100%);
    }

    .zen-crm-stock-badge.green {
        background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    }

    .zen-crm-stock-badge.purple {
        background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    }

    .zen-crm-stock-badge.orange {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    }

/* Stok Meta Bilgileri */
.zen-crm-stock-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.zen-crm-stock-depot {
    font-size: 11px;
    color: #6c757d;
}

.zen-crm-stock-count-badge {
    background: #28a745;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* ========================================
   TAKVİM BÖLÜMÜ - MİNİMAL & KOMPAKT
   ======================================== */
.zen-crm-calendar-compact {
    background: #ffffff69;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Takvim Başlığı - Küçültüldü */
.zen-crm-calendar-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

    .zen-crm-calendar-header-compact h3 {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #2c3e50;
    }

/* Navigasyon Butonları - Küçültüldü */
.zen-crm-cal-nav {
    background: #448ba1;
    color: #fff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .zen-crm-cal-nav:hover {
        background: #5568d3;
        transform: scale(1.05);
    }

    .zen-crm-cal-nav:active {
        transform: scale(0.95);
    }

/* Filtre Butonları - Kompakt */
.zen-crm-calendar-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.zen-crm-cal-filter {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .zen-crm-cal-filter:hover {
        border-color: #448ba1;
        background: #f8f9ff;
    }

    .zen-crm-cal-filter.active {
        background: #32889c;
        border-color: #32889c;
        color: #fff;
    }

.zen-crm-filter-count {
    background: rgba(0,0,0,0.1);
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.zen-crm-cal-filter.active .zen-crm-filter-count {
    background: rgba(255,255,255,0.25);
    animation: zen-crm-counter-update 0.3s ease;
}

@keyframes zen-crm-counter-update {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}
/* Takvim Grid - Kompakt */
.zen-crm-calendar-grid-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* Takvim Günleri - Minimal */
.zen-crm-calendar-day-compact {
    /* aspect-ratio: 1; */
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 4px 3px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

    .zen-crm-calendar-day-compact:hover {
        border-color: #35899d;
        transform: scale(1.08);
        z-index: 10;
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.2);
    }

/* Gün Numarası - Küçültüldü */
.zen-crm-day-number {
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    width: 100%;
    text-align: center;
    line-height: 1;
}

/* Event Listesi - Kompakt */
.zen-crm-day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.zen-crm-day-event {
    background: #2ecc71;
    color: #fff;
    font-size: 11px;
    padding: 2px 3px;
    border-radius: 3px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: zen-crm-pulse 2s infinite;
    line-height: 1.2;
}

    /* Event Tipleri */
    .zen-crm-day-event[data-type="visit"] {
        background: #3498db;
    }

    .zen-crm-day-event[data-type="opport"] {
        background: #2ecc71;
    }

    .zen-crm-day-event[data-type="offer"] {
        background: #f39c12;
    }

    .zen-crm-day-event[data-type="notes"] {
        background: #9a57b5;
    }

    .zen-crm-day-event[data-type="payment"] {
        background: #e74c3c;
    }

/* Bugün - Daha Belirgin */
.zen-crm-calendar-day-compact.zen-crm-today {
    background: linear-gradient(135deg, #0f90bdc7 0%, #174751 100%);
    color: #fff;
    border-color: #32889c;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

    .zen-crm-calendar-day-compact.zen-crm-today .zen-crm-day-number {
        color: #fff;
    }

    .zen-crm-calendar-day-compact.zen-crm-today .zen-crm-day-event {
        background: rgba(255,255,255,0.3);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.2);
    }

/* Boş Günler */
.zen-crm-calendar-day-compact.zen-crm-empty {
    background: transparent;
    border: none;
    cursor: default;
}

    .zen-crm-calendar-day-compact.zen-crm-empty:hover {
        transform: none;
        box-shadow: none;
    }

/* Filtrelenmiş Günler */
.zen-crm-calendar-day-compact.zen-crm-filtered {
    opacity: 0.15;
    pointer-events: none;
}

/* Daha Fazla Event Göstergesi */
.zen-crm-more-events {
    font-size: 9px;
    color: #6c757d;
    margin-top: auto;
    font-weight: 700;
    line-height: 1;
}

.zen-crm-calendar-day-compact.zen-crm-today .zen-crm-more-events {
    color: rgba(255,255,255,0.8);
}

/* Yanıp Sönme Animasyonu - Hafifletildi */
@keyframes zen-crm-pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

/* Takvim Footer - Kompakt */
.zen-crm-calendar-status {
    margin-top: 10px;
    text-align: center;
}

.zen-crm-status-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
}

@keyframes zen-crm-counter-update {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.zen-crm-counter-value.zen-crm-updating {
    animation: zen-crm-counter-update 0.3s ease;
}
/* ========================================
   RESPONSİVE TASARIM
   ======================================== */

/* Büyük Tablet (1200px ve altı) */
@media (max-width: 1200px) {
    .zen-crm-main-grid {
        grid-template-columns: 1fr;
    }

    .zen-crm-right-section {
        max-width: 100%;
    }

    .zen-crm-stock-panel {
        position: static;
    }
}

/* Tablet (992px ve altı) */
@media (max-width: 992px) {
    .zen-crm-card-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .zen-crm-calendar-day-compact {
        min-height: 45px;
        padding: 3px 2px;
    }

    .zen-crm-day-number {
        font-size: 10px;
    }

    .zen-crm-day-event {
        font-size: 7px;
        padding: 2px;
    }
}

/* Mobil Büyük (768px ve altı) */
@media (max-width: 768px) {
    .zen-crm-container {
        padding: 10px;
    }

    .zen-crm-card-row {
        grid-template-columns: 1fr;
    }

    .zen-crm-action-buttons {
        grid-template-columns: 1fr;
    }

    .zen-crm-calendar-compact {
        padding: 10px;
    }

    .zen-crm-calendar-grid-compact {
        gap: 3px;
    }

    .zen-crm-calendar-day-compact {
        min-height: 40px;
        padding: 3px 2px;
    }

    .zen-crm-day-number {
        font-size: 9px;
        margin-bottom: 2px;
    }

    .zen-crm-day-event {
        font-size: 6px;
        padding: 1px 2px;
    }

    .zen-crm-more-events {
        font-size: 6px;
    }

    .zen-crm-calendar-filters {
        gap: 4px;
    }

    .zen-crm-cal-filter {
        padding: 4px 8px;
        font-size: 9px;
    }
}

/* Mobil Orta (576px ve altı) */
@media (max-width: 576px) {
    .zen-crm-card-mini {
        padding: 10px;
        gap: 10px;
    }

    .zen-crm-card-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .zen-crm-card-value {
        font-size: 20px;
    }

    .zen-crm-card-label {
        font-size: 10px;
    }

    .zen-crm-stock-panel {
        padding: 12px;
    }

    .zen-crm-task-card {
        padding: 8px 10px;
        font-size: 11px;
    }

    .zen-crm-task-badge {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .zen-crm-calendar-day-compact {
        min-height: 35px;
    }

    .zen-crm-day-number {
        font-size: 8px;
    }

    .zen-crm-day-event {
        font-size: 6px;
    }
}

/* Mobil Küçük (480px ve altı) */
@media (max-width: 480px) {
    .zen-crm-container {
        padding: 8px;
    }

    .zen-crm-main-grid {
        gap: 10px;
    }

    .zen-crm-card-row {
        gap: 8px;
        margin-bottom: 8px;
    }

    .zen-crm-card-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .zen-crm-card-value {
        font-size: 18px;
    }

    .zen-crm-card-label {
        font-size: 9px;
    }

    .zen-crm-btn-action {
        padding: 12px 10px;
        font-size: 10px;
    }

    .zen-crm-btn-icon {
        font-size: 14px;
    }

    .zen-crm-calendar-compact {
        padding: 8px;
    }

    .zen-crm-calendar-grid-compact {
        gap: 2px;
    }

    .zen-crm-calendar-day-compact {
        min-height: 32px;
        border-radius: 4px;
    }

    .zen-crm-day-number {
        font-size: 8px;
        margin-bottom: 1px;
    }

    .zen-crm-day-event {
        font-size: 5px;
        padding: 1px;
        border-radius: 2px;
    }

    .zen-crm-more-events {
        font-size: 5px;
    }

    .zen-crm-cal-nav {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .zen-crm-calendar-header-compact h3 {
        font-size: 12px;
    }
}

/* Çok Küçük Ekranlar (360px ve altı) */
@media (max-width: 360px) {
    .zen-crm-container {
        padding: 5px;
    }

    .zen-crm-card-mini {
        padding: 8px;
        gap: 8px;
    }

    .zen-crm-card-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .zen-crm-card-value {
        font-size: 16px;
    }

    .zen-crm-card-label {
        font-size: 9px;
    }

    .zen-crm-stock-panel {
        padding: 10px;
    }

    .zen-crm-select-compact {
        font-size: 11px;
        padding: 6px 8px;
    }

    .zen-crm-calendar-day-compact {
        min-height: 28px;
    }

    .zen-crm-day-number {
        font-size: 7px;
    }
}

/* ========================================
   PRINT STILI (Opsiyonel)
   ======================================== */
@media print {
    .zen-crm-container {
        background: #fff;
    }

    .zen-crm-card-mini,
    .zen-crm-stock-panel,
    .zen-crm-calendar-compact {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .zen-crm-btn-action,
    .zen-crm-cal-nav,
    .zen-crm-tab,
    .zen-crm-cal-filter {
        display: none;
    }
}

/* ========================================
   ANİMASYONLAR
   ======================================== */
@keyframes zen-crm-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.zen-crm-card-mini,
.zen-crm-task-card,
.zen-crm-stock-item-compact {
    animation: zen-crm-fade-in 0.3s ease-out;
}

/* ========================================
   YARDIMCI SINIFLAR
   ======================================== */
.zen-crm-hidden {
    display: none !important;
}

.zen-crm-loading {
    opacity: 0.6;
    pointer-events: none;
}

.zen-crm-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* ========================================
   TOOLTIP (İhtiyaç halinde)
   ======================================== */
.zen-crm-tooltip {
    position: relative;
}

    .zen-crm-tooltip::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #2c3e50;
        color: #fff;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 11px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        margin-bottom: 5px;
    }

    .zen-crm-tooltip:hover::after {
        opacity: 1;
    }


/* ========================================
   HIZLI ERİŞİM BUTONLARI
   ======================================== */
.zen-crm-quick-actions {
    background: #ffffff69;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.zen-crm-quick-actions-wrapper {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.zen-crm-quick-btn {
    background: linear-gradient(135deg, #e6c10e 0%, #93950a 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

    .zen-crm-quick-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .zen-crm-quick-btn:hover::before {
        left: 100%;
    }

    .zen-crm-quick-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgb(200 177 12);
    }

    .zen-crm-quick-btn:active {
        transform: translateY(0);
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
    }

/* Farklı Renkler */
.zen-crm-quick-visit {
    background: linear-gradient(135deg, #ff5d0fc7 0%, #df5800 100%);
}

    .zen-crm-quick-visit:hover {
        box-shadow: 0 5px 15px rgb(231 99 17);
    }

.zen-crm-quick-visit2 {
    background: linear-gradient(135deg, #ff5d0fc7 0%, #df5800 100%);
}

    .zen-crm-quick-visit2:hover {
        box-shadow: 0 5px 15px rgb(231 99 17);
    }

.zen-crm-quick-opportunity {
    background: linear-gradient(135deg, #0dcf00c7 0%, #3f9510 100%);
}

    .zen-crm-quick-opportunity:hover {
        box-shadow: 0 5px 15px rgb(63 162 24);
    }

.zen-crm-quick-list-visit {
    background: linear-gradient(135deg, #ff5d0fc7 0%, #df5800 100%);
}

    .zen-crm-quick-list-visit:hover {
        box-shadow: 0 5px 15px rgb(231 99 17);
    }

.zen-crm-quick-list-opportunity {
    background: linear-gradient(135deg, #0dcf00c7 0%, #3f9510 100%);
}

    .zen-crm-quick-list-opportunity:hover {
        box-shadow: 0 5px 15px rgb(63 162 24);
    }

.zen-crm-quick-list-opportunity2 {
    background: linear-gradient(135deg, #00cf9fc7 0%, #10955e 100%);
}

    .zen-crm-quick-list-opportunity2:hover {
        box-shadow: 0 5px 15px rgb(63 162 24);
    }

.zen-crm-quick-list-direction {
    background: linear-gradient(135deg, #870653c7 0%, #7d107a 100%);
}

    .zen-crm-quick-list-direction:hover {
        box-shadow: 0 5px 15px rgb(132 24 122);
    }

.zen-crm-quick-list-direction-auto {
    background: linear-gradient(135deg, #3c0bffc7 0%, #7043fc 100%);
}

    .zen-crm-quick-list-direction-auto:hover {
        box-shadow: 0 5px 15px rgb(104 64 253);
    }

.zen-crm-quick-list-direction-main {
    background: linear-gradient(135deg, #ff0b9dc7 0%, #e76fe4 100%);
}

    .zen-crm-quick-list-direction-main:hover {
        box-shadow: 0 5px 15px rgb(235 104 220);
    }

.zen-crm-quick-list-offer {
    background: linear-gradient(135deg, #4e38ffc7 0%, #080057 100%);
}

    .zen-crm-quick-list-offer:hover {
        box-shadow: 0 5px 15px rgb(20 10 107);
    }

.zen-crm-quick-customer {
    background: linear-gradient(135deg, #ff5151c7 0%, #9d0000 100%);
}

    .zen-crm-quick-customer:hover {
        box-shadow: 0 5px 15px rgb(171 17 17);
    }

.zen-crm-quick-list-offer2 {
    background: linear-gradient(135deg, #ea38ffc7 0%, #570048 100%);
}

    .zen-crm-quick-list-offer2:hover {
        box-shadow: 0 5px 15px rgb(20 10 107);
    }

.zen-crm-quick-customer2 {
    background: linear-gradient(135deg, #154887 0%, #4f9ceb 100%);
}

    .zen-crm-quick-customer2:hover {
        box-shadow: 0 5px 15px rgb(64 134 209);
    }

.zen-crm-quick-customers {
    background: linear-gradient(135deg, #2ec9ffc7 0%, #005263 100%);
}

    .zen-crm-quick-customers:hover {
        box-shadow: 0 5px 15px rgb(14 102 123);
    }

.zen-crm-quick-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.zen-crm-quick-text {
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
/* Responsive - Hızlı Erişim */
@media (max-width: 1200px) {
    .zen-crm-quick-actions-wrapper {
        gap: 8px;
    }

    .zen-crm-quick-btn {
        padding: 2px 8px;
        font-size: 11px;
    }

    .zen-crm-quick-icon {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .zen-crm-quick-actions-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .zen-crm-quick-btn {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .zen-crm-quick-actions-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .zen-crm-quick-actions {
        padding: 10px;
    }

    .zen-crm-quick-actions-wrapper {
        grid-template-columns: 1fr;
    }

    .zen-crm-quick-btn {
        padding: 2px 8px;
        font-size: 12px;
        justify-content: center;
    }

    .zen-crm-quick-icon {
        font-size: 18px;
    }
}
/* ========================================
   MODAL - MÜŞTERİ SORGULAMA
   ======================================== */
.zen-crm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: zen-crm-fade-in 0.3s ease;
}

.zen-crm-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: zen-crm-slide-up 0.3s ease;
}

@keyframes zen-crm-slide-up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.zen-crm-modal-header {
    background: #418aa1;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .zen-crm-modal-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: white;
    }

.zen-crm-modal-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

    .zen-crm-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: rotate(90deg);
    }

/* Modal Body */
.zen-crm-modal-body {
    padding: 25px;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

/* Arama Bölümü */
.zen-crm-search-section {
    margin-bottom: 25px;
}

.zen-crm-form-group {
    margin-bottom: 15px;
}

    .zen-crm-form-group label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        color: #495057;
        margin-bottom: 8px;
    }

.zen-crm-form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

    .zen-crm-form-control:focus {
        outline: none;
        border-color: #418aa1;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.zen-crm-btn-search {
    width: 100%;
    background: #418aa1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

    .zen-crm-btn-search:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

.zen-crm-search-icon {
    font-size: 18px;
}

/* Sonuç Bölümü */
.zen-crm-result-section {
    border-top: 2px solid #f1f3f5;
    padding-top: 20px;
}

.zen-crm-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 5px;
    background: #e8f5e9;
    border-radius: 8px;
}

    .zen-crm-result-header.zen-crm-not-found {
        background: #ffebee;
    }

.zen-crm-result-icon {
    font-size: 22px;
}

.zen-crm-result-header h4 {
    margin: 0;
    font-size: 15px;
    color: #2c3e50;
}

/* Müşteri Listesi */
.zen-crm-customer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.zen-crm-customer-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

    .zen-crm-customer-item:hover {
        border-color: #418aa1;
        background: #f8f9ff;
        transform: translateX(5px);
    }

    .zen-crm-customer-item.selected {
        border-color: #418aa1;
        background: #ffffff00;
    }

.zen-crm-customer-name {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.zen-crm-customer-details {
    font-size: 12px;
    color: #6c757d;
}

.zen-crm-customer-detail-item {
    display: inline-block;
    margin-right: 15px;
}

/* Aksiyon Bölümü */
.zen-crm-action-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

    .zen-crm-action-section h5 {
        margin: 0 0 15px 0;
        font-size: 14px;
        font-weight: 600;
        color: #495057;
    }

.zen-crm-action-buttons-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.zen-crm-btn-modal-action {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

    .zen-crm-btn-modal-action span {
        font-size: 24px;
    }

    .zen-crm-btn-modal-action:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .zen-crm-btn-modal-action.zen-crm-btn-visit:hover {
        border-color: #418aa1;
        background: #f8f9ff;
    }

    .zen-crm-btn-modal-action.zen-crm-btn-opportunity:hover {
        border-color: #f5576c;
        background: #fff5f7;
    }

    .zen-crm-btn-modal-action.zen-crm-btn-opportunityPerson:hover {
        border-color: #1fb70e;
        background: #1fb70e0d;
    }
/* Bulunamadı Mesajı */
.zen-crm-not-found-text {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    margin: 20px 0;
}

/* Yükleniyor Spinner */
.zen-crm-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.zen-crm-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: zen-crm-spin 1s linear infinite;
}

@keyframes zen-crm-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.zen-crm-loading-spinner p {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive - Modal */
@media (max-width: 768px) {
    .zen-crm-modal {
        width: 95%;
        max-height: 95vh;
    }

    .zen-crm-modal-body {
        padding: 20px;
    }

    .zen-crm-action-buttons-modal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .zen-crm-modal-header {
        padding: 15px;
    }

        .zen-crm-modal-header h3 {
            font-size: 16px;
        }

    .zen-crm-modal-body {
        padding: 15px;
    }

    .zen-crm-customer-item {
        padding: 12px;
    }

    .zen-crm-btn-modal-action {
        padding: 12px;
        font-size: 12px;
    }

        .zen-crm-btn-modal-action span {
            font-size: 20px;
        }
}

.zen-crm-search-hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    color: #6c757d;
    font-style: italic;
}

.zen-crm-create-customer-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.zen-crm-btn-create-customer {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

    .zen-crm-btn-create-customer:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
    }

    .zen-crm-btn-create-customer:active {
        transform: translateY(0);
    }

.zen-crm-create-icon {
    font-size: 18px;
}


/* Arama Aşamaları */
.zen-crm-search-step {
    margin-bottom: 20px;
}

.zen-crm-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.zen-crm-step-badge {
    background: #418aa1;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.zen-crm-step-title {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

/* Arama Geçmişi */
.zen-crm-search-history {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 4px solid #418aa1;
}

.zen-crm-history-title {
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 10px;
}

.zen-crm-history-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.zen-crm-history-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #495057;
}

.zen-crm-history-item-icon {
    font-size: 14px;
}

.zen-crm-history-item.success {
    color: #27ae60;
}

.zen-crm-history-item.failed {
    color: #e74c3c;
}

/* Uyarı Rengi */
.zen-crm-result-header.zen-crm-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* Sonraki Aşama Butonu */
.zen-crm-btn-next-step {
    width: 100%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 15px;
}

    .zen-crm-btn-next-step:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
    }
/* ========================================
   GÜN DETAY MODALI
   ======================================== */

/* Not Ekleme Bölümü */
.zen-crm-day-note-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.zen-crm-section-title-small {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.zen-crm-note-input-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.zen-crm-note-textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s;
}

    .zen-crm-note-textarea:focus {
        outline: none;
        border-color: #418aa1;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.zen-crm-btn-add-note {
    background: #418aa1;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 23px 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .zen-crm-btn-add-note:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }

/* Notlar Listesi */
.zen-crm-day-notes-list {
    margin-bottom: 25px;
}

.zen-crm-note-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-left: 4px solid #9b59b6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.2s;
    overflow: hidden;
}

    .zen-crm-note-item:hover {
        border-color: #9b59b6;
        box-shadow: 0 3px 10px rgba(155, 89, 182, 0.15);
    }

.zen-crm-note-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.zen-crm-note-text {
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
}

.zen-crm-note-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.zen-crm-note-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: all 0.2s;
    border-radius: 4px;
}

    .zen-crm-note-btn:hover {
        background: #f8f9fa;
        transform: scale(1.1);
    }

/* Günün Planları */
.zen-crm-day-plans-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.zen-crm-day-plans-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zen-crm-plan-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
}

    .zen-crm-plan-item:hover {
        border-color: #418aa1;
        transform: translateX(5px);
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.15);
    }

.zen-crm-plan-type-badge {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

    .zen-crm-plan-type-badge.visit {
        background: #3498db;
    }

    .zen-crm-plan-type-badge.opport {
        background: #2ecc71;
    }

    .zen-crm-plan-type-badge.offer {
        background: #f39c12;
    }

    .zen-crm-plan-type-badge.notes {
        background: #e74c3c;
    }

    .zen-crm-plan-type-badge.payment {
        background: #e74c3c;
    }

.zen-crm-plan-content {
    flex: 1;
}

.zen-crm-plan-title {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
}

.zen-crm-plan-type {
    font-size: 11px;
    color: #6c757d;
}

/* Boş Durum */
.zen-crm-empty-plans {
    text-align: center;
    padding: 30px;
    color: #6c757d;
}

.zen-crm-empty-plans-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.zen-crm-empty-plans-text {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .zen-crm-note-input-group {
        flex-direction: column;
    }

    .zen-crm-btn-add-note {
        width: 100%;
        justify-content: center;
    }
}

.zen-crm-day-event[data-type="note"] {
    background: #9b59b6;
    font-weight: 600;
}

/* Gün Başlıkları */
.zen-crm-calendar-day-header {
    background: #36899d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    padding: 1px 4px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Takvim Grid - Güncelleme */
.zen-crm-calendar-grid-compact {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

/* Responsive - Gün Başlıkları */
@media (max-width: 768px) {
    .zen-crm-calendar-day-header {
        font-size: 10px;
        padding: 6px 3px;
    }
}

@media (max-width: 480px) {
    .zen-crm-calendar-day-header {
        font-size: 9px;
        padding: 5px 2px;
    }
}

@media (max-width: 360px) {
    .zen-crm-calendar-day-header {
        font-size: 8px;
        padding: 4px 2px;
    }
}
/* ========================================
   FORKLIFT LOADER - GIF VERSİYON
   ======================================== */

.zen-crm-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 0%);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: zen-crm-fade-in 0.3s ease;
}

.zen-crm-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Forklift GIF Container */
.zen-crm-forklift-gif {
    width: 200px;
    /* height: 200px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .zen-crm-forklift-gif img {
        max-width: 60%;
        max-height: 100%;
        object-fit: contain;
    }

/* Yükleniyor Yazısı */
.zen-crm-loader-text {
    font-size: 18px;
    font-weight: 600;
    color: #0087a9;
    animation: zen-crm-text-pulse 1.5s ease-in-out infinite;
}

/* Animasyonlar */
@keyframes zen-crm-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zen-crm-text-pulse {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .zen-crm-forklift-gif {
        width: 150px;
        height: 150px;
    }

    .zen-crm-loader-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .zen-crm-forklift-gif {
        width: 120px;
        height: 120px;
    }

    .zen-crm-loader-text {
        font-size: 14px;
    }
}
/* Seri Numarası Bölümü */
.zen-crm-stock-serial {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.zen-crm-stock-serial-label {
    font-size: 10px;
    color: #6c757d;
    font-weight: 600;
}

.zen-crm-stock-serial-value {
    font-size: 11px;
    color: #2c3e50;
    font-weight: 700;
    background: #e8f5e9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Teklif Durumu Badge'leri */
.zen-crm-stock-offer-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

    .zen-crm-stock-offer-badge.offer-free {
        background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    }

    .zen-crm-stock-offer-badge.offer-reserved {
        background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    }

    .zen-crm-stock-offer-badge.offer-sold {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    }

    .zen-crm-stock-offer-badge.offer-cancelled {
        background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    }
/* Thumbnail Preview for Images */
.zen-sales-thumbnail-preview {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

    .zen-sales-thumbnail-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.zen-sales-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.zen-sales-thumbnail-preview:hover .zen-sales-thumbnail-overlay {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
}

.zen-sales-overlay-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #667eea;
    font-size: 1.5rem;
}

    .zen-sales-overlay-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
    }

.zen-sales-file-info-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 0.5rem;
}

    .zen-sales-file-info-compact .zen-sales-file-name {
        flex: 1;
        min-width: 0;
        font-weight: 500;
        color: #495057;
        font-size: 0.85rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-bottom: 0;
    }

.zen-sales-file-actions-compact {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* PDF Viewer Styles */
.zen-sales-pdf-popup {
    height: 90vh !important;
    max-height: 90vh !important;
}

.zen-sales-pdf-container {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

.zen-sales-pdf-viewer {
    height: 85vh;
    display: flex;
    flex-direction: column;
}

.zen-sales-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.zen-sales-pdf-title {
    font-weight: 600;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 1rem;
}

.zen-sales-pdf-download {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .zen-sales-pdf-download:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }

.zen-sales-pdf-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: white;
}

/* Image Popup Styles */
.zen-sales-image-popup {
    background: rgba(0, 0, 0, 0.95) !important;
}

.zen-sales-swal-image {
    max-height: 85vh !important;
    max-width: 100% !important;
    object-fit: contain !important;
    border-radius: 8px !important;
}

/* View Button for Files */
.zen-sales-action-btn.view {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

    .zen-sales-action-btn.view:hover {
        background: #667eea;
        color: white;
        transform: scale(1.1);
    }

/* Responsive */
@media (max-width: 768px) {
    .zen-sales-pdf-viewer {
        height: 80vh;
    }

    .zen-sales-pdf-header {
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .zen-sales-pdf-title {
        margin-right: 0;
        text-align: center;
    }

    .zen-sales-pdf-download {
        width: 100%;
        justify-content: center;
    }

    .zen-sales-thumbnail-preview {
        height: 150px;
    }

    .zen-sales-overlay-btn {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}
