/* =====================================================
   Zincir Transfer Detay - Sayfa CSS
   ===================================================== */

/* Timeline / Stepper */
.transfer-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 12px 24px;
    position: relative;
    margin-bottom: 8px;
}

.transfer-timeline::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 48px;
    right: 48px;
    height: 3px;
    background: #e5e7eb;
    z-index: 0;
}

.transfer-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    max-width: 120px;
}

.transfer-timeline-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #f3f4f6;
    color: #9ca3af;
    border: 3px solid #e5e7eb;
    transition: all 0.2s;
}

.transfer-timeline-step.completed .transfer-timeline-icon {
    background: #dcfce7;
    color: #16a34a;
    border-color: #86efac;
}

.transfer-timeline-step.active .transfer-timeline-icon {
    background: #dbeafe;
    color: #2563eb;
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.transfer-timeline-step.cancelled .transfer-timeline-icon {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
}

.transfer-timeline-label {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
    white-space: nowrap;
}

.transfer-timeline-step.completed .transfer-timeline-label {
    color: #16a34a;
}

.transfer-timeline-step.active .transfer-timeline-label {
    color: #2563eb;
}

.transfer-timeline-step.cancelled .transfer-timeline-label {
    color: #dc2626;
}

.transfer-timeline-date {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

/* Info Card */
.transfer-info-group {
    margin-bottom: 12px;
}

.transfer-info-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.transfer-info-value {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
}

.transfer-info-divider {
    border-top: 1px solid #f3f4f6;
    margin: 14px 0;
}

/* Party (Kaynak/Hedef) display */
.transfer-party {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.transfer-party-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.transfer-party-icon.merkez { background: #dbeafe; color: #2563eb; }
.transfer-party-icon.depo { background: #fef3c7; color: #d97706; }
.transfer-party-icon.sube { background: #dcfce7; color: #16a34a; }
.transfer-party-icon.franchise { background: #f3e8ff; color: #9333ea; }
.transfer-party-icon.uretim { background: #fef3c7; color: #d97706; }

.transfer-party-info {
    min-width: 0;
}

.transfer-party-type {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
}

.transfer-party-name {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 18px;
    padding: 4px 0;
}

/* Summary Cards */
.transfer-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.transfer-summary-card {
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    border: 1px solid;
}

.transfer-summary-card.talep {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.transfer-summary-card.transfer {
    background: #fef2f2;
    border-color: #fecaca;
}

.transfer-summary-card.sevk {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.transfer-summary-card.teslim {
    background: #fefce8;
    border-color: #fde68a;
}

.transfer-summary-title {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 4px;
}

.transfer-summary-value {
    font-size: 18px;
    font-weight: 700;
}

.transfer-summary-card.talep .transfer-summary-value { color: #16a34a; }
.transfer-summary-card.transfer .transfer-summary-value { color: #dc2626; }
.transfer-summary-card.sevk .transfer-summary-value { color: #2563eb; }
.transfer-summary-card.teslim .transfer-summary-value { color: #ca8a04; }

.transfer-summary-detail {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* Table */
.transfer-satir-table {
    width: 100%;
}

.transfer-satir-table th {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 10px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.transfer-satir-table td {
    padding: 10px;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.transfer-satir-table tbody tr:hover {
    background: #f9fafb;
}

.transfer-satir-table tbody tr.satir-hatali {
    background: #fef2f2;
}

.transfer-satir-table tbody tr.satir-hatali:hover {
    background: #fee2e2;
}

/* Product cell */
.transfer-stok-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.transfer-stok-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.transfer-stok-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 16px;
    flex-shrink: 0;
    background: #fff;
}

.transfer-stok-name {
    font-weight: 500;
    color: #111827;
}

/* Birim display */
.transfer-birim-text {
    font-size: 13px;
    color: #111827;
}

.transfer-birim-std {
    font-size: 11px;
    color: #6b7280;
    display: block;
    margin-top: 1px;
}

/* Status badges in table */
.transfer-fark-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
}

.transfer-fark-badge.eksik {
    background: #fef2f2;
    color: #dc2626;
}

.transfer-fark-badge.fazla {
    background: #f0fdf4;
    color: #16a34a;
}

.transfer-fark-badge.tam {
    background: #f0fdf4;
    color: #16a34a;
}

.transfer-fark-badge.acik {
    background: #fefce8;
    color: #ca8a04;
}

/* Stok hareket status */
.transfer-hareket-ok {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
}

.transfer-hareket-hata {
    font-size: 11px;
    color: #dc2626;
    max-width: 160px;
}

/* Teslim Form */
.transfer-teslim-section {
    border-top: 2px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 16px;
}

.transfer-teslim-section h6 {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.transfer-teslim-table {
    width: 100%;
}

.transfer-teslim-table th {
    font-size: 11px;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 10px;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.transfer-teslim-table td {
    padding: 8px 10px;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.transfer-teslim-input {
    width: 120px;
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    transition: border-color 0.15s;
}

.transfer-teslim-input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Teslim Aciklama */
.transfer-teslim-aciklama {
    margin-top: 12px;
    padding: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
}

.transfer-teslim-aciklama label {
    font-size: 12px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.transfer-teslim-aciklama textarea {
    width: 100%;
    min-height: 60px;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    resize: vertical;
    background: #fff;
}

.transfer-teslim-aciklama textarea:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

/* Alert */
.transfer-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
}

.transfer-alert.danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.transfer-alert-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.transfer-alert-title {
    font-weight: 700;
    font-size: 13px;
}

.transfer-alert-text {
    font-size: 12px;
    margin-top: 2px;
    opacity: 0.85;
}

/* Teslim aciklama display (merkez side) */
.transfer-teslim-notu {
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    margin-top: 10px;
}

.transfer-teslim-notu-baslik {
    font-size: 11px;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.transfer-teslim-notu-metin {
    font-size: 13px;
    color: #78350f;
    white-space: pre-wrap;
}

/* Action buttons */
.transfer-action-btn {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.15s;
}

/* Responsive */
@media (max-width: 768px) {
    .transfer-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .transfer-timeline {
        padding: 16px 4px 20px;
    }

    .transfer-timeline::before {
        left: 24px;
        right: 24px;
    }

    .transfer-timeline-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .transfer-timeline-label {
        font-size: 10px;
    }

    .transfer-satir-table {
        font-size: 12px;
    }
}

/* Genel toplam value in sidebar */
.transfer-genel-toplam-value {
    font-size: 16px;
}

/* Ucret detay section spacing */
.transfer-ucret-detay {
    margin-top: 8px;
}

@media (max-width: 576px) {
    .transfer-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .transfer-party {
        flex-direction: column;
        text-align: center;
    }
}
